6.ReentrantLock
Java · 3 notes
- 6.6 6.ReentrantLockhistorical
ReentrantLock provides explicit locking and unlocking. These notes compare it with synchronized and trace its implementation through AQS-related classes.
- 6.34 Nonfair Lockhistorical
A nonfair lock allows threads to attempt acquisition when the lock becomes free without requiring arrival order. These notes trace NonfairSync.lock.