Starvation, livelock, and priority inversion

Tell deadlock, starvation, livelock and priority inversion apart by what the stuck task is doing, then read an inversion from a trace. Deadlock depth and concurrency diagnosis · Operating systems.

Four jobs all report stuck: two threads asleep with an idle CPU, a task that is ready but never chosen, two workers that keep retrying and save nothing, and an urgent task waiting behind a routine one. Is it one fault, and what would you check to tell?

What you will learn

  • Tell deadlock, starvation and livelock apart from what the stuck task is doing
  • Read a priority inversion out of a trace and count its inversion units
  • Match each failure to the fix that targets it

Lesson outline

  1. What is the stuck task doing
  2. Two locks, two outcomes
  3. Ready and passed over
  4. Blocked behind a middle task

16 minutes · 4 scenes · 0 predict checks · 10 quiz questions

The full lesson is available with Premium.