线程的状态及转换
2021-06-02 20:17:57 0 举报
Java线程状态和转化
作者其他创作
大纲/内容
就绪(Ready)
运行(Runnable)
Object.notify()Object.notifyAll()LockSupport.unpark(Thread)超进时间到
等待进入synchronized
获取到锁
超时等待Timed_Waiting
系统调度
等待(Waiting)
Thread.sleep(long)Object.wait(long)Thread.join(long)LockSupport.parkNanos()LockSupport.partUntil()
Thread.start()
Object.wait()Object.join()LockSupport.park()
执行完成
yield()
终止(Terminated)
运行中(Running)
Object.notify()Object.notifyAll()LockSupport.unpark(t)
初始(New)
阻塞(Blocked)
0 条评论
下一页