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 |
Explain the necessity of empty tag?
What is the purpose of plug-in tag in struct-config.xml?
What do you mean by action errors and what are the results they force?
What is Request Dispatcher and What is reuest Processor??
i have 500 jsps in my application,and i have same forward name for each jsp,so it lokks in strutsconfig.xml,from 1 to 500,but i want send 498 page directly,how can i cingigure my application
How Struts internally works? For Example if we type the URL "/login.do" how the process goes internaly? How the struts-config.xml loaded?
How do I install struts?
In web.xml file instead of *.do can i write *.ibm, Specify with example
what are the componenets of struts?
Why do we use struts?
What is the purpose of @keyproperty annotation annotation?
what is the diff between struts1.0 and struts2.0