Process.PriorityBoostEnabled Property
Assembly: System (in system.dll)
/** @property */ public boolean get_PriorityBoostEnabled () /** @property */ public void set_PriorityBoostEnabled (boolean value)
public function get PriorityBoostEnabled () : boolean public function set PriorityBoostEnabled (value : boolean)
Property Value
true if dynamic boosting of the process priority should take place for a process when it is taken out of the wait state; otherwise, false. The default is false.| Exception type | Condition |
|---|---|
| Priority boost information could not be retrieved from the associated process resource. | |
| The platform is Windows 98 or Windows Millennium Edition (Windows Me), which does not support this property. -or- The process identifier or process handle is zero. (The process has not been started.) | |
| You are attempting to access the PriorityBoostEnabled property for a process that is running on a remote computer. The property is available only for processes running on the local computer. -or- The process Id is not available. |
When a thread runs in a process for which the priority class has one of the dynamic priority enumeration values (Normal, High, or 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 PriorityBoostEnabled setting affects all the existing threads and any threads subsequently created by the process. To restore normal behavior, set the 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. |
- SecurityPermission for calling members of Process. Demand value: LinkDemand; Named Permission Sets: FullTrust.
Windows 98, Windows 2000 SP4, Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note