解答

线程的状态在java中有明确的定义，在java.lang.Thread.State中有6种。
① NEW

② RUNNABLE

③ BLOCKED

④ WAITING

⑤ TIMED_WAITING

⑥ TERMINATED



补充

线程状态流转图

	/**
* A thread state.  A thread can be in one of the following states:
* <ul>
*     A thread that has not yet started is in this state.
*     </li>
*     A thread executing in the Java virtual machine is in this state.
*     </li>
*     A thread that is blocked waiting for a monitor lock
*     is in this state.
*     </li>
*     perform a particular action is in this state.
*     </li>
*     A thread that is waiting for another thread to perform an action
*     for up to a specified waiting time is in this state.
*     </li>
*     A thread that has exited is in this state.
*     </li>
* </ul>
*
* <p>
* A thread can be in only one state at a given point in time.
* These states are virtual machine states which do not reflect
* any operating system thread states.
*
* @since   1.5
* @see #getState
*/
public enum State {
/**
*/
NEW,

/**
* state is executing in the Java virtual machine but it may
* be waiting for other resources from the operating system
* such as processor.
*/
RUNNABLE,

/**
* Thread state for a thread blocked waiting for a monitor lock.
* A thread in the blocked state is waiting for a monitor lock
* to enter a synchronized block/method or
* reenter a synchronized block/method after calling
*/
BLOCKED,

/**
* A thread is in the waiting state due to calling one of the
* following methods:
* <ul>
*   <li>{@link Object#wait() Object.wait} with no timeout</li>
* </ul>
*
* <p>A thread in the waiting state is waiting for another thread to
* perform a particular action.
*
* For example, a thread that has called <tt>Object.wait()</tt>
* on an object is waiting for another thread to call
* <tt>Object.notify()</tt> or <tt>Object.notifyAll()</tt> on
* is waiting for a specified thread to terminate.
*/
WAITING,

/**
* Thread state for a waiting thread with a specified waiting time.
* A thread is in the timed waiting state due to calling one of
* the following methods with a specified positive waiting time:
* <ul>
*   <li>{@link Object#wait(long) Object.wait} with timeout</li>
* </ul>
*/
TIMED_WAITING,

/**