A monitor called mon has 10 threads in its waiting pool.
All these waiting threads have the same priority.
One of the threads is thread1.
How can you notify thread1 so that it alone moves from the Waiting state to the Ready state?
notify()
; from synchronized code of any object. notify()
; from any code (synchronized or not) of any object. E.
When you call notify()
on a monitor, you have no control over which waiting thread gets notified.