![]() |
![]()
| ![]() |
![]()
NAMEstd::thread::hardware_concurrency - std::thread::hardware_concurrency Synopsisstatic unsigned int hardware_concurrency() noexcept; (since C++11)
Parameters(none) Return value Number of concurrent threads supported. If the value is not well
defined or not
Example// Run this code
Possible output:4 concurrent threads are supported. See also hardware_destructive_interference_size min offset to avoid false
sharing
|