ReentrantReadWriteLock原理分析
2023-07-03 12:25:53 6 举报
ReentrantReadWriteLock原理流程图
作者其他创作
大纲/内容
holdCounter
ReadLock
Sync
extends
implements
写锁释放锁(tryRelease)
ReadWriteLock
ReentrantReadWriteLock
WriteLock
读锁获取锁(tryAcquireShared)
Lock接口
AQS
写锁获取锁(tryAcquire)
NonfairSync
FairSync
ThreadLocalHoldCounter
读锁释放锁(tryReleaseShared)
0 条评论
下一页