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

Explain about the future of struts?

0 Answers  


Difference between struts and spring? Or why use spring, if you are already using struts?

0 Answers  


Hi frnds Ima facing problm with tomcat configuration.kindly can any one tell to me what is the mistake iam doing.i already configured tomcat as fallowing http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/ even though iam getting the PortNO .and changed with different no of Ports but no working kindly can any one tell me what is the mistake iam doing........?

1 Answers  


Give an example of validates method used to avoid errors.

0 Answers  


What are the features of struts 2?

0 Answers  






What are interceptors in struts 2?

0 Answers  


What is the apache struts vulnerability?

0 Answers  


I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible

1 Answers   MNC,


What is the use of interceptor?

0 Answers  


What does the term struts mean?

0 Answers  


What do you mean by struts.dev mode?

0 Answers  


Describe validate() and reset() methods.

0 Answers  


Categories