Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5995097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:54:42+00:00 2026-05-22T23:54:42+00:00

I am having problem understanding Priority Inversion Snippet from the article: Consider there is

  • 0

I am having problem understanding Priority Inversion

Snippet from the article:

Consider there is a task L, with low
priority. This task requires resource
R. Consider that L is running and it
acquires resource R. Now, there is
another task H, with high priority.
This task also requires resource R.
Consider H starts after L has acquired
resource R. Now H has to wait until L
relinquishes resource R.

Everything works as expected up to
this point, but problems arise when a
new task M starts with medium priority
during this time. ` Since R is still
in use (by L), H cannot run. Since M
is the highest priority unblocked
task, it will be scheduled before L.
Since L has been preempted by M, L
cannot relinquish R. So M will run
till it is finished, then L will run –
at least up to a point where it can
relinquish R – and then H will run.
Thus, in above scenario, a task with
medium priority ran before a task with
high priority, effectively giving us a
priority inversion.

The question is relevant to the second part of the article. Why is that a process with H (Higher) priority cannot pre-empt a process with L (lower) priority but a process with M (medium) priority can pre-empt? i.e. If H was put to block since R was in use, why was M not blocked as well ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:54:43+00:00Added an answer on May 22, 2026 at 11:54 pm

    Because M does not require resource R, so it is able to run while L still has it in use; H, on the other hand, cannot run until L is able to release R.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Ruby, so I'm having some trouble understanding this weird exception problem
I'm having a problem understanding Java generics and I've simplified to this example class
I'm having a little problem understanding variance of methods when overloading. While this perfectly
I'm having trouble understanding the top level of abstraction of this problem. The Problem:
I'm having a problem understanding the shift/reduce confict for a grammar that I know
I'm having a little bit of trouble understanding what the problem is here. I
We were having a problem with our build server not checking out modifications from
I'm having problem with understanding some of QList behavior. #include <QList> #include <iostream> using
I am having a problem understanding how array.sort{ |x,y| block } works exactly, hence
I'm having a problem understanding something about MVVM. My application relies on dialogs for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.