This documentation is archived and is not being maintained.

ProcessThread.PriorityBoostEnabled Property

Gets or sets a value indicating whether the operating system should temporarily boost the priority of the associated thread whenever the main window of the thread's process receives the focus.

[Visual Basic]
Public Property PriorityBoostEnabled As Boolean
public bool PriorityBoostEnabled {get; set;}
public: __property bool get_PriorityBoostEnabled();
public: __property void set_PriorityBoostEnabled(bool);
public function get PriorityBoostEnabled() : Boolean;
public function set PriorityBoostEnabled(Boolean);

Property Value

true to boost the thread's priority when the user interacts with the process's interface; otherwise, false. The default is false.


When PriorityBoostEnabled is true, the system temporarily boosts the thread's priority whenever its associated process is taken out of the wait state. This action prevents other processes from interrupting the processing of the current thread. The PriorityBoostEnabled setting affects all existing threads as well as any threads subsequently created by the process. To restore normal behavior, set the PriorityBoostEnabled property to false.

PriorityBoostEnabled has an effect only when the thread is running in a process that has a PriorityClass set to one of the dynamic priority enumeration values (Normal, High, or RealTime).

Note   Boosting the priority too high can drain resources from essential operating system and network functions. This could cause problems with other operating system tasks.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ProcessThread Class | ProcessThread Members | System.Diagnostics Namespace | ProcessPriorityClass