标签:runnable bsp 线程 stat width inf mic http wait
(1)线程的生命周期共有六种状态(NEW, RUNNABLE, BLOCKED, WAITING,TIMED_WAITING,TERMINATED)
(2)下面是jdk8中Thread类中源码的部分内容:
public static enum State { NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING, TERMINATED; private State() { } }
(3)六种状态的转换图
标签:runnable bsp 线程 stat width inf mic http wait
原文地址:https://www.cnblogs.com/excellencesy/p/11710609.html