- Exercise

Let’s solve an exercise about locks.

We'll cover the following

Problem statement #

We should not explicitly use a mutex.

  • Adjust a lock to the given program.
  • Which lock is suitable? (std::unique_lock or std::lock_guard)

Get hands-on with 1400+ tech skills courses.