NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Process.BasePriority

Gets the base priority of the associated process.

[Visual Basic]
Public ReadOnly Property BasePriority As Integer
[C#]
public int BasePriority {get;}
[C++]
public: __property int get_BasePriority();
[JScript]
public function get BasePriority() : int;

Property Value

The base priority, computed from the PriorityClass of the associated process.

Exceptions

Exception Type Condition
SystemException The process has exited.

-or-

The process has not started, so there is no process ID.

Remarks

The process's BasePriority is the starting priority for threads created within the associated process. You can view information about the base priority through the Performance Monitor's "Priority Base" counter.

Based on time elapsed or other boosts, the base priority level can be changed by the operating system when a process should be placed ahead of others.

The BasePriority property lets you view the starting priority assigned to a process. However, because it is read-only, you cannot use BasePriority to set a process's priority. To change the priority, use PriorityClass. BasePriority is viewable using the system's Performance Monitor. The counter can also be viewed programmatically. PriorityClass cannot be viewed using the Performance Monitor. The following tabel shows the relationship between BasePriority values and PriorityClass values.

BasePriority PriorityClass
4 Idle
8 Normal
13 High
24 RealTime

See Also

Process Class | Process Members | System.Diagnostics Namespace | PriorityClass | ProcessPriorityClass | ThreadPriorityLevel