Exercise: Try Different Synchronization Techniques

Try synchronization with 'std::atomic_flag' and 'std::atomic<bool>'.

We'll cover the following

Challenge

Change the synchronization of the following program from condition variables to:

  • std::atomic_flag
  • std::atomic<bool>

Get hands-on with 1400+ tech skills courses.