private void releaseAllLocks(){
synchronized (read_notify) {
    read_notify.notifyAll();
  }
synchronized (write_notify) {
    write_notify.notifyAll();
  }
synchronized (state_notify) {
    state_notify.notifyAll();
  }
}

private void releaseAllLocks ( ) { synchronized ( read_notify ) { read_notify . notifyAll ( ) ; } synchronized ( write_notify ) { write_notify . notifyAll ( ) ; } synchronized ( state_notify ) { state_notify . notifyAll ( ) ; } }
releases all monitor objects so that the threads will check their " run flags "
