Explain the purposes of methods wait(), notify(), notifyAll
()?
Answer Posted / tek
All the three methods are called in synchronized block or
method.
wait(): Thread calling wait method will go to the waiting
state and it will loose its monitor. It will execute only
if it is notified by the other threads.
notify(): To notify thread which is waiting for the concern
object.
notifyAll(): To notify all the threads which are in waiting
state.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
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?
Is there a guarantee of uniqueness for entity beans?
What is a sessionfactory? Is it a thread-safe object?
Write a program to show synchronization?
Which containers use a border layout as their default layout?
What are the benefits of detached objects?
how to use debug in my elipse to solve problems that exist in my project
What is ioc concept & explain it?
What is the relationship between an event-listener interface and an event-adapter class?
Is the infobus client side only?
Difference between swing and awt?
Are there books about seam?
How to pass parameters in RMI?
How is a java object message delivered to a non-java client?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?