Assignments |
Consider the following set of implicit-deadline periodic tasks.
i | pi | ei |
---|---|---|
1 | 6 | 2 |
2 | 8 | 3 |
3 | 12 | 3 |
Draw a Gantt chart of the non-preemptive rate-monotonic schedule for this set of tasks. (10 pt)
Draw a Gantt chart of the preemptive rate-monotonic schedule for this set of tasks. (10 pt)
Draw a Gantt chart of the non-preemptive earliest-deadline-first (EDF) schedule for this set of tasks. (10 pt)
Draw a Gantt chart of the preemptive EDF schedule for this set of tasks. (10 pt)
Note that the schedules turned out to be the same for (1), (2), and (3) for this task set. In general, these four methods may produce four different schedules.
Use the method of Lemma 6.6 in Jane Liu's book (iterative computation of a least-fixed-point solution of the recurrence) to compute the worst-case response time of each of the tasks, under fixed-task-priority scheduling. (10 pt)
R1,0 = e1 = 2
R2,0 = e1 + e2 = 2 + 3 = 5
R2,1 = e1 * ⌈ R2,0/p1⌉ + e2 = 2 * ⌈ 5 / 6 ⌉ + 3 = 5
R3,0 = e1 + e2 + e3 = 2 + 3 + 3 = 8
R3,1 = e1 * ⌈ R3,0/p1⌉ + e2 * ⌈ R3,0/p2⌉ + e3 = 2 * ⌈ 8 / 6 ⌉ + 3 * ⌈ 8 / 8 ⌉ + 3 = 4 + 3 + 3 = 10
R3,2 = 2 * ⌈ 10 / 6 ⌉ + 3 * ⌈ 10 / 8 ⌉ + 3 = 4 + 6 + 3 = 13
R3,3 = 2 * ⌈ 13 / 6 ⌉ + 3 * ⌈ 13 / 8 ⌉ + 3 = 6 + 6 + 3 = 15
R3,4 = 2 * ⌈ 15 / 6 ⌉ + 3 * ⌈ 15 / 8 ⌉ + 3 = 6 + 6 + 3 = 15
T. P. Baker.($Id) |