Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

ThreadState Enumeration

Specifies the current execution state of the thread.

Namespace: System.Diagnostics
Assembly: System (in system.dll)

public enum ThreadState
public enum ThreadState
public enum ThreadState
 Member nameDescription
InitializedA state that indicates the thread has been initialized, but has not yet started. 
ReadyA 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. 
RunningA state that indicates the thread is currently using a processor. 
StandbyA state that indicates the thread is about to use a processor. Only one thread can be in this state at a time. 
TerminatedA state that indicates the thread has finished executing and has exited. 
TransitionA 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. 
UnknownThe state of the thread is unknown. 
WaitA 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. 

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.