- Exercises

In this exercise, you will use locks instead of mutexes.

Task 1

  • Adjust the program below by using a suitable lock: std::unique_lock or std::lock_guard.

You should not explicitly use a mutex.

Get hands-on with 1300+ tech skills courses.