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

Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
Sunita Sahu
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
Emertxe Information Technologies Pvt Ltd
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
Mukesh Chinta
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
Murtadha Alsabbagh
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
Chankey Pathak
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
Prankit Mishra
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithm
pinki soni
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating Systemvivek223
 
Real time system
Real time systemReal time system
Real time system
Aftab Hossain
 
Fundamentals of the Analysis of Algorithm Efficiency
Fundamentals of the Analysis of Algorithm EfficiencyFundamentals of the Analysis of Algorithm Efficiency
Fundamentals of the Analysis of Algorithm Efficiency
Saranya Natarajan
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
Riya Choudhary
 
RTOS Basic Concepts
RTOS Basic ConceptsRTOS Basic Concepts
RTOS Basic Concepts
Pantech ProLabs India Pvt Ltd
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
Shubhashish Punj
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
Mukesh Chinta
 
RT linux
RT linuxRT linux
RT linux
SARITHA REDDY
 
MULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULINGMULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULING
garishma bhatia
 
Os rtos.ppt
Os rtos.pptOs rtos.ppt
Os rtos.ppt
rahul km
 
System calls
System callsSystem calls
System calls
Bernard Senam
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
InteX Research Lab
 

What's hot (20)

Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Distributed operating system
Distributed operating systemDistributed operating system
Distributed operating system
 
Distributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithmDistributed system lamport's and vector algorithm
Distributed system lamport's and vector algorithm
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Real time system
Real time systemReal time system
Real time system
 
Fundamentals of the Analysis of Algorithm Efficiency
Fundamentals of the Analysis of Algorithm EfficiencyFundamentals of the Analysis of Algorithm Efficiency
Fundamentals of the Analysis of Algorithm Efficiency
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
RTOS Basic Concepts
RTOS Basic ConceptsRTOS Basic Concepts
RTOS Basic Concepts
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
Np complete
Np completeNp complete
Np complete
 
RT linux
RT linuxRT linux
RT linux
 
MULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULINGMULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULING
 
Os rtos.ppt
Os rtos.pptOs rtos.ppt
Os rtos.ppt
 
System calls
System callsSystem calls
System calls
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 

Similar to Real-Time Scheduling

Rtos 8051
Rtos 8051Rtos 8051
Real Time System
Real Time SystemReal Time System
Real Time System
AKANSH SINGHAL
 
ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
Sarvesh Warjurkar
 
RTAI - Earliest Deadline First
RTAI - Earliest Deadline FirstRTAI - Earliest Deadline First
RTAI - Earliest Deadline First
Stefano Bragaglia
 
Priority Scheduling.pptx
Priority Scheduling.pptxPriority Scheduling.pptx
Priority Scheduling.pptx
SarupyaDatta1
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
University of Computer Science and Technology
 
Chapter 19 - Real Time Systems
Chapter 19 - Real Time SystemsChapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
Wayne Jones Jnr
 
Rtos presentation
Rtos presentationRtos presentation
Embedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptxEmbedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptx
Swati Shekapure
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
Nazir Ahmed
 
Commonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time SchedulingCommonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time Scheduling
Raaz Karkee
 
Operating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingOperating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - Scheduling
Peter Tröger
 
Resource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time SystemsResource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time Systems
jeronimored
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
Farhanahmad540205
 
OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdf
Kp Sharma
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
IOSR Journals
 
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdfWeek 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
devinezekiel2003
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
ahad alam
 

Similar to Real-Time Scheduling (20)

Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
 
Rtos 8051
Rtos 8051Rtos 8051
Rtos 8051
 
Real Time System
Real Time SystemReal Time System
Real Time System
 
ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
 
RTAI - Earliest Deadline First
RTAI - Earliest Deadline FirstRTAI - Earliest Deadline First
RTAI - Earliest Deadline First
 
Priority Scheduling.pptx
Priority Scheduling.pptxPriority Scheduling.pptx
Priority Scheduling.pptx
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Chapter 19 - Real Time Systems
Chapter 19 - Real Time SystemsChapter 19 - Real Time Systems
Chapter 19 - Real Time Systems
 
Rtos presentation
Rtos presentationRtos presentation
Rtos presentation
 
Embedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptxEmbedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptx
 
Ch05 cpu-scheduling
Ch05 cpu-schedulingCh05 cpu-scheduling
Ch05 cpu-scheduling
 
Commonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time SchedulingCommonly used Approaches to Real Time Scheduling
Commonly used Approaches to Real Time Scheduling
 
Operating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - SchedulingOperating Systems 1 (10/12) - Scheduling
Operating Systems 1 (10/12) - Scheduling
 
Resource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time SystemsResource Management in (Embedded) Real-Time Systems
Resource Management in (Embedded) Real-Time Systems
 
ch_scheduling (1).ppt
ch_scheduling (1).pptch_scheduling (1).ppt
ch_scheduling (1).ppt
 
OS Process Chapter 3.pdf
OS Process Chapter 3.pdfOS Process Chapter 3.pdf
OS Process Chapter 3.pdf
 
Survey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling AlgorithmsSurvey of Real Time Scheduling Algorithms
Survey of Real Time Scheduling Algorithms
 
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdfWeek 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
Week 1 Time_measuremenjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjt.pdf
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
 

More from sathish sak

TRANSPARENT CONCRE
TRANSPARENT CONCRETRANSPARENT CONCRE
TRANSPARENT CONCRE
sathish sak
 
Stationary Waves
Stationary WavesStationary Waves
Stationary Waves
sathish sak
 
