Priority Ceiling Protocol is a job task synchronization protocol in a real-time system that is better than Priority inheritance protocol in many ways. Real-Time Systems are multitasking systems that involve the use of semaphore variables, signals, and events for job synchronization.
In Priority ceiling protocol an assumption is made that all the jobs in the system have a fixed priority. It does not fall into a deadlock state.
The chained blocking problem of the Priority Inheritance Protocol is resolved in the Priority Ceiling Protocol.
The basic properties of Priority Ceiling Protocols are:
- Each of the resources in the system is assigned a priority ceiling.
- The assigned priority ceiling is determined by the highest priority among all the jobs which may acquire the resource.
- It makes use of more than one resource or semaphore variable, thus eliminating chain blocking.
- A job is assigned a lock on a resource if no other job has acquired lock on that resource.
- A job J, can acquire a lock only if the job’s priority is strictly greater than the priority ceilings of all the locks held by other jobs.
- If a high priority job has been blocked by a resource, then the job holding that resource gets the priority of the high priority task.
- Once the resource is released, the priority is reset back to the original.
- In the worst case, the highest priority job J1 can be blocked by T lower priority tasks in the system when J1 has to access T semaphores to finish its execution.
Priority Scheduling Protocol can be used to tackle the problem of the priority inversion problem unlike that of Priority Inheritance Protocol. It makes use of semaphores to share the resources with the jobs in a real-time system.
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Difference between Stop and Wait protocol and Sliding Window protocol
- Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
- RADIUS Protocol
- TACACS+ Protocol
- Exterior Gateway Protocol (EGP)
- Datagram Delivery Protocol (DDP)
- User Datagram Protocol (UDP)
- Border Gateway Protocol (BGP)
- Routing Information Protocol (RIP)
- Dynamic Trunking Protocol (DTP)
- VLAN Trunking Protocol (VTP)
- Wireless Application Protocol
- Routing Information Protocol (RIP) V1 & V2
- Password Authentication Protocol (PAP)
- How Address Resolution Protocol (ARP) works?
- Real Time Transport Protocol (RTP)
- Secure Electronic Transaction (SET) Protocol
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.