Worksheet 13

This week, we will look more into the correctness and scalability issue in multithreading environment. Race condition over a pizza

Video Lecture

Remember to open the English subtitle on Youtube: eLearn link of the video lecture

Readings

Learning Objectives

I understand the following concepts:

  • critical section, race condition, mutual exclusion
  • atomic operation
  • mutex locks v.s spinlock trade-off and usecase
  • cache line bouncing
  • false sharing and its remedy
  • how sloppy counter works
  • how spinlock is implemented with test
  • how sleep lock is implemented
Back to top