Answer Posted / bindhu
Two threads can communicate with each other using
the wait() and notify() , notifyAl() methods. wait()
method tells the thread to wait until another threads
calls notify() method.
The wait() method causes the current thread to wait
(possibly forever) until another thread notifies it of a
condition change. We use wait() in conjunction with notify
() or notifyAll() to coordinate the activities of multiple
threads using the same resources.
The notifyAll() method notifies all the threads waiting on
the monitor held by the current thread and wakes them up.
Typically, one of the waiting threads will grab the monitor
and proceed.
| Is This Answer Correct ? | 57 Yes | 8 No |
Post New Answer View All Answers
Why doesn’t the focus feature on the tag work in every circumstance?
What is a class loader?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
Why are component architectures useful?
What is the infobus?
Difference between new operator and class.forname().newinstance()?
Can I run seam with jdk 1.4 and earlier?
What is JTS?
Difference between swing and awt?
What is a policy?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
What class is used to create Server side object ?
difference between ejb,struts,hibernate,spring and jsp
What classes of exceptions may be caught by a catch clause?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?