

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between Deadlock and Starvation in OS
In this post, we will understand the difference between deadlock and starvation in an operating system −
Deadlock
It is also known as circular wait.
In this, all processes are waiting for each other to get completed.
Hence, none of them can execute because they are waiting for the other process to complete.
Hence, the resources are blocked by the process.
The necessary conditions for deadlock are mutual exclusion, hold and wait, no pre-emption, and circular wait.
It can be prevented by avoiding conditions such as mutual exclusion, hold and wait, no preemption and circular wait.
Deadlock n OS:
Starvation
It is also known as lived lock.
In this process, the high priority processes are executed, and low priority processes are blocked.
This means, the low priority process starves due to lack of resources.
Resources are utilized by high priority process continuously.
Priorities are assigned to process.
It can be prevented using the ‘Aging’ technique.
- Related Questions & Answers
- Starvation and Deadlock
- Deadlock and Starvation in C#
- Difference between Network OS and Distributed OS
- Difference Between Paging and Swapping in OS
- Difference Between Multitasking and Multithreading in OS
- Difference Between Interrupt and Polling in OS
- Difference Between Buffering and Caching in OS
- Difference Between Paging and Segmentation in OS
- Difference Between Spooling and Buffering in OS
- Difference Between Virtual and Cache Memory in OS
- Difference Between Semaphore and Monitor in OS\n
- Difference Between Preemptive and Non-Preemptive Scheduling in OS
- Difference Between Long-Term and Short-Term Scheduler in OS
- Differentiate between OS and DBMS files and OS and DBMS buffer manager
- What are the differences between Client OS and Server OS?