dotnet/runtime

Set process priority to use efficiency cores.

Open

#66.417 aperta il 11 feb 2022

Vedi su GitHub
 (13 commenti) (1 reazione) (0 assegnatari)C# (5445 fork)batch import
api-needs-workarea-System.Diagnostics.Processhelp wanted

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

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.

Guida contributor