CA1600: Do not use idle process priority

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CA1600: Do not use idle process priority.

TypeName|DoNotUseIdleProcessPriority|
|CheckId|CA1600|
|Category|Microsoft.Mobility|
|Breaking Change|Breaking|

This rule occurs when processes are set to ProcessPriorityClass.Idle.

Do not set process priority to Idle. Processes that have System.Diagnostics.ProcessPriorityClass.Idle will occupy the CPU when it would otherwise be idle, and will therefore block standby.

Set processes to ProcessPriorityClass.BelowNormal.

This rule should be suppressed only when Idle process priority is required and mobility considerations can be ignored safely.

Show: