Extracting the number of physical sound processors

I know what I can use System.Environment.ProcessorCountto return the number of "processors" in a machine. What I'm trying to do is find out if there is a way to determine the number of cores in the processor, not counting the hyperthreads as the "core". For example, on a dual-core hyperthreading processor System.Environment.ProcessorCount, 4 will return, because there are 2 physical cores, as with a hyperthreading. What I want to do is return 2, because there are only 2 physical cores.

I am using C # by the way.

+3
source share
1 answer

WMI . : β†’ .NET/#?

, ; , Windows Server 2003 Microsoft, "NumberOfCores" .

+3

Source: https://habr.com/ru/post/1759248/


All Articles