2,417 views
1 1 vote
Which of the following statement is correct?

S1: If deadlock occurs then starvation occurs.

S2: if deadlock occurs then starvation do not occur?

2 Answers

1 1 vote

Deadlock: is when all the processes do not get access to resources because every process is waiting for some another process and there is cycle.

Starvation: is when a low priority process does not get access to the resources it needs because there is a high priority process accessing the resources. The entire system of processes hasn't come to halt in this case.


Since, only low priority process do not have access to resources in starvation, while in deadlock no process has access to the resources they need therefore deadlock is an extreme case of starvation with the criteria of extremeness being the total count of process not getting access to the resource.


Deadlock and starvation are related as both are the cases of process not having access to resource.

as a ANSWER -i will select S1

Position:
Show:

Related questions

0 0 votes
1 1 answer
858
858 views
vamp_vaibhav asked Aug 21, 2017
858 views
i know these questions has been asked many times...but nowhere i get an appropriate answer...1- does no bounded waiting implies starvation free or vice versa ?2- does dea...
0 0 votes
1 1 answer
2.1k
2.1k views
Akriti sood asked Dec 4, 2016
2,058 views
how is deadlock and starvation possible in test and set lock solution of M.E??
2 2 votes
0 0 answers
4.6k
4.6k views
Nandhakumar asked Feb 7, 2023
4,619 views
Difference between Convoy effect, starvation and deadlockI have shared my understanding on convoy effect, starvation and deadlock. Please correct me if I am wrong.Let us ...
0 0 votes
0 0 answers
256
256 views
Umang_Jaiswal_(LAUS_ asked Apr 3, 2025
256 views
Does deadlock imply starvation?if a schedule can cause deadlock then can we tick the option of starvation too ?if there will be deadlock there will be starvation too ?