This topic has not yet been rated - Rate this topic

ThreadPriorityLevel Enumeration

Specifies the priority level of a thread.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)
public enum ThreadPriorityLevel
Member name Description
Idle Specifies idle priority. This is the lowest possible priority value of all threads, independent of the value of the associated ProcessPriorityClass.
Lowest Specifies lowest priority. This is two steps below the normal priority for the associated ProcessPriorityClass.
BelowNormal Specifies one step below the normal priority for the associated ProcessPriorityClass.
Normal Specifies normal priority for the associated ProcessPriorityClass.
AboveNormal Specifies one step above the normal priority for the associated ProcessPriorityClass.
Highest Specifies highest priority. This is two steps above the normal priority for the associated ProcessPriorityClass.
TimeCritical Specifies time-critical priority. This is the highest priority of all threads, independent of the value of the associated ProcessPriorityClass.

Every thread has a base-priority level determined by the thread's priority value and the priority class of its process. The operating system uses the base-priority level of all executable threads to determine which thread gets the next slice of processor time.

The priority level is not an absolute value, but instead is a range of priority values. The operating system computes the priority by using the process priority class to determine where, in the range specified by the PriorityLevel property, to set the thread's priority.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