6.ReentrantLock
Java · 3 notes
- 6.6 ReentrantLockhistorical
Explicit reentrant mutual exclusion with interruptible/timed acquisition, optional fairness, Conditions, and try/finally release.
- Fair ReentrantLockhistorical
How fair ReentrantLock reduces barging by honoring queued predecessors, and the throughput/latency trade-off of fairness.
- Nonfair ReentrantLockhistorical
Default ReentrantLock barging behavior, why it can improve throughput, and how AQS queues still handle contended waiters.