O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

ThreadState

Synopsis

This enumeration represents the different thread states as recognized by the operating system. They mostly correspond to the states defined by System.Threading.ThreadState, but also include Transition for when a thread is waiting on something other than the CPU (it might be waiting on disk I/O, for example).

public enum ThreadState {
            Initialized = 0,
            Ready = 1,
            Running = 2,
            Standby = 3,
            Terminated = 4,
            Wait = 5,
            Transition = 6,
            Unknown = 7
}

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)ThreadState

Returned By

ProcessThread.ThreadState

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required