1,298 views
0 votes
0 votes
Assume that a process has CPU burst time for last three runs as 4, 5 and 4 (last). Given that last predict burst time was 5 and α = 0.8. The next predict of CPU burst time for process when CPU scheduler is shortest process next with exponential averaging is _________. in sec (upto 1 to decimal places).

1 Answer

1 votes
1 votes

Tn+1 = αtn+ (1−α) Tn

where Tn+1 is the predicted value of the next CPU burst time.

0 ≤ α ≤ 1

 Tis the predicted value of the last CPU burst (here Tn = 5s),

tn is the (actual) last run time of the process (here tn is 4s) and  α = 0.8

Putting in all values,

T4  =   0.8 * 4 + (1 - 0.8)*5 = 3.2 + 1 = 4.2 sec.

So, the next predict of CPU burst time for process is 4.2 sec.

Related questions

0 votes
0 votes
1 answer
2
Nam14 asked Apr 5, 2023
536 views
Please read below passage from 10th edition Operating System Concepts, pg. 202:5.1.3 Preemptive and Nonpreemptive SchedulingCPU-scheduling decisions may take place under ...
0 votes
0 votes
3 answers
3
Chaitanya Kale asked Sep 22, 2022
665 views
If we are using non-preemptive CPU scheduling then can there be process state transition from running to ready state?
1 votes
1 votes
1 answer
4
iarnav asked Jan 12, 2022
405 views
Does non preemptive CPU scheduling needs hardware support.kindly explain.