Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 379 Bytes

File metadata and controls

8 lines (5 loc) · 379 Bytes

#Synchronized

###wait(),notify(),notifyAll() wait( ) tells the calling thread to give up the monitor and go to sleep until some other thread enters the same monitor and calls notify( ).

notify( ) wakes up a 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.