in Operating System
1,163 views
2 votes
2 votes
Is convoy effect possible in SJF and Priority (preemptive and non preemptive) scheduling ?

Please explain your answer.
in Operating System
by
1.2k views

4 Comments

What if that doesn't happen at all ? There is a possibility that all high priority processes have high burst times.

I just now saw a video of Ravindrababu ravula on YouTube which says convoy effect is possible with SJF by giving an example. But I am not much convinced with that.
0
0
@Arjun Sir, can you please help ?
0
0
@nitish_joshi, can you tell me how can SJF not cause convoy effect ? I think that even in SJF convoy effect is possible.
1
1

1 Answer

1 vote
1 vote
SJF cannot be used for practical purposes as one doesn't know BT of process when process is created. If all jobs are available at first, then SJF cannot have convoy effect, but if new process comes and it is non pre-emptive SJF, then there can be convoy effect. We generally consider convoy effect, when we assume that all processes are available. Therefore only, FCFS will definitely have convoy effect. In priority scheduling also convoy effect is possible as longer process may be given higher priority.
edited by

1 comment

Do you have any resource for this answer. The thing is everyone is getting different answers with different opinions. I want to know an answer with a proper resource and explanation. Thanks !
0
0