ThreadPriorityLevel Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the priority level of a thread.
public enum class ThreadPriorityLevel
public enum ThreadPriorityLevel
type ThreadPriorityLevel =
Public Enum ThreadPriorityLevel
- Inheritance
Fields
AboveNormal | 1 | Specifies one step above the normal priority for the associated ProcessPriorityClass. |
BelowNormal | -1 | Specifies one step below the normal priority for the associated ProcessPriorityClass. |
Highest | 2 | Specifies highest priority. This is two steps above the normal priority for the associated ProcessPriorityClass. |
Idle | -15 | Specifies idle priority. This is the lowest possible priority value of all threads, independent of the value of the associated ProcessPriorityClass. |
Lowest | -2 | Specifies lowest priority. This is two steps below the normal priority for the associated ProcessPriorityClass. |
Normal | 0 | Specifies normal priority for the associated ProcessPriorityClass. |
TimeCritical | 15 | Specifies time-critical priority. This is the highest priority of all threads, independent of the value of the associated ProcessPriorityClass. |
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.
Applies to
See also
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour