Delete comment from: Javarevisited
satpan said...
We can not release a lock(using wait()) or notifying other threads to acquire lock with owning lock for any object. So before calling this function we need to own a lock using synchronized block or synchronized method.
Jun 12, 2013, 3:52:25 AM
Posted to Why wait, notify, and notifyAll methods are called from synchronized block or method in Java?