0 0 votes closed as a duplicate of: madeeasy test series Is ans 12 or 17? Operating System operating-system + – srestha 1.4k views comment Share Follow Print See all 12 Comments 12 12 Comments reply braindead commented Jan 29, 2018 reply Follow flag I'm getting 17 0 0 replyShare Ashwani Kumar 2 commented Jan 29, 2018 reply Follow flag I am getting 17 0 0 replyShare braindead commented Jan 29, 2018 reply Follow flag If 12 was the BT, then after 6 units, remaining BT for P0 would be 6 Then P2 is scheduled, thus it should be less than 6, say 5. It will execute for 4 units, then its remaining BT will be 1. For P1 to be scheduled after this, it's BT should be less than 1, which won't be possible 0 0 replyShare srestha commented Jan 29, 2018 reply Follow flag it is SRTF then minimum 6 is already for P0 now, if we take burst time 6 more (i.e. greater than P1 and P2), then will not be it minimum?? 0 0 replyShare srestha commented Jan 29, 2018 reply Follow flag it only asked burst time for P0 0 0 replyShare braindead commented Jan 29, 2018 reply Follow flag But we also have to consider that after P2 executes P1 has to execute 0 0 replyShare Ashwani Kumar 2 commented Jan 29, 2018 reply Follow flag @srestha In SRTF, the next process will schedule only when there is a process whose remaining burst is less than the process running in CPU right? Here scenario is suppose P0 comes at x, it runs 6 unit till x+6, then P2 comes it runs 4 till x+10 then P1 comes and runs for 5 units, here P1 completely finished its burst till x+15 but P0 and P2 still left with their burst. P0 P2 P1 Now, see why P1(BT: 5) is scheduled after P2 obviously, it have remaining burst lesser than P2 since min is asked take it 6(P2 min BT 10) , and now why P2 is scheduled after P0 because P2 have remaining burst less than remaining of P0(take it as 11) P0 min BT : 6(executed already) + 11 = 17 1 1 replyShare srestha commented Jan 30, 2018 reply Follow flag @Ashwani what u r telling, is that not turn around time? Question ask for burst time of P0 So, why need to execute P1 and P2?? I think it is not actually needed 0 0 replyShare MiNiPanda commented Jan 30, 2018 reply Follow flag https://gateoverflow.in/194995/madeeasy-test-series 0 0 replyShare rio commented Mar 10, 2018 reply Follow flag it is incomplete question ma'am. 0 0 replyShare srestha commented Mar 10, 2018 reply Follow flag yes I too think so no satisfactory answer yet 0 0 replyShare Shaik Masthan commented Dec 30, 2018 reply Follow flag @srestha mam, what's wrong with the explanation of Minipanda which is provided in the link ? you may check this also, for solving this question 0 0 replyShare Please log in or register to add a comment.