AQS+LOCK+CONDITION
2021-04-15 17:12:29 11 举报
AQS+LOCK+CONDITION流程图
作者其他创作
大纲/内容
ThreadB
waitStatus = 0
waitStatus=CONDITION
ThreadA
condition.await()
next
Node
exclusiveOwnerThread = ThreadA
firstWaiter
lock.lock() 成功
waitStatus = CONDITION
waitStatus = SIGNAL
AQS队列
nextWaiter
ThreadC
lastWaiter
condition.signal()
tail
prev
Condition队列
head
state = 1
0 条评论
下一页