previous |
start |
next
Wait and NotifyAll
- A thread that calls wait is in a blocked state
- It will not be activated by the thread scheduler until it is
unblocked
- It is unblocked when another thread calls
notifyAll
- When a thread calls notifyAll, all threads waiting on
the object are unblocked
- Only the thread that has the lock can call
notifyAll
previous |
start |
next