JAVA线程状态图
2021-02-24 15:43:56 17 举报
根据java线程状态整理到状态图
作者其他创作
大纲/内容
TERMINATED
waiting for a monitor lock
BLOCKED
get a monitor lock
WAITING
yield
RUNNING
completed execution
Object.notify()Object.notifyAll()
创建示例
RUNNABLE
Thread.sleep(time)Object.wait(long)Thread.join(long)LockSupport.parkNanosLockSupport.parkUntil
Java Thread State根据java.lang.Thread类枚举State 整理
start
TIMED_WAITING
系统调度
Object.waitThread.joinLockSupport.park
NEW
READDY
时间到
0 条评论
回复 删除
下一页