- 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 or std::lock_guard.

You should not explicitly use a mutex.

Get hands-on with 1000+ tech skills courses.