Code example for ReentrantLock

Methods: isLocked, tryLock, unlock