Lecture 9: Concurrency, pt. 2

Recap

When do deadlocks happen?

Aside: When is data shared?

  1. Global variables
  2. Local variables
  3. Local static variables

Implementing a Concurrent Queue

Semaphores

Basic Concurrency with Fork