3,449 views
1 votes
1 votes

Let's say we have two CPU scheduling algorithm as SJF and SRTF and we have a arbitrary pool/set of processes with  different ARRIVAL TIME and CPU BURST, then what CPU scheduling algorithm will result in minimum average waiting time?

Note : We know, with processes having same arrival time will make SRTF to SJF and SJF guarantees minimum average waiting time, but here arrival time of processes is not same.

Moreover please consider this screenshot from Galvin - in this screenshot below the avg waiting time of SRTF is less than SJF, but my doubt is, is this valid for only this set of values or when arrival times are different than SRTF will ALWAYS have the less average waiting time over SJF?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
iarnav asked Jul 17, 2018
841 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...
0 votes
0 votes
1 answer
2
Na462 asked Jul 12, 2018
1,214 views
0 votes
0 votes
2 answers
3
Purple asked Jan 13, 2017
851 views
Calculate the Exponential averaging for the $\text{SJF}$ with $T_{1}=10,\alpha = 0.5$ and previous runs as $8,7,4,16$$\text{(Give the answer correct to one decimal place)...