Specifies the current execution state of the thread.
Assembly: System (in System.dll)
|A state that indicates the thread has been initialized, but has not yet started.|
|A state that indicates the thread is waiting to use a processor because no processor is free. The thread is prepared to run on the next available processor.|
|A state that indicates the thread is currently using a processor.|
|A state that indicates the thread is about to use a processor. Only one thread can be in this state at a time.|
|A state that indicates the thread has finished executing and has exited.|
|A state that indicates the thread is waiting for a resource, other than the processor, before it can execute. For example, it might be waiting for its execution stack to be paged in from disk.|
|The state of the thread is unknown.|
|A state that indicates the thread is not ready to use the processor because it is waiting for a peripheral operation to complete or a resource to become free. When the thread is ready, it will be rescheduled.|
There are two thread state enumerations, and System.Threading.ThreadState. The thread state enumerations are only of interest in a few debugging scenarios. Your code should never use thread state to synchronize the activities of threads.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.