Java线程状态流转图
2020-08-03 12:53:09 0 举报
Java线程状态流转图
作者其他创作
大纲/内容
WAITING
Object#notify()Object#notifyAll()LockSuport#unpark(Thread)等待时间结束
NEW
Thread#start()
Object#wait(long)Object#join(long)LockSuport#parkNanos()LockSuport#parkUntil()Thread#sleep(long)
READY
RUNNABLE
结束
系统调度
获取到锁
等待获取synchroized对象锁
BLOCKED
实例化
Object#notify()Object#notifyAll()LockSuport#unpark(Thread)
yield()系统调度
Object#wait()Object#join()LockSuport.park()
TIMED_WAITTING
开始
RUNNING
TERMINATED
0 条评论
下一页