2,045 views
1 votes
1 votes
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 votes
1 votes

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

0 votes
0 votes
every deadlock is a starvation'

but every starvation is not a deadlock

 

so i ,ll go with s1

Related questions

0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
4
rahul sharma 5 asked Dec 7, 2017
273 views
Starvation freedom = Bounded waiting ,this is a false implication as i have read,Can some one give any example proving this claim to be false?