Thread Monitor
2019-09-12 10:17:06 0 举报
thread monitor
作者其他创作
大纲/内容
Wait Queue(Front door 2)
4. awaken by notify
t2
t1
1. Enter Monitor
The Owner(Room)
5. release and exit the monitor of Object
intial thread that going to gain the lock
A waiting Thread
3. release and exit the monitor of Object
2.gain the lock
5. regain the lock
Entry Set(Front door)
t8
2. Occupy monitor
wait to enter the room
t7
t4
Thread that back to Active from wait-notify
3. release
An Active Thread
t3
Synchronized Queue(Front door)
Thread that are awaken by notify
0 条评论
回复 删除
下一页