Why wait(), notify() and notifyAll() Methods Must be Called From a Synchronized Method or Block
why wait(), notify() and notifyAll() methods in Java must be called from a synchronized method or block is asked quite frequently in Java interviews. This post gives some of the points why it makes sense to call wait(), notify() and notifyAll() methods with in a synchronized context. You need to…