@Shaik Masthan @MiNiPanda
For executing the processes do we have to consider the entire burst time or the burst time before I/O request
See the selected ans.
The 2nd answer followed the same approach as made easy which wasn't approved by Arjun Sir as you can see from his comments
and what about efficiency ,they have given 100%,is that correct?
Can you please share your opinion on the question https://gateoverflow.in/295889/cpu-scheduling-srtf
@Shaik Masthan The link you attached has the same question right..? I have seen this question before and then searched it on the net..then got that link (which I attached). There the approach followed was different.
But ultimately we have to calculate the waiting time na?
According to the solution of ME, the time spent on doing I/O is also considered as part of the waiting time while in the definition says that WT is the time spent by a process in the ready queue (and not in the IO) waiting for its turn to come.
If both arrives in the ready queue at the same time, then the one with shorter CPU burst will be given preference in case of SRTF..and if the bursts are same then the one having older process id will be given the priority.
So according to the example provided by Shaik, P1 should be scheduled right?
@Somoshree Datta 5 Yes..