dotnet/runtime

Set process priority to use efficiency cores.

Open

#66,417 opened on Feb 11, 2022

View on GitHub
 (13 comments) (1 reaction) (0 assignees)C# (5,445 forks)batch import
api-needs-workarea-System.Diagnostics.Processhelp wanted

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (Avg merge 12d 11h) (661 merged PRs in 30d)

Description

Windows 11 SDK has support for setting a process to use the efficiency cores for Windows 11 on 12th Generation Intel Core i7 processors

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setprocessinformation

Is it possible for .net to set a priority of process to use the execution cores?

Describe the solution you'd like

Add a enumerator value to ProcessPriorityClass, BasePriority that tells the scheduler to use efficiency cores if available.

Contributor guide