LLD Advanced Concepts

wait, notify, and notifyAll

Make threads wait for a condition and notify waiting threads when another thread changes the shared state.