There are other methods in the ReentrantLock class that can be used to obtain information about a Lock object:
- getHoldCount(): This returns the number of times the current thread has acquired the lock
- isHeldByCurrentThread(): This returns a Boolean value indicating whether the lock is owned by the current thread