I have solved this but not getting the answer…. will any one verify its correctness plz
Thank you:)
@Shaik Masthan, do we consider total time = BT+Bt or individual BT?
Yes that's where I ran into problem ... actually I was following the method zs in the above video (i.e. we have to consider the total BT) but using this I was unable to get the answer as shown in the solution
@Shaik Masthan
please try solving it .... u will find the problem
@Shubhgupta
At that point P1 require 2 BT ( Before I/O ), and P3 requires 2 BT ( After I/O ),
then as per FCFS, P1 get chance !
@Nandkishor3939
what it means ?
yes @Shaik Masthan, that i understood but actually according to that video which i have posted he is considering remaining burst according to total burst not by before I/o or after I/o. So according to his procedure P1 is having total burst 4 unit and P3 is having 2 burst so by shortest p1 will get chance? don't know which method i need to follow.
Please confirm brother.. :).
@jatin khachane 1 @Shaik Masthan
Please make it clear that
1] we have to use the total BT for SRTF(by this method i am getting the answer)
or
2] we have to consider the First BT and second BT separately
Even I used to follow Sir's method of solving sums involving both CPU BT and IOBT. But I never got the correct answer using this method. So I changed the method to the one which @Shaik Masthan
mentioned. This method is correct.
@Somoshree Datta 5
can you please such example where you got it wrong any prev year ques
jatin khachane 1
didnt come across such a previous year question. But you can refer this link too https://gateoverflow.in/164723/srtf-with-io-doubt
check these two videos also which mentioned in link's comment they also used the total burst time .
https://gateoverflow.in/128441/cpu-scheduling-srtf-with-i-o-example?show=128570#c128570..
according to Sir's answer he also considered total compute time -https://gateoverflow.in/251148/gatebook-2019-os1-20?show=285743#a285743 and then processed accordingly.
Shubhgupta
in this link that u mentioned https://gateoverflow.in/251148/gatebook-2019-os1-20?show=285743#a285743
Why wasnt P2 preempted at time t=14? Shouldnt the tie be broken when both P1 and P2 have the same BTs by considering the process to schedule which is having lower process id (since here arrival times are also same, so we cant use arrival time as a criteria)?This is really confusing..:(
What is difference between shortest compute time first in that gatebook question shortest compute time first is used and shortest remaining time first ??
I think the video is misleading .... its wrong !!
This will be helpful..
64.3k questions
77.9k answers
244k comments
80.0k users