SlideShare a Scribd company logo
Real-Time Scheduling
CIS700
Insup Lee
By
SATHISHKUMAR G
(sathishsak111@gmail.com)
Outline
• Real-time systems
• Real-time scheduling algorithms
– Fixed-priority algorithm (RM)
– Dynamic-priority algorithm (EDF)
Real-Time Systems
• Definition
– Systems whose correctness depends on their temporal
aspects as well as their functional aspects
• Performance measure
– Timeliness on timing constraints (deadlines)
– Speed/average case performance are less significant.
• Key property
– Predictability on timing constraints
Real-Time System Example
• Digital control systems
– periodically performs the following job:
senses the system status and
actuates the system according to its current status
Control-Law
Computation
Sensor
Actuator
Real-Time System Example
Multimedia
• Multimedia applications
– periodically performs the following job:
reads, decompresses, and displays video and audio
streams
Fundamental Real-Time Issue
• To specify the timing constraints of real-time
systems
• To achieve predictability on satisfying their timing
constraints, possibly, with the existence of other
real-time systems
Scheduling Framework Example
CPU
OS Scheduler
Digital Controller Multimedia
Real-Time Workload
• Job (unit of work)
– a computation, a file read, a message transmission, etc
• Attributes
– Resources required to make progress
– Timing parameters
Released
Absolute
deadline
Relative deadline
Execution time
Real-Time Task
• Task : a sequence of similar jobs
– Periodic task (p,e)
• Its jobs repeat regularly
• Period p = inter-release time (0 < p)
• Execution time e = maximum execution time (0 < e < p)
• Utilization U = e/p
5 10 150
Deadlines: Hard vs. Soft
• Hard deadline
– Disastrous or very serious consequences may occur if
the deadline is missed
– Validation is essential : can all the deadlines be met,
even under worst-case scenario?
– Deterministic guarantees
• Soft deadline
– Ideally, the deadline should be met for maximum
performance. The performance degrades in case of
deadline misses.
– Best effort approaches / statistical guarantees
Schedulability
• Property indicating whether a real-time system (a set
of real-time tasks) can meet their deadlines
(4,1)
(5,2)
(7,2)
Real-Time Scheduling
• Determines the order of real-time task executions
• Static-priority scheduling
• Dynamic-priority scheduling
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
RM (Rate Monotonic)
• Optimal static-priority scheduling
• It assigns priority according to period
• A task with a shorter period has a higher priority
• Executes a job with the shortest period
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
RM (Rate Monotonic)
• Executes a job with the shortest period
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
RM (Rate Monotonic)
• Executes a job with the shortest period
(4,1)
(5,2)
(7,2)
Deadline Miss !
5
5
10
10 15
15
T1
T2
T3
Response Time
• Response time
– Duration from released time to finish time
(4,1)
(5,2)
(10,2)
5
5
10
10 15
15
T1
T2
T3
Response Time
• Response time
– Duration from released time to finish time
(4,1)
(5,2)
(10,2)
Response Time
5
5
10
10 15
15
T1
T2
T3
Response Time
• Response Time (ri) [Audsley et al., 1993]
• HP(Ti) : a set of higher-priority tasks than Ti
(4,1)
(5,2)
(10,2)
k
THPT k
i
ii e
p
r
er
ik
⋅





