in Operating System
3,886 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.
in Operating System
3.9k views

4 Comments

at time=7, p3 and p4 are available

AT of p3=2

AT of p4=5 as given in question

so, select p3.

do not get confused btw GIVEN AT  and THE I/O COMPLETION TIME, which is not equal to AT.
0
0

I am getting confused because of the following two lectures . I solved this problem based on these lectures.

They are  keep on updating the arrival times and making decisions based on the updated arrival times.I also did in the same way what they have done.

Link 1:https://www.youtube.com/watch?v=rWEOJR5ZXFc

Link 2:https://www.youtube.com/watch?v=FYcc9D8llF0&index=18&list=PLgre7dUq8DGKbtnlMuJPvPYlvLdXOC9uh

I want to know whether these 2 lectures are wrong.

please help me.

0
0
edited by
this is wrong!
0
0

2 Answers

1 vote
1 vote
Best answer

Hope this helps,

selected by

4 Comments

According process scheduling, it is based on complete burst time.

correct me if Iam wrong.
0
0
There is no other option. Because this is not mentioned in any of the text books. The only hope is @Arjun suresh sir. we have to ask him regarding this issue.
0
0

@AnilGoudar , here you assumed that i/o resource will we available at required time to all processes?

I'm trying for I/O waiting queue (considering only 1 i/o device is available).

0
0
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.

1 comment

At time t=7 units, we have to consider the arrival time before we consider the process id. The arrival time of p3=6 units and the arrival time of p4=5 units. so only i have decided to choose p4 instead of p3.
0
0

Related questions