Week 7

Dining UPC Philosophers

  • Midterm Programming Assignment PDF
  • Assigned: Wed, Oct 7
  • Due: Fri, Oct 16, 11:59pm

Class exercise

  • The Bear and the Honeybees (handout) PDF
    • split binary semaphores
      • where for binary semaphores s1 and s2:
          0 <= s1+s2 <= 1 
    • technique: pass the baton

Semaphores

  • Ben-Ari Ch 6
    • slides: PDF
      • begin slide 105

Monitors

  • Marc's Lecture Notes: PDF
    • Java example: Dining Java Philosophers
      • copy my example code:
        $ cp -r /home/mlsmith/cs377-examples/java-phils ./ 
  • Ben-Ari Ch 7
    • slides: PDF
      • begin slide 146