288 B
288 B
How do the wait() and notify() methods interact?
🛑
wait(): Causes the current thread to block and enter the Waiting state.notify()/notifyAll(): Invoked by another thread to move the waiting thread(s) back to the Runnable state.