Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4391

Priority Inversion

Priority Inversion
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

Priority inversion, also known as priority reversal, priority inversion, or priority flip, is an undesirable task scheduling state. In this state, a high-priority task is indirectly preempted by a low-priority task, causing the relative priorities of the two tasks to be inverted. This often occurs when a high-priority task waits to access a critical resource that is being used by a low-priority task, thereby blocking the high-priority task; meanwhile, the low-priority task is preempted by a medium-priority task, preventing it from releasing the critical resource in a timely manner. In this case, the medium-priority task gains execution. In most cases, priority inversion does not cause direct harm—the delayed execution of the high-priority task goes unnoticed, and eventually the low-priority task releases the shared resource. However, there are also many cases where priority inversion can lead to serious problems.

Definition

A high-priority task is blocked by a low-priority task (because the low-priority task holds a shared resource), and the low-priority task is then preempted by a medium-priority task. As a result, the medium-priority task indirectly suppresses the high-priority task. Scaffold use: reveals unexpected failures in hierarchies. In a company, a CEO's (high) strategy may be blocked by an intern (low) (because the intern controls the approval process), while the intern is busy with trivial tasks assigned by a manager (medium). To solve this, priority inheritance must be adopted—temporarily elevating the intern's authority so they can quickly clear the way.

How to use

Reveals unexpected failures in hierarchies. In a company, a CEO's (high) strategy may be blocked by an intern (low) (because the intern controls the approval process), while the intern is busy with trivial tasks assigned by a manager (medium). To solve this, priority inheritance must be adopted—temporarily elevating the intern's authority so they can quickly clear the way.

Mechanism

A high-priority task is blocked by a low-priority task (the low-priority task holds a shared resource), and the low-priority task is then preempted by a medium-priority task, resulting in the medium-priority task indirectly suppressing the high-priority task. Hierarchical expectations unexpectedly fail.

Practice

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • CEO's strategy blocked by an intern controlling the approval process; system high-priority thread blocked by a low-priority lock; critical approval in a contract delayed by a marginal role.

Common pitfalls

  • Only locking without handling inheritance leads to deadlock/inversion; ignoring medium-priority queue jumping; mistakenly assuming high-priority tasks are naturally not blocked.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E4%BC%98%E5%85%88%E8%BD%AC%E7%BD%AEZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS