Question
A high-priority thread waits for a lock held by a low-priority thread, while medium-priority threads keep preempting the holder. Which remedy is appropriate?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Priority inheritance
Explanation:
Priority inheritance temporarily raises the lock holder's priority to that of the blocked high-priority thread.
The holder can then run, release the lock, and reduce priority inversion.
Leave a Reply