dotnet/runtime

Set process priority to use efficiency cores.

開放

#66,417 建立於 2022年2月11日

 (13 則留言) (1 個反應) (0 位負責人)C# (5,445 個分叉)batch import
api-needs-workarea-System.Diagnostics.Processhelp wanted

倉庫指標

星標
 (17,886 顆星)
PR 合併指標
 (平均合併 12天 11小時) (30 天內合併 661 個 PR)

描述

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.

貢獻者指南