| Package | Description |
|---|---|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.lang.management |
Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
|
| Modifier and Type | Method and Description |
|---|---|
Thread |
Thread.getState()
Returns the state of this thread.
|
static Thread |
Thread.State.valueOf(String
Returns the enum constant of this type with the specified name.
|
static Thread |
Thread.State.values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Thread |
ThreadInfo.getThreadState()
Returns the state of the thread associated with this
ThreadInfo.
|