CS FundamentalsHardProduct-company MCQ pattern

Process L (low priority) holds a lock that high-priority process H needs. Medium-priority process M, which does not need the lock, becomes ready and preempts L. What is this situation called, and what fixes it?

  1. A. Priority inversion; fixed by priority inheritance (L temporarily runs at H's priority)
  2. B. Deadlock; fixed by the Banker's algorithm
  3. C. Convoy effect; fixed by Round Robin
  4. D. Starvation; fixed by aging

Correct answer: A. Priority inversion; fixed by priority inheritance (L temporarily runs at H's priority)

H is effectively blocked by M, a lower-priority process: priority inversion. With priority inheritance, L inherits H's priority while holding the lock, so M cannot preempt it; L releases the lock quickly and H runs.

More Operating Systems questions

Exams that ask this topic