- Exercises
In this exercise, you will use locks instead of mutexes.
We'll cover the following
Task 1
- Adjust the program below by using a suitable lock:
std::unique_lock
orstd::lock_guard
.
You should not explicitly use a mutex.
Get hands-on with 1400+ tech skills courses.