AQS 同步队列与condition队列示例图
2020-10-12 18:23:18 0 举报
AQS 同步队列与condition队列示例图
作者其他创作
大纲/内容
thread1
waitStatus
prev
condition queue
tail
signal
next
sync queue
node
park
await
release
head
unpark from head
lastWaiter
unpark
add into sync queue
state
thread
firstWaiter
nextWaiter
no
move node from condition queue into tail of sync queue
thread2
AQS
check exclusive thread
acquired?
AQS Condition Queue
tryAcquire
success
yes
ExclusiveOwnerThread
check state
AQS Sync Queue
0 条评论
下一页