- Exercise
In this exercise, you will use std::thread::hardware_concurrency().
We'll cover the following
Task 1
Parametrize the summation of the natural number in the program below so that the number of threads depends on the value of std::thread::hardware_concurrency()
.
If you get the result 0, assume you have four threads.
Get hands-on with 1400+ tech skills courses.