线程之间的状态转换
2019-08-03 11:08:44 22 举报
java多线程状态装换
作者其他创作
大纲/内容
NEW
READY
Object.wait(Long)Thread.join(Long)Thread.sleep(Long)LockSupport.parkNanosLockSupport.parkUntil
end
TIME_WAITING
acquire lock
Object.waitThread.joinLockSupport.park
Object.notifyThread.notifyAllLockSupport.unpark
RUNNABLE
scheduling
TERMINATED
RUNNING
BLOCKED
Thread.start
yield
WAITING
enter/reentera synchronizedblock/method
0 条评论
回复 删除
下一页