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 ProcessThread.PriorityLevel property, to set the thread's priority.
Member Name | Description |
---|---|
AboveNormal |
Specifies one step above the normal priority for the associated System.Diagnostics.ProcessPriorityClass. |
BelowNormal |
Specifies one step below the normal priority for the associated System.Diagnostics.ProcessPriorityClass. |
Highest |
Specifies highest priority. This is two steps above the normal priority for the associated System.Diagnostics.ProcessPriorityClass. |
Idle |
Specifies idle priority. This is the lowest possible priority value of all threads, independent of the value of the associated System.Diagnostics.ProcessPriorityClass. |
Lowest |
Specifies lowest priority. This is two steps below the normal priority for the associated System.Diagnostics.ProcessPriorityClass. |
Normal |
Specifies normal priority for the associated System.Diagnostics.ProcessPriorityClass. |
TimeCritical |
Specifies time-critical priority. This is the highest priority of all threads, independent of the value of the associated System.Diagnostics.ProcessPriorityClass. |