[#GetNumCores]
= GetNumCores
:mrdocs:

Return the number of cores available on the current system&period;

== Synopsis

Declared in `&lt;common&sol;system&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
GetNumCores();
----

== Description

[NOTE]
====
This does count virtual cores, such as those provided by HyperThreading&period;

====

== Return Value

The number of available (including virtual) cores&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
