Expand Minimize

GetProcessorCount Function

Returns the number of hardware threads on the underlying system.

unsigned int __cdecl GetProcessorCount();

The number of hardware threads.

unsupported_os is thrown if the operating system is not supported by the Concurrency Runtime.

Header: concrtrm.h

Namespace: concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft