edited by
1,578 views
5 votes
5 votes
Which of the following CPU scheduling leads to convey effect?
i) SJF
ii) Priority
iii) FCFS

the answer is all .

is it true ?

Also , i read somewhere .. that for SJF convoy effect is usually confused with priority inversion .

kindly clear this doubt .
edited by

1 Answer

Best answer
5 votes
5 votes

Convoy effect is like you are going through road by car and suddenly you have to stop and wait for few minutes because minister have to pass through that road .  This is convoy effect ..where a high burst time cpu bound process is executing and low burst time I/O bound process waiting in ready queue ..

all these given scheduling algo - FCFS, Priority and SJF are Highest priority First Scheduling algorithm  means high priority process execute first then low priority process can execute.. so low priority process is starving .

FCFS is non preemptive, FCFS  assigns priorities according to their order of arrival or arrival time.  Non preemptive Shortest-job-first (SJF) assigns priorities according to the burst time. In preemptive shortest-job-first the scheduler is always running the job with the highest priority. hence in all 3 cases convoy effect possible.

selected by

Related questions

0 votes
0 votes
0 answers
1
3 votes
3 votes
1 answer
2
Hardi Shah asked Dec 27, 2015
2,209 views
A process in which of the following state is best suited for swapping into main memory?(A) Ready Suspended (B) Blocked Suspended (C) Running ...
0 votes
0 votes
1 answer
3
Nam14 asked Apr 5, 2023
531 views
Please read below passage from 10th edition Operating System Concepts, pg. 202:5.1.3 Preemptive and Nonpreemptive SchedulingCPU-scheduling decisions may take place under ...
0 votes
0 votes
3 answers
4
Chaitanya Kale asked Sep 22, 2022
657 views
If we are using non-preemptive CPU scheduling then can there be process state transition from running to ready state?