where you use thread in your java project?



where you use thread in your java project?..

Answer / sathish reddy

There are many and varied uses for threads.

If your Java application is a server, like a web server,
then you might want to be servicing more than one client at
a time. Thus you may have one thread per client.

An interactive Java application migth need to do something
that takes some time, for example calculate something
complex or drag down data from a server. In this case you
might want to do the time consuming work in one thread while
your user interface is in another thread displaying a
"Working, press Cancel if you want me to stop" dialog.

There are also situations where you need to compute A, B and
C, each of which takes time but can be done in no particular
order. In that case it may be quicker to do them each in
their own thread rather than one after the other.

Until a few years ago processors were getting faster and
faster. Today procesors are pretty much going as fast as
they can with current technology. Instead processors are
being given more and more "cores", each core being able to
run one thread. One of the challenges facing computer
science now is moving to models that better support the
hardware we're now running on.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More Struts Interview Questions

Can I have html form property without associated getter and setter formbean methods?

0 Answers  


What are the loop holes of struts?

0 Answers  


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

0 Answers  


if u r using eclipse tool how can u debbaging u r application? plz explain with sample code

3 Answers   IBM, Tech Mahindra,


Explain about how requests from the client are sent?

0 Answers  






What are construction struts?

0 Answers  


we have two applications A1 & A2 both are accesing the same databse table employee at the same time how we will manage this so that both application can get the correct no of emloyee while A1 is inserting a employee at the same time while other applicatuion is getting the empployee list.

5 Answers   Accel, TCS,


what is is the use DynaActionForm?

3 Answers   TCS,


What is includeaction?

0 Answers  


Which configuration files are used in struts?

0 Answers  


How struts2 supports internationalization?

0 Answers  


How to pass runtime Parameter in Struts1.2?

2 Answers  


Categories