ReadWriteLock
Java · 3 notes
- 6.19 ReentrantReadWriteLockhistorical
1. What ReentrantReadWriteLock is. 2. ReentrantReadWriteLock categories. 3. References.
- 6.31 Nonfair ReadWriteLockhistorical
1. What it is. A nonfair read-write lock may let a newly arriving thread compete without strictly following queue order. 2. How to use it. 3. Source-code analysis: constructor, read locking/unlocking, write locking/unlocking, and AQS integration.
- 6.38 Fair ReadWriteLockhistorical
1. What it is. A fair read-write lock follows queue order: if threads are already waiting ahead, the current thread should not barge in. 2. How to use it. 3. Source-code analysis: constructor, read locking/unlocking, write locking/unlocking, and AQS integration.