ReentrantReadWriteLock
A Java lock that permits multiple concurrent readers while retaining exclusive access for writers.
Technical Context
It can improve throughput when reads are long enough, concurrent, and substantially more frequent than writes. It is not automatically faster than a simple mutex; lock bookkeeping, writer starvation policy, cache effects, and critical-section duration must be measured.
Related Concepts
- ReentrantLock
- read-write lock
- contention
- writer starvation