Java 线程生命周期状态
2021-11-21 15:16:30 37 举报
Java 线程生命周期状态
作者其他创作
大纲/内容
执行完成
运行中(RUNNING)
初始(NEW)
获取到锁
阻塞(BLOCKED)
运行(RUNNABLE)
Object.wait()Thread.join()LockSupport.park()
Thread.sleep(long)Object.wait(long)Thread.join(long)LockSupport.parkNanos(long)LockSupport.parkUntil(long)
等待(WAITING)
yield()系统调度
超时等待(TIMED_WAITING)
终止(TERMINATED)
实例化
Java 线程生命周期状态
Object.notify()Object.notifyAll()LockSupport.unpark(Thread)
Object.notify()Object.notifyAll()LockSupport.unpark(Thread)
就绪(READY)
Thread.start()
synchronized()
0 条评论
下一页
为你推荐
查看更多