A thread can use Object.wait() to block until another thread calls notify() or notifyAll() on that object.
Object.wait()
notify()
notifyAll()
But what if a threa
Lock in both cases over the same object. Call in case a) or in case b) notify() on the same object.