Code example for ReentrantLock

Methods: isLocked