0 votes 0 votes 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 will simply be behaving like FCFS? Operating System process-scheduling operating-system sjf + – iarnav asked Jul 17, 2018 iarnav 818 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes Yes in such cases the SRTF will work as FCFS: the main reason is ...SRTF will look out for the burst time which is small at every instance of PROCESS ARRIVAL ...but as per question the burst time for all is same so ..only one that will create difference is Arrival time .. hence upto 2nd process will come the 1st process has already executed for 1 unit of time and will have less burst time than 2nd as well as any upcoming process ..hence "ITS TRUE".. SHUBHAM SHASTRI answered Jul 17, 2018 selected Jul 17, 2018 by iarnav SHUBHAM SHASTRI comment Share Follow See all 4 Comments See all 4 4 Comments reply iarnav commented Jul 17, 2018 reply Follow Share Thanks, bhai! Also, what it, AT is also same and BT is also same, then how SRTF will behave? 0 votes 0 votes Shubham Shukla 6 commented Jul 17, 2018 reply Follow Share @ iarnav than process will be executed according to their prcoess id...process with lower process id will be executed first if u have same burst and same arrival time.! 1 votes 1 votes SHUBHAM SHASTRI commented Jul 17, 2018 reply Follow Share yes .. it will be mentioned in the question .. but most of times its as per id 1 votes 1 votes iarnav commented Jul 17, 2018 reply Follow Share Alright, thank you both of you! :) 0 votes 0 votes Please log in or register to add a comment.