wait() (cont’d)
When a thread enters a wait state, it does
nothing until it is notified by another thread.
It also gives up it’s lock on the object when
wait is called.
public synchronized blah() {
   wait();
   … // do something
}