+ 1

_Thrd_hardware_concurrency

Does it mean that number of thread sets by _Thrd_hardware_concurrency() is what at max your hardware is able to run together? I got answer of _Thrd_hardware_concurrency() as 12. Does it mean that I can work on 12 different threads at same time ?

3rd Nov 2022, 6:44 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
3 odpowiedzi
+ 1
_Thrd_hardware_concurrency() returns the number of hardware threads supported by your CPU(s). If you receive a value of 12, it means that your hardware can theoretically run up to 12 threads simultaneously. However, the practical ability to work with 12 threads depends on your tasks, resources, and potential overhead. The returned number represents your hardware's maximum potential for concurrent execution and serves as a guideline for designing your application, but you don't necessarily have to always use exactly 12 threads
30th Sep 2023, 6:54 PM
D1M3
D1M3 - avatar
+ 1
30th Sep 2023, 6:56 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
0
Np
30th Sep 2023, 6:56 PM
D1M3
D1M3 - avatar