public boolean tryLock(){
  return locker.compareAndSet(false,true);
}

public boolean tryLock ( ) { return locker . compareAndSet ( false , true ) ; }
acquires the lock only if it is not already locked at the time of invocation
