lecture03e
lecture03e
Scheduling
Slides from
Dr Colin Perkins
Real-Time and Embedded Systems
University of Glasgow
1
Lecture Outline
• Overview of real-time scheduling algorithms
– Clock-driven
– Weighted round-robin
– Priority-driven
• Dynamic vs. static
• Deadline scheduling: EDF and LST
• Validation
• Outline relative strengths, weaknesses
J5 4/2 J6 0/4
J7 0/4 J8 0/1
11 J5 4/2 J6 0/4
Execution time
12
J7 0/4 J8 0/1
Ji Jk
rk dk di
• Swap Ji and Jk (this is always possible, since Ji’s deadline is later than Jk’s)
Jk Jk Ji
• Move any jobs following idle periods forward into the idle period
Jk Jk Ji
– Feasible to schedule any set of jobs according to their actual release times
and deadline, iff feasible to schedule according to effective release times
and deadlines
• Ignore precedence constraints, schedule using effective release times and
deadlines as if all jobs independent
• Resulting schedule might meet deadlines but not precedence constraints
• – If so, always possible to swap order of jobs within the schedule to meet
deadlines and precedence constraints