In this post, we will understand the difference between deadlock and starvation in an operating system −
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.
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.