Lesson 7: My Precious!
Outline:
- Race conditions
- example: buying milk
- three solutions
- Locks
- spinlock
- test-and-set (atomic instructions)
- Lab Assignment #2
Reading assignment (to be completed by the next class):
- OSTEP Ch. 30: condition variables
- OSTEP Ch. 27: threads