1 votes 1 votes Consider 3 processes that require 10,20,30 units,arrive at time 0,2,4.The number of CPU scheduling overheads needed using SRTF algo is ? Is there any context switch for the 1st process ? Purvi Agrawal asked Dec 16, 2017 Purvi Agrawal 1.4k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes No , For p1 it will take (0 to 10) P2 it will take (10-30) P3 it will take (30 to 60) Due to it's burst time is in increasing order ( lowest burst time process take place 1st and then 2nd and then 3rd) no preemption requare here ,it will work as like FCFS ... please correct me if I'm incorrect ..! air1ankit answered Dec 16, 2017 air1ankit comment Share Follow See all 3 Comments See all 3 3 Comments reply Purvi Agrawal commented Dec 16, 2017 reply Follow Share It will work like SJF..my doubt is what is CPU overhead here 0 votes 0 votes air1ankit commented Dec 16, 2017 reply Follow Share In this particular questions what is difference if i apply fcfs instead of sjf , can you please tell me mam..! 0 votes 0 votes Purvi Agrawal commented Dec 16, 2017 reply Follow Share No difference in this ques..but that's not my question here !! 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes p1 at time = 0 it will take (0 to 10) P2 at time = 2 it will take (10-30) P3 at time =4 it will take (30 to 60) For cpu scheduling overhead we need to find out where the algorithms is working At t= 10 , require to apply sheduling algorithms to know which one will go for execution 1st P2 or p3 . So, Cpu scheduling overhead is 1 at time t=10 If i am incorrect then correct me air1ankit answered Dec 16, 2017 air1ankit comment Share Follow See all 4 Comments See all 4 4 Comments reply Purvi Agrawal commented Dec 16, 2017 reply Follow Share Total overhead? 1 votes 1 votes air1ankit commented Dec 16, 2017 reply Follow Share Yes total overhead will be 1 at t=10 , 0 votes 0 votes Purvi Agrawal commented Dec 16, 2017 reply Follow Share Not for t=10..for the entire system what is total overhead means till t=60 1 votes 1 votes air1ankit commented Dec 16, 2017 reply Follow Share https://gateoverflow.in/161720/scheduling-overheads 0 votes 0 votes Please log in or register to add a comment.