in Operating System
826 views
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?
in Operating System
by
826 views

1 Answer

2 votes
2 votes
Best answer
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"..
selected by

4 Comments

Thanks, bhai!

 

Also, what it, AT is also same and BT is also same, then how SRTF will behave?
0
0
@ 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
1
yes .. it will be mentioned in the question .. but most of times its as per id
1
1
Alright, thank you both of you! :)
0
0

Related questions

0 votes
0 votes
1 answer
2
Na462 asked in Operating System Jul 12, 2018
1,178 views
Na462 asked in Operating System Jul 12, 2018
by Na462
1.2k views