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.
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