Biology, asked by ganeshmn984, 1 year ago

Why is deadlock state more critical than starvation?

Answers

Answered by Anonymous
6

\huge\mathbb\red{HEYA\: MATE}

A fair system prevents starvation and deadlock. Starvation occurs when one or more threads in your program are blocked from gaining access to a resource and, as a result, cannot make progress. Deadlock, the ultimate form of starvation, occurs when two or more threads are waiting on a condition that cannot be satisfied.

Answered by AditiHegde
2

deadlock state is more critical than starvation because-

  • deadlock is said to happen when the there is a limited resource but there are multiple processes in the CPU who are competing against each other to get that limited resource. so here, each process keeps a resource and wait for the processes to hold the available resource.
  • starvation on the other hand is when a program of low priority requests for the resource to the CPU, but due to the usage of that resource by a high priority program for a long period cannot run.
Similar questions