GetProcessorCount Function

Returns the number of hardware threads on the underlying system.

_CRTIMP unsigned int GetProcessorCount();

Return Value

The number of hardware threads.

Remarks

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