Share via


GetProcessorNodeCount Function

Returns the number of NUMA nodes or processor packages on the underlying system.

_CRTIMP unsigned int GetProcessorNodeCount();

Return Value

The number of NUMA nodes or processor packages.

Remarks

If the system contains more NUMA nodes than processor packages, the number of NUMA nodes is returned, otherwise, the number of processor packages is returned.

unsupported_os is thrown if the operating system is not supported by the Concurrency Runtime. The earliest operating system supported is Windows XP with Service Pack 3.

Requirements

Header: concrtrm.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace

IResourceManager::OSVersion Enumeration