Question #39205

On a system using round robin scheduling let t represents the time needed to to perform a process switch, q represents the round robin time quantum and p represents the average time a process runs before blocks on input. Give a formula for CPU efficiency if t<q<p.

Expert's answer

Answer on Question#39205 - Math - Other

On a system using round robin scheduling let tt represents the time needed to perform a process switch, qq represents the round robin time quantum and pp represents the average time a process runs before blocks on input. Give a formula for CPU efficiency if t<q<pt < q < p.

Solution

Since q<pq < p, each run of pp requires p/qp/q process switches, resulting in overhead of tpq\frac{tp}{q} and therefore, the efficiency is p(p+tp/q)=qq+t\frac{p}{(p + tp/q)} = \frac{q}{q + t}.

Answer: qq+t\frac{q}{q + t}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS