RTUComputer ScienceYr 2020 · Sem 82020

Q8Real Time Systems

Question

2 marks

What is Priority Inversion?

Answer

Priority Inversion is a catastrophic scheduling failure where a high-priority task is mathematically blocked and forced to wait for a low-priority task to release a shared resource, destroying system determinism.

It famously almost destroyed the Mars Pathfinder mission. A low-priority task grabs a Mutex lock. A high-priority task preempts it, but then violently blocks because it needs that exact lock. Meanwhile, a medium-priority task preempts the low-priority one, mathematically causing the high-priority task to wait infinitely.

Back to Paper