Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ThreadPriorityLevel Enumeration

Specifies the priority level of a thread.

[Visual Basic]
<Serializable>
Public Enum ThreadPriorityLevel
[C#]
[Serializable]
public enum ThreadPriorityLevel
[C++]
[Serializable]
__value public enum ThreadPriorityLevel
[JScript]
public
   Serializable
enum ThreadPriorityLevel

Remarks

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.

Members

Member name Description
AboveNormal Specifies one step above the normal priority for the associated ProcessPriorityClass.
BelowNormal Specifies one step below the normal priority for the associated ProcessPriorityClass.
Highest Specifies highest priority. This is two steps above the normal priority for the associated ProcessPriorityClass.
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.
Normal Specifies 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.

Requirements

Namespace: System.Diagnostics

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

System.Diagnostics Namespace | ProcessThread.PriorityLevel | ProcessPriorityClass

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft