Week 9

Continuing from where we left off last week

  • Monday: class canceled (Marc at Dome)
  • Assign 4
    • questions?
    • due: Fri, Nov 2, 11:59pm (deadline extended!)
  • Demo and codewalk of csp-dining-philosophers.go
    • Go language features highlighted:
      • channels
      • select
    • Design basis for solution in Go: go routines (processes)
      • room (communicates with philosophers over channels)
        • for philosophers to enter/leave – at most 4 at a time to prevent deadlocking, 5th philosopher blocks
      • forks (communicate with philosophers over channels)
      • philosophers (communicate with forks over channels)