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. Operating System process-scheduling + – balaeinstein asked May 7, 2017 balaeinstein 3.8k views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments iarnav commented May 7, 2017 reply Follow Share 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 votes 0 votes balaeinstein commented May 7, 2017 reply Follow Share 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 votes 0 votes iarnav commented May 7, 2017 i edited by iarnav May 7, 2017 reply Follow Share this is wrong! 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes Hope this helps, AnilGoudar answered May 7, 2017 selected Jan 31, 2018 by sumit goyal 1 AnilGoudar comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments AnilGoudar commented May 7, 2017 reply Follow Share According process scheduling, it is based on complete burst time. correct me if Iam wrong. 0 votes 0 votes balaeinstein commented May 7, 2017 reply Follow Share 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 votes 0 votes charul commented Aug 30, 2017 reply Follow Share @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 votes 0 votes Please log in or register to add a comment.
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. iarnav answered May 7, 2017 iarnav comment Share Follow See 1 comment See all 1 1 comment reply balaeinstein commented May 7, 2017 reply Follow Share 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 votes 0 votes Please log in or register to add a comment.