1,361 views

2 Answers

Best answer
6 votes
6 votes
Indefinite blocking or indefinite waiting means starvation and not Convoy Effect.Convoy Effect just increases the waiting time of a process but does not lead to indefinite waiting.The order in which they are in the  ready queue(ready state) , they are going to be executed in the same order although it may take more time(Convoy Effect) , but FCFS gives surety that a process will be executed.

Round robin is practically used scheduling algo since it ensures time sharing between all processes.So this also does not lead to starvation.

What we are left with SRTF and priority scheduling.Both of these may lead to starvation.Consider a process have a higher burst time and currently a process with a lower burst time is executed.As soon as this process completes execution , it is quite possible that a process with lower burst time(or higher priority) arrives in the ready queue , then it has to be transferred to "running state" first.So processes with further lower burst times or higher priorities may continue to arrive as a result of which the process which has higher burst time (or lower prioirity) will not get a chance at all.In short starvation will occur.

Hence the  correct answer should be both B) and D)
selected by
2 votes
2 votes
m bit confused that indefinite blocking means convoy effect or not here..if it is convoy effect than FCFS shows it..suppose a process with very large burst time arrives ..then it will block all other short processes for very long time...SJF also shows this convoy effect..
In a multiprogramming system, if multiple processes are waiting for the CPU for execution and a slow processing process is utilizing the CPU then due to the convoy all fast processes waiting for CPU waits for unnecessarily long time. This is convoy effect.

it means indefinite blocking or not m not sure....because in SRTF there is no convoy effect...process with least burst times are selected...in round robin...(it;s not even in the scene)....

so i think SRTF and priority should be options as they are preemptive and it is possible that other processes might not get a chance and a process with least burst time keeps on arriving....or in case of priority scheduling a process with higher priority keeps on arriving..then it could starv other processes...

n sure whether convoy effect and indefinite blocking means same or not

Related questions