public static void notifyAll(Object obj){
synchronized (obj) {
    obj.notifyAll();
  }
}

public static void notifyAll ( Object obj ) { synchronized ( obj ) { obj . notifyAll ( ) ; } }
notifies an object for synchronization purposes .
