0 votes 0 votes If the cpu scheduling policy is SJF with preemption , the avg waiting time will be a)8ms b)14ms c)5.6 ms d)none Meenakshi Sharma asked Dec 5, 2017 Meenakshi Sharma 2.7k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply abhishek tiwary commented Dec 5, 2017 reply Follow Share 5.6ms?? Av.WT=28/5=5.6ms sorry i have not seen priority this is by only preemptive SJF 0 votes 0 votes abhishek tiwary commented Dec 5, 2017 reply Follow Share as @ Ashwin Kulkarni has given the answer 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes Answer is option C AT BT CT TAT WT p1 0 10 20 20 10 p2 0 5 8 8 3 p3 2 3 5 3 0 p4 5 20 40 35 15 p5 10 2 12 2 0 p2 p3 p2 p1 p5 p1 p4 0 2 5 8 10 12 20 40 Avg waiting time = 28/5 = 5.6 Ashwin Kulkarni answered Dec 5, 2017 edited Dec 5, 2017 by Ashwin Kulkarni Ashwin Kulkarni comment Share Follow See all 9 Comments See all 9 9 Comments reply Show 6 previous comments Ashwin Kulkarni commented Dec 5, 2017 reply Follow Share @Ajay Yes it is SRTF. But priority is used only when remaining Burst times are equal. 1 votes 1 votes Pawan Kumar 2 commented Dec 5, 2017 reply Follow Share Even SJF has BT as their criteria .. Am I right Sir? 0 votes 0 votes Ashwin Kulkarni commented Dec 5, 2017 reply Follow Share Yes SJF has mainly BT as a criteria. but simple SJF does non-preemptive scheduling. 1 votes 1 votes Please log in or register to add a comment.