why wait/notify/notifyAll methods are not synchronized in java ?
问题 in Java whenever we need to call wait/notify/notifyAll, we need to have access to object monitor (either through synchronized method or through synchronized block). So my question is why java didn't go for synchronized wait/notify methods removing the restriction of calling these methods from synchronized block or methods. In case these are declared as synchronized, it would have automatically taken the monitor access. 回答1: For notify and notifyAll, the problem with your idea is that when you