B notifyAll() notifies all the threads waiting on a particular locked object, not all threads waiting on any object.