What is Priority Inversion, and how does Priority Inheritance mitigate it?

Last updated 5 July 2026

  • Priority inversion: a high-priority task (H) waits on a lock held by a low-priority task (L), while a medium task (M) preempts L, so H is effectively stalled by M (e.g. Mars Pathfinder resets).

  • Priority inheritance: L temporarily inherits H's priority while holding the lock, so M can't preempt it. L finishes, releases the lock, and reverts to its original priority.

  • Alternative: the priority ceiling protocol runs any lock holder at the lock's fixed ceiling priority, which also prevents deadlock.

  • https://growthequityinterviewguide.com/firms/b-capital
  • https://www.interviewbit.com/sre-interview-questions/
  • https://medium.com/@avinashkumar808482/operating-system-interview-questions-2026-0db6b4674980
  • https://lmskkhsou.in/eservices/e-Resources/Resources/NEP%20Syllabus%202024/core/BCA_Syllabus.pdf
All Operating Systems interview questions