Monthly Archives: 8月 2017

wait(), notify(), notifyAll() in Java

use same object for calling wait() and notify() method, every object has its own lock so calling wait() on objectA and notify() on object B will not make any sense. by calling notify(), the awakened thread will not be able to proceed until the current thr… Read More »