Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Priority inversion
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Formulation == Consider two tasks ''H'' and ''L'', of high and low priority respectively, either of which can acquire exclusive use of a shared resource ''R''. If ''H'' attempts to acquire ''R'' after ''L'' has acquired it, then ''H'' becomes blocked until ''L'' relinquishes the resource. Sharing an exclusive-use resource (''R'' in this case) in a well-designed system typically involves ''L'' relinquishing ''R'' promptly so that ''H'' (a higher-priority task) does not stay blocked for excessive periods of time. Despite good design, however, it is possible that a third task ''M'' of medium priority becomes runnable during ''L''<nowiki>'</nowiki>s use of ''R''. At this point, ''M'' being higher in priority than ''L'', preempts ''L'' (since ''M'' does not depend on ''R''), causing ''L'' to not be able to relinquish ''R'' promptly, in turn causing ''H''—the highest-priority process—to be unable to run (that is, ''H'' suffers unexpected blockage indirectly caused by lower-priority tasks like ''M'').
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)