What is Starvation? How does it differ and is similar to deadlock?
Hello friends, In this blog post(What is Starvation) I am going to let you about the problem of starvation which is also known as indefinite postponement, indefinite blocking, or starvation.
In any system that keeps processes waiting while it makes resource allocation and process scheduling decisions, it is possible to delay indefinitely the scheduling of a process while other processes receive the system’s attention. This results in a situation like starvation|What is Starvation|
indefinite may occur because of biases in a system’s resource scheduling policies. When resources are scheduled on a priority basis, a given process can wait for resources indefinitely as processes with higher priority continue arriving. Waiting is an important aspect of what goes on inside the computer system|What is Starvation|
The system should be designed to manage the waiting process fairly as well as efficiently. In some systems, indefinite postponement is prevented by allowing a process’s priority to increase as it waits for a resource.
This is called aging. Eventually, that process’s priority will exceed the priorities of all incoming processes, and the waiting process will be serviced.
Difference between deadlock and starvation:
Deadlock is a situation where a process is waiting for an event that will never occur. Whereas starvation is a situation where a process is waiting for an event that occurs but is always affecting other processes.
Similarities between deadlock and starvation:
In both deadlock and starvation, a process is waiting for an event to occur.
You can also go through a few more amazing blog links below related to deadlock:
Deadlock Prevention In OS In Hindi…
Starvation vs Deadlock In Hindi…
Deadlock prevention in OS in Hindi…
What Is Deadlock Avoidance OS In Hindi…
What is Deadlock Avoidance In Operating Systems…
Methods For Deadlock Prevention…
Methods For Deadlock Handling/ Deadlock Handling in DBMS…
What is Starvation? How does it differ and is similar to deadlock?…
Deadlock in the distributed operating system in Hindi…
In the case of any queries, you can write to us at a5theorys@gmail.com we will get back to you ASAP.
Hope! you would have enjoyed this post about starvation(What is Starvation), indefinite postponement, indefinite blocking, and deadlock.
Please feel free to give your important feedback in the comment section below|What is Starvation|
Have a great time! Sayonara!