dotnet/runtime

Set process priority to use efficiency cores.

Ouverte

#66 417 ouverte le 11 févr. 2022

 (13 commentaires) (1 réaction) (0 personne assignée)C# (5 445 forks)batch import
api-needs-workarea-System.Diagnostics.Processhelp wanted

Métriques du dépôt

Stars
 (17 886 étoiles)
Métriques de merge PR
 (Merge moyen 12j 11h) (661 PRs mergées en 30 j)

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.

Guide contributeur