Archive Post

Reentrant Lock – Concurrency: Part II

Reentrant Lock The ReentrantLock class implements the Lock interface. Instances of the Reentrant-Lock class are…

Reentrant Lock 2 – Concurrency: Part II

More details are provided below about the lock acquisition policy implemented by the methods mentioned…

Reentrant Lock 3 – Concurrency: Part II

Example 23.12 illustrates using a reentrant lock to implement a thread-safe counter. The class ReentrantLockCounter…