线程状态
2020-09-19 09:12:51 3 举报
java线程的状态图
作者其他创作
大纲/内容
等待锁
BLOCKED
Object.wait(long)Thread.join(long)Thread.sleep(long)LockSupport.parkNanos(long)Lockupport.parkUntil(long)
Thread.start()
New
获取锁成功
Object.notify()Object.notifyAll()LockSupport.unpark()
WAITING
Runnable(包含ready和running状态)
TIMED_WAITING
Object.wait()Thread.join()LockSupport.park()
TERMINATED
0 条评论
下一页