线程状态
2020-07-21 10:12:36 0 举报
线程状态
作者其他创作
大纲/内容
Object.wait(long)Thread.sleep(long)Thread.join(long)LockSupport.parkNanos(long)LockSupport.parkUntil(long)
yiled()
READY
超时时间到Object.notify()Object.notifyAll()LockSupport.unpark()
BLOCKED
NEW
RUNNABLE
获得CPU资源系统调度
Thread.start()
执行完成
Object.wait()Thread.join()LockSupport.park()
TEMINATED
Object.notify()Object.notiryAll()LockSupport.unpark()
RUNNING
获取到锁
WAITING
等待进入synchronized方法(或块)
TIMED_WAITING
0 条评论
下一页