gpt4 book ai didi

.net - .NET任务计划程序支持多少个处理器核心

转载 作者:行者123 更新时间:2023-12-04 03:22:20 26 4
gpt4 key购买 nike

出于好奇,我想知道.NET任务计划程序支持多少个处理器核心。

Windows Server 2012最多支持640个核心。 .NET是否限于64个,还是会使用所有可用的内核?

最佳答案

.NET确实支持所有核心。 Stephen Toub在MSDN Parallel Extensions Forum中的回答:

The default TPL TaskScheduler targets the .NET ThreadPool. By default, the pool is restricted to a single processor group, and thus to 64 cores. However, in .NET 4.5 you can set the <Thread_UseAllCpuGroups enabled="true"/> flag. When your computer has multiple CPU groups, enabling this element causes the runtime to distribute managed threads across all CPU groups rather than being limited to just one, and thus the default scheduler can target whatever the OS supports. (GCCpuGroup must also be enabled for this setting to take effect.)

关于.net - .NET任务计划程序支持多少个处理器核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12445175/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com