The java.lang.Thread class has the following enhancements:
Thread priority handling has changed; see the above link for details.
Thread.State enum class and the new getState() API are provided for querying the execution state of a thread.
The new thread dump API - the getStackTrace and getAllStackTraces methods in the Thread class - provides a programmatic way to obtain the stack trace of a thread or all threads.
The uncaughtExceptionHandler mechanism, previously available only through the ThreadGroup class, is now available directly through the Thread class.
A new form of the sleep() method is provided which allows for sleep times smaller than one millisecond.