Professional Documents
Culture Documents
Tsi Assigment
Tsi Assigment
2. Fixed vs. Dynamic Priority Scheduling. EDF and LST are dynamic and RM (rate monotonic)
and DM (deadline monotonic) are not. Define RM and DM with simple examples.
A fixed-priority algorithm assigns the same priority to all the jobs in each task.
other words, the priority of each periodic task is fixed relative to other tasks. In
contrast, a dynamic-priority algorithm assigns different priorities to the
individual jobs in each task. Hence the priority of the task with respect to that of
other tasks changes as jobs are released and completed.
1
Rate Monotonic (RM)
A well-known fixed priority algorithms is the rate monotonic algorithms. The algorithm assigns
priorities to task based on their periods as shorter period have higher priority. The rate (of job
release) of a task is inverse of periods that means higher rate gets higher priority.
For example: consider a system contains three tasks T1 (4, 1), T2 (5, 2) and T3 (20, 5) then Rate
for task T1 = ¼
2
Deadline Monotonic (DM)
This algorithm assigns priorities to tasks according to their relative deadlines as the shorter
deadline gets higher priority. When the relative deadlines are arbitrary, DM algorithms performs
better in the sense that it can sometimes produce the feasible schedule if RM algorithms fails that
means RM algorithms always fails if DM algorithms fails.
According to DM priority be assigned as T2> T3 >T1 The schedule table be constructed as:
3
200 J14 J14
225 ---------------- ------------
250 J15, J25, J33 J25