Electrical Activity of the Heart
Electrical Activity of the HeartElectrical Activity of the Heart
Electrical Activity of the Heart
sathish sak
 
Electrical Activity of the Heart
Electrical Activity of the HeartElectrical Activity of the Heart
Electrical Activity of the Heart
sathish sak
 
Software process life cycles
Software process life cyclesSoftware process life cycles
Software process life cycles
sathish sak
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
sathish sak
 
Real-Time Signal Processing: Implementation and Application
Real-Time Signal Processing:  Implementation and ApplicationReal-Time Signal Processing:  Implementation and Application
Real-Time Signal Processing: Implementation and Application
sathish sak
 
DIGITAL SIGNAL PROCESSOR OVERVIEW
DIGITAL SIGNAL PROCESSOR OVERVIEWDIGITAL SIGNAL PROCESSOR OVERVIEW
DIGITAL SIGNAL PROCESSOR OVERVIEW
sathish sak
 
FRACTAL ROBOTICS
FRACTAL  ROBOTICSFRACTAL  ROBOTICS
FRACTAL ROBOTICS
sathish sak
 
Electro bike
Electro bikeElectro bike
Electro bike
sathish sak
 
ROBOTIC SURGERY
ROBOTIC SURGERYROBOTIC SURGERY
ROBOTIC SURGERY
sathish sak
 
POWER GENERATION OF THERMAL POWER PLANT
POWER GENERATION OF THERMAL POWER PLANTPOWER GENERATION OF THERMAL POWER PLANT
POWER GENERATION OF THERMAL POWER PLANT
sathish sak
 
mathematics application fiels of engineering
mathematics application fiels of engineeringmathematics application fiels of engineering
mathematics application fiels of engineering
sathish sak
 
Plastics…
Plastics…Plastics…
Plastics…
sathish sak
 
ENGINEERING
ENGINEERINGENGINEERING
ENGINEERING
sathish sak
 
ENVIRONMENTAL POLLUTION
ENVIRONMENTALPOLLUTIONENVIRONMENTALPOLLUTION
ENVIRONMENTAL POLLUTION
sathish sak
 
RFID TECHNOLOGY
RFID TECHNOLOGYRFID TECHNOLOGY
RFID TECHNOLOGY
sathish sak
 
green chemistry
green chemistrygreen chemistry
green chemistry
sathish sak
 
NANOTECHNOLOGY
  NANOTECHNOLOGY	  NANOTECHNOLOGY
NANOTECHNOLOGY
sathish sak
 
The Cyclotron
The CyclotronThe Cyclotron
The Cyclotron
sathish sak
 

More from sathish sak (20)

TRANSPARENT CONCRE
TRANSPARENT CONCRETRANSPARENT CONCRE
TRANSPARENT CONCRE
 
Stationary Waves
Stationary WavesStationary Waves
Stationary Waves
 
Electrical Activity of the Heart
Electrical Activity of the HeartElectrical Activity of the Heart
Electrical Activity of the Heart
 
Electrical Activity of the Heart
Electrical Activity of the HeartElectrical Activity of the Heart
Electrical Activity of the Heart
 
Software process life cycles
Software process life cyclesSoftware process life cycles
Software process life cycles
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
 
Real-Time Signal Processing: Implementation and Application
Real-Time Signal Processing:  Implementation and ApplicationReal-Time Signal Processing:  Implementation and Application
Real-Time Signal Processing: Implementation and Application
 
DIGITAL SIGNAL PROCESSOR OVERVIEW
DIGITAL SIGNAL PROCESSOR OVERVIEWDIGITAL SIGNAL PROCESSOR OVERVIEW
DIGITAL SIGNAL PROCESSOR OVERVIEW
 
FRACTAL ROBOTICS
FRACTAL  ROBOTICSFRACTAL  ROBOTICS
FRACTAL ROBOTICS
 
Electro bike
Electro bikeElectro bike
Electro bike
 
ROBOTIC SURGERY
ROBOTIC SURGERYROBOTIC SURGERY
ROBOTIC SURGERY
 
POWER GENERATION OF THERMAL POWER PLANT
POWER GENERATION OF THERMAL POWER PLANTPOWER GENERATION OF THERMAL POWER PLANT
POWER GENERATION OF THERMAL POWER PLANT
 
mathematics application fiels of engineering
mathematics application fiels of engineeringmathematics application fiels of engineering
mathematics application fiels of engineering
 
Plastics…
Plastics…Plastics…
Plastics…
 
ENGINEERING
ENGINEERINGENGINEERING
ENGINEERING
 
ENVIRONMENTAL POLLUTION
ENVIRONMENTALPOLLUTIONENVIRONMENTALPOLLUTION
ENVIRONMENTAL POLLUTION
 
RFID TECHNOLOGY
RFID TECHNOLOGYRFID TECHNOLOGY
RFID TECHNOLOGY
 
green chemistry
green chemistrygreen chemistry
green chemistry
 
NANOTECHNOLOGY
  NANOTECHNOLOGY	  NANOTECHNOLOGY
NANOTECHNOLOGY
 
The Cyclotron
The CyclotronThe Cyclotron
The Cyclotron
 

Recently uploaded

Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
varshanayak241
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
KrzysztofKkol1
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
XfilesPro
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 

Recently uploaded (20)

Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
Strategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptxStrategies for Successful Data Migration Tools.pptx
Strategies for Successful Data Migration Tools.pptx
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Designing for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web ServicesDesigning for Privacy in Amazon Web Services
Designing for Privacy in Amazon Web Services
 
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 

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.