+= ∑∈ )(
5
5
10
10
T1
T2
T3
RM - Schedulability Analysis
• Real-time system is schedulable under RM
if and only if ri ≤ pi for all task Ti(pi,ei)
Joseph & Pandya,
“Finding response times in a real-time system”,
The Computer Journal, 1986.
RM – Utilization Bound
• Real-time system is schedulable under RM if
∑Ui ≤ n (21/n
-1)
Liu & Layland,
“Scheduling algorithms for multi-programming in a
hard-real-time environment”, Journal of ACM, 1973.
RM – Utilization Bound
• Real-time system is schedulable under RM if
∑Ui ≤ n (21/n
-1)
• Example: T1(4,1), T2(5,1), T3(10,1),
∑Ui = 1/4 + 1/5 + 1/10
= 0.55
3 (21/3
-1) ≈ 0.78
Thus, {T1, T2, T3} is schedulable under RM.
RM Utilization Bounds
0.5
0.6
0.7
0.8
0.9
1
1.1
1 4 16 64 256 1024 4096
The Number of Tasks
Utilization
RM – Utilization Bound
• Real-time system is schedulable under RM if
∑Ui ≤ n (21/n
-1)
EDF (Earliest Deadline First)
• Optimal dynamic priority scheduling
• A task with a shorter deadline has a higher priority
• Executes a job with the earliest deadline
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
EDF (Earliest Deadline First)
• Executes a job with the earliest deadline
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
EDF (Earliest Deadline First)
• Executes a job with the earliest deadline
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
EDF (Earliest Deadline First)
• Executes a job with the earliest deadline
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
EDF (Earliest Deadline First)
• Optimal scheduling algorithm
– if there is a schedule for a set of real-time tasks,
EDF can schedule it.
(4,1)
(5,2)
(7,2)
5
5
10
10 15
15
T1
T2
T3
Processor Demand Bound
• Demand Bound Function : dbf(t)
– the maximum processor demand by workload over any
interval of length t
(4,1)
(5,2)
(7,2)
t
5
5
10
10 15
15
T1
T2
T3
EDF - Schedulability Analysis
• Real-time system is schedulable under EDF
if and only if dbf(t) ≤ t for all interval t
Baruah et al.
“Algorithms and complexity concerning the preemptive
scheduling of periodic, real-time tasks on one
processor”, Journal of Real-Time Systems, 1990.
• Demand Bound Function : dbf(t)
– the maximum processor demand by workload over any
interval of length t
EDF – Utilization Bound
• Real-time system is schedulable under EDF if and only
if
∑Ui ≤ 1
Liu & Layland,
“Scheduling algorithms for multi-programming in a
hard-real-time environment”, Journal of ACM, 1973.
• Domino effect during overload conditions
– Example: T1(4,3), T2(5,3), T3(6,3), T4(7,3)
EDF – Overload Conditions
T1
50 7
T2 T3 T4
3 6
Deadline Miss !
T1
50 7
T3
3 6
Better schedules :
T1
50 7
T4
3 6
RM vs. EDF
• Rate Monotonic
– Simpler implementation, even in systems without explicit
support for timing constraints (periods, deadlines)
– Predictability for the highest priority tasks
• EDF
– Full processor utilization
– Misbehavior during overload conditions
• For more details: Buttazzo, “Rate monotonic vs. EDF:
Judgement Day”, EMSOFT 2003.
THANK YOU

More Related Content

What's hot (20)

PPT
Peterson Critical Section Problem Solution
Bipul Chandra Kar
 
PPT
CPU Scheduling Algorithms
Shubhashish Punj
 
PPTX
Inter Process Communication
Adeel Rasheed
 
PPTX
Process scheduling
Riya Choudhary
 
PPT
Real-Time Operating Systems
Praveen Penumathsa
 
PPT
System call
Sumant Diwakar
 
PPTX
SCHEDULING ALGORITHMS
Dhaval Sakhiya
 
PDF
RTOS - Real Time Operating Systems
Emertxe Information Technologies Pvt Ltd
 
PPT
RTOS Basic Concepts
Pantech ProLabs India Pvt Ltd
 
PPTX
Computer architecture and organization
Tushar B Kute
 
PPT
Operating Systems Process Scheduling Algorithms
sathish sak
 
PPTX
Disk Scheduling Algorithm in Operating System
Meghaj Mallick
 
PPT
Processes Control Block (Operating System)
Imdad Ullah
 
PPT
Advanced Operating System- Introduction
Debasis Das
 
PPTX
File allocation methods (1)
Dr. Jasmine Beulah Gnanadurai
 
PPTX
Semophores and it's types
Nishant Joshi
 
PPT
Real time scheduling - basic concepts
Student
 
PPT
Sliding window protocol
Shehara Abeythunga
 
PPT
Chapter 7 - Deadlocks
Wayne Jones Jnr
 
PDF
Distributed Operating System_1
Dr Sandeep Kumar Poonia
 
Peterson Critical Section Problem Solution
Bipul Chandra Kar
 
CPU Scheduling Algorithms
Shubhashish Punj
 
Inter Process Communication
Adeel Rasheed
 
Process scheduling
Riya Choudhary
 
Real-Time Operating Systems
Praveen Penumathsa
 
System call
Sumant Diwakar
 
SCHEDULING ALGORITHMS
Dhaval Sakhiya
 
RTOS - Real Time Operating Systems
Emertxe Information Technologies Pvt Ltd
 
RTOS Basic Concepts
Pantech ProLabs India Pvt Ltd
 
Computer architecture and organization
Tushar B Kute
 
Operating Systems Process Scheduling Algorithms
sathish sak
 
Disk Scheduling Algorithm in Operating System
Meghaj Mallick
 
Processes Control Block (Operating System)
Imdad Ullah
 
Advanced Operating System- Introduction
Debasis Das
 
File allocation methods (1)
Dr. Jasmine Beulah Gnanadurai
 
Semophores and it's types
Nishant Joshi
 
Real time scheduling - basic concepts
Student
 
Sliding window protocol
Shehara Abeythunga
 
Chapter 7 - Deadlocks
Wayne Jones Jnr
 
Distributed Operating System_1
Dr Sandeep Kumar Poonia
 

Similar to Real-Time Scheduling (20)

PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
PPT
task_sched2.ppt
SruthiReddy112
 
PPT
ESC UNIT 3.ppt
Sarvesh Warjurkar
 
PDF
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
PPTX
Real Time System
AKANSH SINGHAL
 
PPT
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
CUO VEERANAN VEERANAN
 
PPT
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
CUO VEERANAN VEERANAN
 
PPT
Real time system tsp
Pradeep Kumar TS
 
PPTX
Real time Scheduling in Operating System for Msc CS
Thanveen
 
PPTX
Priority driven scheduling of periodic tasks
Kamal Acharya
 
PPTX
Scheduling algorithm in real time system
VishalPandat2
 
PDF
Periodic
Abhijit Borah
 
PPTX
RTOS.pptxRelease time (or ready time): This is the time constant at which a t...
DebasishMohanta16
 
PDF
Real Time most famous algorithms
Andrea Tino
 
PDF
Real time Systems lecture slides (Complete)
devansh35165drive1
 
PDF
Schedulability of Rate Monotonic Algorithm using Improved Time Demand Analysi...
IJECEIAES
 
PPT
Scheduling and Scheduler's Process and Premptive
choudharyxdevansh
 
PPT
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
PPT
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
International Journal of Information Technology Convergence and services (IJI...
ijitcs
 
task_sched2.ppt
SruthiReddy112
 
ESC UNIT 3.ppt
Sarvesh Warjurkar
 
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
Real Time System
AKANSH SINGHAL
 
CS 23 Operating System Design Principles_MULTIPROCESSOR AND REAL TIME SCHEDULING
CUO VEERANAN VEERANAN
 
MULTIPROCESSOR AND REAL TIME SCHEDULING.ppt
CUO VEERANAN VEERANAN
 
Real time system tsp
Pradeep Kumar TS
 
Real time Scheduling in Operating System for Msc CS
Thanveen
 
Priority driven scheduling of periodic tasks
Kamal Acharya
 
Scheduling algorithm in real time system
VishalPandat2
 
Periodic
Abhijit Borah
 
RTOS.pptxRelease time (or ready time): This is the time constant at which a t...
DebasishMohanta16
 
Real Time most famous algorithms
Andrea Tino
 
Real time Systems lecture slides (Complete)
devansh35165drive1
 
Schedulability of Rate Monotonic Algorithm using Improved Time Demand Analysi...
IJECEIAES
 
Scheduling and Scheduler's Process and Premptive
choudharyxdevansh
 
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Ad

More from sathish sak (20)

PPTX
TRANSPARENT CONCRE
sathish sak
 
PPT
Stationary Waves
sathish sak
 
PPT
Electrical Activity of the Heart
sathish sak
 
PPTX
Electrical Activity of the Heart
sathish sak
 
PPT
Software process life cycles
sathish sak
 
PPT
Digital Logic Circuits
sathish sak
 
PPT
Real-Time Signal Processing: Implementation and Application
sathish sak
 
PPT
DIGITAL SIGNAL PROCESSOR OVERVIEW
sathish sak
 
PPTX
FRACTAL ROBOTICS
sathish sak
 
PPTX
Electro bike
sathish sak
 
PPTX
ROBOTIC SURGERY
sathish sak
 
PPTX
POWER GENERATION OF THERMAL POWER PLANT
sathish sak
 
PPT
mathematics application fiels of engineering
sathish sak
 
PPT
Plastics…
sathish sak
 
PPTX
ENGINEERING
sathish sak
 
PPTX
ENVIRONMENTAL POLLUTION
sathish sak
 
PPTX
RFID TECHNOLOGY
sathish sak
 
PPT
green chemistry
sathish sak
 
PPT
NANOTECHNOLOGY
sathish sak
 
PPT
The Cyclotron
sathish sak
 
TRANSPARENT CONCRE
sathish sak
 
Stationary Waves
sathish sak
 
Electrical Activity of the Heart
sathish sak
 
Electrical Activity of the Heart
sathish sak
 
Software process life cycles
sathish sak
 
Digital Logic Circuits
sathish sak
 
Real-Time Signal Processing: Implementation and Application
sathish sak
 
DIGITAL SIGNAL PROCESSOR OVERVIEW
sathish sak
 
FRACTAL ROBOTICS
sathish sak
 
Electro bike
sathish sak
 
ROBOTIC SURGERY
sathish sak
 
POWER GENERATION OF THERMAL POWER PLANT
sathish sak
 
mathematics application fiels of engineering
sathish sak
 
Plastics…
sathish sak
 
ENGINEERING
sathish sak
 
ENVIRONMENTAL POLLUTION
sathish sak
 
RFID TECHNOLOGY
sathish sak
 
green chemistry
sathish sak
 
NANOTECHNOLOGY
sathish sak
 
The Cyclotron
sathish sak
 
Ad

Recently uploaded (20)

PPTX
Online Contractor Induction and Safety Induction Training Software
SHEQ Network Limited
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PDF
Top 10 AI Use Cases Every Business Should Know.pdf
nicogonzalez1075
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PPTX
SAP Public Cloud PPT , SAP PPT, Public Cloud PPT
sonawanekundan2024
 
PDF
Supabase Meetup: Build in a weekend, scale to millions
Carlo Gilmar Padilla Santana
 
PPTX
Cutting Optimization Pro 5.18.2 Crack With Free Download
cracked shares
 
PPTX
Processing with Claim Management Automation Solutions
Insurance Tech Services
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PDF
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
PDF
Why Are More Businesses Choosing Partners Over Freelancers for Salesforce.pdf
Cymetrix Software
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PPTX
TexSender Pro 8.9.1 Crack Full Version Download
cracked shares
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
PDF
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
PPTX
Operations Profile SPDX_Update_20250711_Example_05_03.pptx
Shane Coughlan
 
Online Contractor Induction and Safety Induction Training Software
SHEQ Network Limited
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
Top 10 AI Use Cases Every Business Should Know.pdf
nicogonzalez1075
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
SAP Public Cloud PPT , SAP PPT, Public Cloud PPT
sonawanekundan2024
 
Supabase Meetup: Build in a weekend, scale to millions
Carlo Gilmar Padilla Santana
 
Cutting Optimization Pro 5.18.2 Crack With Free Download
cracked shares
 
Processing with Claim Management Automation Solutions
Insurance Tech Services
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
Why Are More Businesses Choosing Partners Over Freelancers for Salesforce.pdf
Cymetrix Software
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
TexSender Pro 8.9.1 Crack Full Version Download
cracked shares
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
Operations Profile SPDX_Update_20250711_Example_05_03.pptx
Shane Coughlan
 

Real-Time Scheduling

  • 2. Outline • Real-time systems • Real-time scheduling algorithms – Fixed-priority algorithm (RM) – Dynamic-priority algorithm (EDF)
  • 3. Real-Time Systems • Definition – Systems whose correctness depends on their temporal aspects as well as their functional aspects • Performance measure – Timeliness on timing constraints (deadlines) – Speed/average case performance are less significant. • Key property – Predictability on timing constraints
  • 4. Real-Time System Example • Digital control systems – periodically performs the following job: senses the system status and actuates the system according to its current status Control-Law Computation Sensor Actuator
  • 5. Real-Time System Example Multimedia • Multimedia applications – periodically performs the following job: reads, decompresses, and displays video and audio streams
  • 6. Fundamental Real-Time Issue • To specify the timing constraints of real-time systems • To achieve predictability on satisfying their timing constraints, possibly, with the existence of other real-time systems
  • 7. Scheduling Framework Example CPU OS Scheduler Digital Controller Multimedia
  • 8. Real-Time Workload • Job (unit of work) – a computation, a file read, a message transmission, etc • Attributes – Resources required to make progress – Timing parameters Released Absolute deadline Relative deadline Execution time
  • 9. Real-Time Task • Task : a sequence of similar jobs – Periodic task (p,e) • Its jobs repeat regularly • Period p = inter-release time (0 < p) • Execution time e = maximum execution time (0 < e < p) • Utilization U = e/p 5 10 150
  • 10. Deadlines: Hard vs. Soft • Hard deadline – Disastrous or very serious consequences may occur if the deadline is missed – Validation is essential : can all the deadlines be met, even under worst-case scenario? – Deterministic guarantees • Soft deadline – Ideally, the deadline should be met for maximum performance. The performance degrades in case of deadline misses. – Best effort approaches / statistical guarantees
  • 11. Schedulability • Property indicating whether a real-time system (a set of real-time tasks) can meet their deadlines (4,1) (5,2) (7,2)
  • 12. Real-Time Scheduling • Determines the order of real-time task executions • Static-priority scheduling • Dynamic-priority scheduling (4,1) (5,2) (7,2) 5 5 10 10 15 15
  • 13. RM (Rate Monotonic) • Optimal static-priority scheduling • It assigns priority according to period • A task with a shorter period has a higher priority • Executes a job with the shortest period (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 14. RM (Rate Monotonic) • Executes a job with the shortest period (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 15. RM (Rate Monotonic) • Executes a job with the shortest period (4,1) (5,2) (7,2) Deadline Miss ! 5 5 10 10 15 15 T1 T2 T3
  • 16. Response Time • Response time – Duration from released time to finish time (4,1) (5,2) (10,2) 5 5 10 10 15 15 T1 T2 T3
  • 17. Response Time • Response time – Duration from released time to finish time (4,1) (5,2) (10,2) Response Time 5 5 10 10 15 15 T1 T2 T3
  • 18. Response Time • Response Time (ri) [Audsley et al., 1993] • HP(Ti) : a set of higher-priority tasks than Ti (4,1) (5,2) (10,2) k THPT k i ii e p r er ik ⋅      += ∑∈ )( 5 5 10 10 T1 T2 T3
  • 19. RM - Schedulability Analysis • Real-time system is schedulable under RM if and only if ri ≤ pi for all task Ti(pi,ei) Joseph & Pandya, “Finding response times in a real-time system”, The Computer Journal, 1986.
  • 20. RM – Utilization Bound • Real-time system is schedulable under RM if ∑Ui ≤ n (21/n -1) Liu & Layland, “Scheduling algorithms for multi-programming in a hard-real-time environment”, Journal of ACM, 1973.
  • 21. RM – Utilization Bound • Real-time system is schedulable under RM if ∑Ui ≤ n (21/n -1) • Example: T1(4,1), T2(5,1), T3(10,1), ∑Ui = 1/4 + 1/5 + 1/10 = 0.55 3 (21/3 -1) ≈ 0.78 Thus, {T1, T2, T3} is schedulable under RM.
  • 22. RM Utilization Bounds 0.5 0.6 0.7 0.8 0.9 1 1.1 1 4 16 64 256 1024 4096 The Number of Tasks Utilization RM – Utilization Bound • Real-time system is schedulable under RM if ∑Ui ≤ n (21/n -1)
  • 23. EDF (Earliest Deadline First) • Optimal dynamic priority scheduling • A task with a shorter deadline has a higher priority • Executes a job with the earliest deadline (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 24. EDF (Earliest Deadline First) • Executes a job with the earliest deadline (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 25. EDF (Earliest Deadline First) • Executes a job with the earliest deadline (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 26. EDF (Earliest Deadline First) • Executes a job with the earliest deadline (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 27. EDF (Earliest Deadline First) • Optimal scheduling algorithm – if there is a schedule for a set of real-time tasks, EDF can schedule it. (4,1) (5,2) (7,2) 5 5 10 10 15 15 T1 T2 T3
  • 28. Processor Demand Bound • Demand Bound Function : dbf(t) – the maximum processor demand by workload over any interval of length t (4,1) (5,2) (7,2) t 5 5 10 10 15 15 T1 T2 T3
  • 29. EDF - Schedulability Analysis • Real-time system is schedulable under EDF if and only if dbf(t) ≤ t for all interval t Baruah et al. “Algorithms and complexity concerning the preemptive scheduling of periodic, real-time tasks on one processor”, Journal of Real-Time Systems, 1990. • Demand Bound Function : dbf(t) – the maximum processor demand by workload over any interval of length t
  • 30. EDF – Utilization Bound • Real-time system is schedulable under EDF if and only if ∑Ui ≤ 1 Liu & Layland, “Scheduling algorithms for multi-programming in a hard-real-time environment”, Journal of ACM, 1973.
  • 31. • Domino effect during overload conditions – Example: T1(4,3), T2(5,3), T3(6,3), T4(7,3) EDF – Overload Conditions T1 50 7 T2 T3 T4 3 6 Deadline Miss ! T1 50 7 T3 3 6 Better schedules : T1 50 7 T4 3 6
  • 32. RM vs. EDF • Rate Monotonic – Simpler implementation, even in systems without explicit support for timing constraints (periods, deadlines) – Predictability for the highest priority tasks • EDF – Full processor utilization – Misbehavior during overload conditions • For more details: Buttazzo, “Rate monotonic vs. EDF: Judgement Day”, EMSOFT 2003.