CHAPTER 2
|
|
Scheduling Periodic Tasks
|
2.1 Fixed Priority Scheduling (Rate Monotonic Scheduling)Denote by Define as ri the response time for a task ti as the time span between its request and the end of the response to the request. Note that during the response time of a task, no lower priority tasks can execute and that the deadline of a task coincides with the end of its period Figure 2.1: A periodic task, its run and response times. Define as the critical instant for a task t i as the instant at which the request for this task would have the largest response time. Define as a critical time zone for a task the response time of a critical instant. Theorem 2.1: A critical instant for any task occurs whenever the task is requested simultaneously with requests for all higher priority tasks. Proof 2.2 Scheduling two Periodic TasksGiven two tasks Assume, without loss of generality, that a.
Assign Figure 2.3 Then it is obvious that (in the worst case as required
by Theorem
2.1) task b. Assign
Necessary and sufficient conditions for feasible scheduling are To explain relations (2.2),(2.3) and (2.4), refer to the following diagram Figure 2.4 Since If If Therefore, the quantity Observe now that if (2.1) is satisfied, then (2.4) is also satisfied. Indeed
From the above, one observes that if (2.1) is true, no
matter which schedule is followed (i.e., On the other hand, if (2.4) is satisfied (which is a more
general case, i.e., larger set of choices for We call this type of scheduling rate-monotonic scheduling . It is also worth noting a necessary (but not sufficient) condition. Given that tasks
Observe now that from (2.1), we can also obtain (2.6) above as follows:
Theorem 2.2: If a feasible priority assignment exists for a set of tasks, the rate-monotonic priority assignment is feasible for that task set. Proof Proceeding in the same way, one can achieve rate-monotonic feasible scheduling, from any given feasible schedule. 2.3 Achievable Processor Utilization (part 2)
|