多线程状态流转
2023-08-23 09:30:02 4 举报
多线程状态流转
作者其他创作
大纲/内容
Runnable
Blocked in Object`s Wait Pool
开始
Running
Blocked in Object`s Lock Pool
synchronized
I/O interuptsleep()join()
wait()[must have lock]releases lock
Blocked
start()
CPU scheduler
notify()notifyAll()interrupt()
结束
acquires lock
sleep() timeoutthread joins or interrupt()
run() completes
yield()
0 条评论
下一页