Difference between wait and notify in java

Showing Answers 1 - 1 of 1 Answers

anup21

  • Jun 21st, 2006
 

wait() and notify() both extend from object class.

wait() -- causes current thread to wait until another thread invokes the notify() or notifyAll() method for this object.

notify() -- wakes up a single thread that is waiting on this object's monitor.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions