EX: Avoiding Race Condition

Goals

Apply Avoiding Race Conditions: Semaphore/Mutex, and fix EX: Race Conditions multiple times,

  • Atomic integer access

  • Binary semaphore

  • Mutexes of different flavors

Outcome

  • One program for each fix

  • Timings