3,823 views
2 votes
2 votes
Pno.      AT      BT1    I/O    BT2

1           0         3        2       2

2           0         2        4       1

3           2         1        3       2

4           5         2        2       1

 

We are using SRTF  scheduling algorithm with I/O. Please give me the gantt chart.

2 Answers

Best answer
1 votes
1 votes

Hope this helps,

selected by
0 votes
0 votes

P3 WILL BE SELECTED AT TIME=7 because it has lower process id than p4.

then p1 will be selected as it has lesser BT2 then the BT1 OF P4

IDLE- P4 is gone for i/o for 2 units of time.

Related questions

1 votes
1 votes
1 answer
1
Nandkishor3939 asked Jan 17, 2019
2,701 views
I have solved this but not getting the answer…. will any one verify its correctness plzThank you:)
0 votes
0 votes
1 answer
2
iarnav asked Jul 17, 2018
818 views
Let's say we have four processes as (P1, P2, P3, P4) and have Arrival time as (0,1,2,3) respectively, but all of them has same CPU Burst time as (10ms) then does SRTF wil...