4 Earliest Deadline First (EDF) Scheduling
4 Earliest Deadline First (EDF) Scheduling
U20ECE825
UNIT - I
Earliest Deadline First
(EDF) Scheduling
• small application
• clock – driven
• table-driven
Earliest Deadline First (EDF)
Scheduling
• EDF scheduling is a type of task scheduling algorithm that
schedules (Optimize) the task with the earliest deadline next.
• EDF scheduling is very efficient, but it can be difficult to
implement.
• Dynamic priority scheduling algorithm.
• Assign the highest priority to the task with the earliest deadline.
• Can schedule both periodic and aperiodic tasks.
• Guarantees schedulable if total CPU utilization is less than
100%.
• Complex to implement, high overhead.
Shared Resources
Shared Resources
Critical section
– Program section where a shared resource is accessed
– No other task can access this resource: Mutual exclusion
Priority inversion
– A situation in which a higher priority job is blocked by
lower priority jobs for an indefinite time
Priority Inversion Protocol
Two solutions to the priority
inversion problem
activation deadline
S2 time
5 15 25 35 45 55 65 75 85
deadline
activation
S3 time
5 15 25 35 45 55 65 75 85
Rate Monotonic Scheduling Algorithm
-Schedulability Analysis ( )
• A set of n periodic tasks is schedulable by the RM algorithm if
, where and