cpufeature/cpu_x86_windows.c
// Counts total number of logical cores on a system, for determining if there 
// multiple CPU chips in a machine.
// Code modified from: os_cpu_count_impl in https://github.com/python/cpython/blob/3.9/Modules/posixmodule.c
Counts total number of logical cores on a system, for determining if there
multiple CPU chips in a machine.
Counts total number of logical cores on a system for determining if there multiple CPU chips in a machine .
int hardware_concurrency() {
    int ncpu = GetActiveProcessorCount(ALL_PROCESSOR_GROUPS);
    return ncpu;
}
int hardware_concurrency ( ) { int ncpu = GetActiveProcessorCount ( ALL_PROCESSOR_GROUPS ) ; return ncpu ; }
Counts total number of logical cores on a system, for determining if there
multiple CPU chips in a machine.
Counts total number of logical cores on a system for determining if there multiple CPU chips in a machine .
// Requires Windows 7 or greater