Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Thread.State

public static final enum Thread.State
extends Enum<Thread.State>

java.lang.Object
   ↳ java.lang.Enum<java.lang.Thread.State>
     ↳ java.lang.Thread.State


A representation of a thread's state. A given thread may only be in one state at a time.

Summary

Enum values

Thread.State  BLOCKED

The thread is blocked and waiting for a lock. 

Thread.State  NEW

The thread has been created, but has never been started. 

Thread.State  RUNNABLE

The thread may be run. 

Thread.State  TERMINATED

The thread has been terminated. 

Thread.State  TIMED_WAITING

The thread is waiting for a specified amount of time. 

Thread.State  WAITING

The thread is waiting. 

Public methods

static Thread.State valueOf(String name)
final static State[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

BLOCKED

Added in API level 1
Thread.State BLOCKED

The thread is blocked and waiting for a lock.

NEW

Added in API level 1
Thread.State NEW

The thread has been created, but has never been started.

RUNNABLE

Added in API level 1
Thread.State RUNNABLE

The thread may be run.

TERMINATED

Added in API level 1
Thread.State TERMINATED

The thread has been terminated.

TIMED_WAITING

Added in API level 1
Thread.State TIMED_WAITING

The thread is waiting for a specified amount of time.

WAITING

Added in API level 1
Thread.State WAITING

The thread is waiting.

Public methods

valueOf

Added in API level 1
Thread.State valueOf (String name)

Parameters
name String
Returns
Thread.State

values

Added in API level 1
State[] values ()

Returns
State[]
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.