1,326 views
0 votes
0 votes
On a system using round-robin scheduling, let S represents the time needed to perform a switch, Q represents the round-robin time quantum, and R represents the average time a process runs before blocking on I/O.

the CPU efficiency when S=Q<R

a) R/(R+S)

b)Q/(Q+S)

c)1/2

d)zero

2 Answers

5 votes
5 votes

The answer is 1/2 i.e. option c. Here's the explanation : -

‘R’ is the average time a process runs before I/O block and ‘S’ is the time needed for switch. ‘Q’ represents the round-robin time quantum.

Efficiency of CPU = usefull time / total time

 Usefull time = R

Total time = usefull + switching time = R + (R/Q)*S     (when S < R and Q < R)

Efficiency = R/(R + (R/Q)*S) = Q/(Q+S)

When S = Q

Efficiency = Q/2Q = 1/2.

0 votes
0 votes
i think its zero...as every process will get blocked by R units . So no process will be completed.

hence eff. = 0

Related questions

0 votes
0 votes
1 answer
3
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 ...