Name
ProcessPriorityClass
Synopsis
This enumeration represents the different priorities given to a
process. Process priorities, along with thread priorities, determine
how processor time is allocated. Most processes run with Normal
priority. Use Idle
to specify
that processor time
should be allocated to a process only when the processor is idle. AboveNormal
and BelowNormal
allow you to set priorities slightly
above or below Normal
, but are not supported by
Windows 95, 98, or Me. An exception is thrown if you attempt to
use them.
High
should be used only for time-critical
tasks, but use care in choosing this priority because little time
will be available to other applications. RealTime
is the maximum allowable priority. When
this priority is used, the process runs with higher priority than
even the operating system. Assigning High
and RealTime
to a process will almost certainly make
your system’s user interface unresponsive. For this reason, be
careful when using these.
Public Enum ProcessPriorityClass Normal = 32 Idle = 64 High = 128 RealTime = 256 BelowNormal = 16384 AboveNormal = 32768 End Enum
Hierarchy
System.Object→System.ValueType→ System.Enum(System.IComparable
, System.IFormattable
, System.IConvertible)→ ProcessPriorityClass
Returned By
Process.PriorityClass
Passed To
Process.PriorityClass
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.