public class Demo { public static void main(String[] args) { for (Thread.State t:Thread.State.values() ) { System.out.println(t); } } }
六种状态:
NEW
RUNNABLE
BLOCKED
WAITING
TIMED_WAITING
TERMINATED