System.Diagnostics.Process.BasePriority Property

Gets the base priority of the associated process.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Diagnostics.MonitoringDescription("Base process priority.")]
[System.MonoTODO]
public int BasePriority { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

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

The Process.BasePriority property lets you view the starting priority assigned to a process. However, because it is read-only, you cannot use the Process.BasePriority to set the priority of the process. To change the priority, use the Process.PriorityClass property. The Process.BasePriority is viewable using the System Monitor, while the Process.PriorityClass is not. Both the Process.BasePriority and the Process.PriorityClass can be viewed programmatically. The following table shows the relationship between Process.BasePriority values and Process.PriorityClass values.

4

ProcessPriorityClass.Idle

8

ProcessPriorityClass.Normal

13

ProcessPriorityClass.High

24

ProcessPriorityClass.RealTime

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0