Sunday, 17 April 2011

What is difference between notify() and notfiyAll()?

notify( ) wakes up the first thread that called wait( ) on the same object.
notifyAll( ) wakes up all the threads that called wait( ) on the same object. The
highest priority thread will run first.

No comments:

Post a Comment