Why is deadlock state more critical than starvation?
Answers
Answered by
6
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
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
English,
6 months ago
English,
6 months ago
Science,
6 months ago
Computer Science,
1 year ago
Biology,
1 year ago