![]() |
![]()
| ![]() |
![]()
NAMEstd::jthread::hardware_concurrency - std::jthread::hardware_concurrency Synopsis[[nodiscard]] static unsigned int hardware_concurrency() noexcept; (since C++20)
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
|