public void unlock(){
  lock.lock();
  try {
    exclusiveLock.unlock();
    resume();
  }
  finally {
    lock.unlock();
  }
}

public void unlock ( ) { lock . lock ( ) ; try { exclusiveLock . unlock ( ) ; resume ( ) ; } finally { lock . unlock ( ) ; } }
release the exclusive write lock .
