Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revisionBoth sides next revision | ||
courses:cs377-201951:week9 [2019/04/03 13:34] – [Channels] mlsmith | courses:cs377-201951:week9 [2019/04/04 02:30] – [Channels] mlsmith | ||
---|---|---|---|
Line 31: | Line 31: | ||
* Peter Welch' | * Peter Welch' | ||
* [[courses: | * [[courses: | ||
+ | * Next time: **//Objects Considered Harmful//** (slide 27 of motivation.pdf slides) | ||
+ | * 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, | ||
+ | * forks (communicate with philosophers over channels) | ||
+ | * philosophers (communicate with forks over channels) |