NEW - A thread that has not yet started is in this state.
RUNNABLE - A thread executing in the Java virtual machine is in this state.
BLOCKED - A thread that is blocked waiting for a monitor lock is in this state.
WAITING - A thread that is waiting indefinitely for another thread to perform a particular action is in this state.
TIMED_WAITING - A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state.
TERMINATED - A thread that has exited is in this state.
本文详细介绍了Java中线程的六种状态:新建、可运行、阻塞、等待、限时等待及终止,并解释了每种状态的具体含义。

被折叠的 条评论
为什么被折叠?



