CHAPTER 3 (part 2)
|
|
Scheduling Aperiodic Tasks
|
3.2.2 Calculating the l.u.b of the processor utilization for the Deferrable Server Theorem
3.3: For a set of m fixed priority tasks 3.2.3 Special CaseThis case presumes that all the tasks have approximately
equal periods with a variation within In this case, all the periodic tasks must execute within
Figure 3.6: Worst case task arrangement. Let's assume the case of two tasks and remember that we are seeking the absolutely worst scenario. The utilization factor for this case is calculated as follows: Assuming In case that One can always find T2 such that This period is within the postulated assumptions i.e.
T2 > T1 (since But for any such period, The utilization factor then is given as Plotting the utilization factor U in terms of Figure 3.7: The least upper bound of the utilization factor of the deferrable server where the periods of all the tasks are approximately equal. The analysis outlined above for two tasks can be generalized
for m tasks as follows: If Thus Consider now a new aggregate task Since Thus Therefore, for any set of m tasks, we can always construct
a set of two tasks which has a utilization factor 3.2.4 Experimental ResultsThe two policies together with standard polling and aperiodic-tasks-in-the-background were simulated to study the sensitivity of the response times to the length of the period of the periodic server. The aperiodic tasks were assumed to be Poisson distributed
with constant mean inter-arrival time ( Denoting by PLPE and PLDS the processor utilization due to the periodic tasks for the Priority Exchange and Deferrable Server cases respectively, we have from (3.5) and (3.14). Setting The simulations used The response time for the polling server increases as the period of the server increases, and this is expected since the interval between server invocations increases, and thus arriving aperiodic tasks have to wait longer on the average before they are serviced. For the Priority Exchange and Deferrable Servers, the response time decreases as the period of the server increases, indicating their ability to respond as soon as aperiodic tasks arrive. Observe though that as the period of the server increases, its priority decreases (according to the rate monotonic assignment that governs the periodic environment). Thus, for large periods which correspond to the lowest priority, the response time becomes identical to that of the aperiodic-tasks-in-the-background discipline. Figure 3.8: The sensitivity of the response time of the aperiodic tasks on the length of the period of the periodic server. (from [5]). Chapter's Exersices: |