Code example for ReentrantLock

Methods: isLockedtryLockunlock