Java Thread Waiting and Notification: wait, notify, and LockSupport
notify(): Wakes up a single thread waiting on this object's monitor. The thread returns from wait only after it re-acquires the lock. If no lock is obtained, the thread goes back to the WAITING state. notifyAll(): Wakes up all threads waiting on this object's monitor. wait(): Causes the current thr...