73 73 votes Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue? Shortest remaining time first Round-robin with the time quantum less than the shortest CPU burst Uniform random Highest priority first with priority proportional to CPU burst length Operating System gatecse-2016-set1 operating-system process-scheduling normal + – Sandeep Singh 25.9k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Show 4 previous comments Nitesh12-10 commented May 24, 2024 reply Follow flag What is Uniform random process scheduling? 1 1 replyShare usher commented Dec 2, 2024 reply Follow flag waiting time will be reduced when the jobs with lower burst time are completed first which is done by SRTF. 2 2 replyShare himanshu2001 commented Dec 4, 2024 reply Follow flag @Nitesh12-10 select any proccess from the ready queue at random and run it. 0 0 replyShare Please log in or register to add a comment.
Best answer 79 79 votes Answer should be (A) SRTF SJF minimizes average waiting time. Probably optimal. Now, here as all processes arrive at the same time, SRTF would be same as SJF. and hence, the answer. Reference: http://www.cs.columbia.edu/~junfeng/10sp-w4118/lectures/l13-sched.pdf See Slide 16,17 and 23 abhilashpanicker29 answered Feb 14, 2016 • edited Jul 2, 2018 by kenzou abhilashpanicker29 comment Share Follow See all 18 Comments 18 18 Comments reply Show 15 previous comments manya03 commented Aug 1, 2025 reply Follow flag Here above in the answer it is given that as all processes arrive at the same time, SRTF would be same as SJF. so it is the answer. But if the processes arrive at different time then also I guess SRTF will give the minimum average waiting time ? 1 1 replyShare P0535_Yedidyah_Sagar commented Aug 1, 2025 reply Follow flag @manya03Yes. SRTF is more optimal than SJF in that scenario 6 6 replyShare manya03 commented Aug 1, 2025 reply Follow flag Okay I get it !! 0 0 replyShare Please log in or register to add a comment.
17 17 votes Turnaround time is the total time taken by the process between starting and the completion and waiting time is the time for which process is ready to run but not executed by CPU scheduler. As we know, in all CPU Scheduling algorithms, shortest job first is optimal i.ie. it gives minimum turn round time, minimum average waiting time and high throughput and the most important thing is that shortest remaining time first is the pre-emptive version of shortest job first. shortest remaining time first scheduling algorithm may lead to starvation because If the short processes are added to the cpu scheduler continuously then the currently running process will never be able to execute as they will get pre-empted but here all the processes are arrived at same time so there will be no issue such as starvation. So, the answer is Shortest remaining time first, which is answer (A). Regina Phalange answered May 1, 2017 2 flags: ✌ Edit necessary (GEETANJALI_AWASTHI) Regina Phalange comment Share Follow 0 reply Please log in or register to add a comment.
11 11 votes this would help Siddiqui_Danish answered Dec 16, 2025 Siddiqui_Danish comment Share Follow 0 reply Please log in or register to add a comment.
5 5 votes If we take arbitrary set of CPU-bound processes with unequal CPU burst lengths Process Burst Time P1 2 P2 3 P3 4 P4 5 Average waiting of SRTF : (0+2+5+9)/4 = 4 Average waiting of RR(1 ms QT) : (3+6+8+9)/4 = 6.5 Average waiting of Highest priority : (0+5+9+12)/4 = 6.5 Answer : Option A Sohan25 answered Dec 14, 2023 Sohan25 comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes Shortest remaining time first is optimal. For any scheduling scenario where response time is not a metric of concern, there is no better algorithm than SRTF. SRTF produces the best average waiting time, completion time and turnaround times. himanshu2001 answered Dec 4, 2024 himanshu2001 comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Ans should be srtf but because in srtf their may be possibility of starvation so answer is round robin. Sibarpit answered Feb 12, 2016 3 flags: ✌ Edit necessary (zgod)✌ Edit necessary (Arkadeep_Das “Wrong answer”)✌ Edit necessary (Vignan) Sibarpit comment Share Follow See all 2 Comments 2 2 Comments reply pramod commented Feb 14, 2016 reply Follow flag Sjf will minimum average waiting time . when all jobs submitted at the same time SJF and SRTF same . 1 1 replyShare abhilashpanicker29 commented Feb 14, 2016 reply Follow flag Question asked was about average waiting time.. And SRTF is the answer.. http://www.cs.columbia.edu/~junfeng/10sp-w4118/lectures/l13-sched.pdf 0 0 replyShare Please log in or register to add a comment.