Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)
public bool PriorityBoostEnabled { get; set; }

Property Value

Type: System.Boolean
true to boost the thread's priority when the user interacts with the process's interface; otherwise, false. The default is false.
ExceptionCondition
Win32Exception

The priority boost information could not be retrieved.

-or-

The priority boost information could not be set.

PlatformNotSupportedException

The platform is Windows 98 or Windows Millennium Edition.

NotSupportedException

The process is on a remote computer.

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).

NoteNote

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

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.