Priority Inheritance Protocol (PIP) in Synchronization (original) (raw)

Last Updated : 15 Jul, 2025

Prerequisite - Introduction of Process Synchronization
Priority Inheritance Protocol (PIP) is a technique which is used for sharing critical resources among different tasks. This allows the sharing of critical resources among different tasks without the occurrence of unbounded priority inversions.

Basic Concept of PIP :
The basic concept of PIP is that when a task goes through priority inversion, the priority of the lower priority task which has the critical resource is increased by the priority inheritance mechanism. It allows this task to use the critical resource as early as possible without going through the preemption. It avoids the unbounded priority inversion.

Working of PIP :

If the critical resource is free then allocate the resource If the critical resource is held by higher priority task then wait for the resource If the critical resource is held by lower priority task {
lower priority task is provided the highest priority other tasks wait for the resource }

Advantages of PIP :
Priority Inheritance protocol has the following advantages:

Disadvantages of PIP :
Priority Inheritance Protocol has two major problems which may occur: