System.Diagnostics.Process.PriorityBoostEnabled Property

Gets or sets a value indicating whether the associated process priority should temporarily be boosted by the operating system when the main window has the focus.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Diagnostics.MonitoringDescription("Process will be of higher priority while it is actively used.")]
[System.MonoTODO]
public bool PriorityBoostEnabled { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

When a thread runs in a process for which the priority class has one of the dynamic priority enumeration values (ProcessPriorityClass.Normal, ProcessPriorityClass.High, or ProcessPriorityClass.RealTime), the system temporarily boosts the thread's priority when it is taken out of a wait state. This action prevents other processes from interrupting the processing of the current thread. The Process.PriorityBoostEnabled setting affects all the existing threads and any threads subsequently created by the process. To restore normal behavior, set the Process.PriorityBoostEnabled property to false.

Note:

Boosting the priority too high can drain resources from essential operating system and network functions, causing problems with other operating system tasks.

Requirements

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