Topic: Operating Systems
Purpose of priority inheritance protocol in synchronization mechanisms is
- A. To prevent priority inversion in systems having two or lesser priorities for a resource
- B. To provide mutual exclusion between threads and prevent data corruption
- C. To prevent priority inversion and ensure fairness in resource allocation
- D. To allow multiple threads to access any resource simultaneously
Answer: C. To prevent priority inversion and ensure fairness in resource allocation
Explanation: The priority inheritance protocol solves the priority inversion problem. When a low-priority task holds a resource required by a high-priority task, the low-priority task temporarily 'inherits' the high priority, ensuring it completes its critical section faster and releases the resource.