[#BloombergLP-bslmt-ThreadUtilImpl-04-hardwareConcurrency]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl&lt;Platform::PosixThreads&gt;]::hardwareConcurrency
:relfileprefix: ../../../
:mrdocs:

Return the number of concurrent threads supported by the implementation on success, and 0 otherwise&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutilimpl&lowbar;pthread&period;h&gt;`

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

== Return Value

number of concurrent threads supported, or 0 on failure


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