2,766 views
1 votes
1 votes
A soft real-time system has four periodic events with periods of $50, 100, 200,$ and $250$ msec each. Suppose that the four events require $35, 20, 10,$ and $x$ msec of CPU time, respectively. What is the largest value of $x$ for which the system is schedulable?

2 Answers

2 votes
2 votes

Answer:

We require $\frac{35}{ 50} + \frac{20}{ 100} + \frac{10}{ 200} +\frac{\mathrm x}{ 250} ≤ 1$

So, the largest possible value of $\mathrm x = 0.7 + 0.2 + 0.005 + \frac{\mathrm x}{250} = 1 \\ \;\;\Rightarrow \mathrm x = 12.5 $

Thus the largest possible x satisfying $ 0.7 + 0.2 + 0.05 + \frac{\mathrm x}{250} = 1$

 $ \qquad \qquad \qquad \qquad\qquad\qquad \Rightarrow \mathrm x = 12.5$

$\therefore $The answer is $\mathrm x = 12.5$

edited by
1 votes
1 votes
yes the best utilisation of CPU will be 1.

In this case (35/50)+(20/100)+(10/200)+(x/250) should be equal to 1 in best case.

Hence (35/50)+(20/100)+(10/200)+(x/250)=1 which gives x=12.5 ms

Related questions

0 votes
0 votes
0 answers
1
admin asked Oct 25, 2019
580 views
Consider a system in which it is desired to separate policy and mechanism for the scheduling of kernel threads. Propose a means of achieving this goal.
0 votes
0 votes
1 answer
2
1 votes
1 votes
1 answer
3
admin asked Oct 25, 2019
2,138 views
The aging algorithm with $a = 1/2$ is being used to predict run times. The previous four runs, from oldest to most recent, are $40, 20, 40,$ and $15$ msec. What is the pr...
0 votes
0 votes
0 answers
4