ReentrantLock

Class ReentrantLock

All Implemented Interfaces:
Serializable, Lock
public class ReentrantLock
extends Object
implements Lock, Serializable

A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor lock accessed using synchronized methods and statements, but with extended capabilities-

A ReentrantLock is owned by the thread last successfully locking, but not yet unlocking it- A thread invoking lock