In a concise presentation:

  1. Contrast two example programs that implements the Producer-Consumer problem with mutex

  2. Is it possible to introduce race condition by revising the programs? If so, design an experiment and demonstrate the existence of race condition.

  3. (Optional) Is it possible to introduce deadlock by revising the programs? If so, design an experiment and demonstrate the existence of dead lock.