SlideShare a Scribd company logo
Chapter 4 – Periodic Task Scheduling
In many real-time systems periodic tasks dominate the demand.
Three classic periodic task scheduling algorithms:
– Time Line (Cyclic)
– Rate Monotonic
– Earliest Deadline First
What is the landscape here?
What causes the challenges?
Periodic Task Scheduling Notation
Ti denotes the period of task i
Ci denotes the Computation time for one instance of task i
Periodic Task Scheduling Assumptions
Additional Periodic Task Parameters
Processor Utilization Factor - U
< 1 if set is scheduable
Let be the upper bound of the processor utilization factor for a set under a
given algorithm A. When the set is said to fully utilize the processor.
1
Time Line Scheduling (Cyclic Scheduling)
Time Line Scheduling (Off-line scheduling strategy)– Divide the time line into time
slices for scheduling tasks, e.g. use the Greatest Common Divisor of the Task Periods
as the time slice:
40 Hz
20 Hz
10 Hz
Schedulability is guaranteed if:
Time line scheduling is sensitive to changes in the task parameters.
Can time line scheduling also accommodate aperiodic tasks ?
Rate Monotonic Scheduling
RM is optimal among all fixed Priority assignment schedules.
Why?
How can you how show that it must be optimal?

Which is clearly non-optimal
Rate Monotonic – Calc of ULUB for Two Tasks
Let , the number of
Then the schedule produced by RM satisfies one of two conditions:
for Uub
Since this is the critical time zone
for Uub
0Rate Monotonic – Calc of ULUB for Two Tasks
Rate Monotonic – Calc of ULUB for n Tasks
Sufficient conditions for schedulability of n tasks under Rate monotonic:
Chap 4.ppt
Earliest Deadline First
Proof: Assume U > 1 and the task set is schedulable. This leads to a contradiction:
Example: Comparing RM to EDF
Since U > ln 2 = 0.69, Schedulability can’t be guaranteed using Rate Monotonic
Deadline Monotonic
The Deadline Monotonic priority assignment weakens the “period equals
deadline” constraint within a static scheduling scheme. Each periodic task
is characterized by four parameters:
which have the following relationships:
Comparison of Fixed Priority & Dynamic Priority Scheduling
Categories:
Fixed Priority: Time-Line (Cyclic)
Rate Monotonic (RM)
Dynamic: Earliest Deadline First (EDF)
Comparison:
Fixed Priority: Can be done off-line,
Easier to implement.
Dynamic: Can exploit 100% of processor bandwidth
(RM can uses < 69% in the worst case),
Typically uses less context switches (?),
Handles overloads more gracefully
(Fixed Priority breaks down on overload).
Why does Earliest Deadline First work so well? How does it handle
aperiodic tasks? What is its Achilles heel?

More Related Content

PDF
Real Time most famous algorithms
PPTX
Multiprocessor Real-Time Scheduling.pptx
PDF
Periodic
DOCX
Rate.docx
PPT
ESC UNIT 3.ppt
PPT
task_sched2.ppt
PPTX
Real Time System
PPT
Real time-embedded-system-lec-02
Real Time most famous algorithms
Multiprocessor Real-Time Scheduling.pptx
Periodic
Rate.docx
ESC UNIT 3.ppt
task_sched2.ppt
Real Time System
Real time-embedded-system-lec-02

Similar to Chap 4.ppt (20)

PPT
Real time-embedded-system-lec-02
PPT
multiprocessor real_ time scheduling.ppt
PPTX
Scheduling algorithm in real time system
PPTX
Scheduling Algorithms unit IV(II).pptx -
PPTX
Clock driven scheduling
PDF
Scheduling Task-parallel Applications in Dynamically Asymmetric Environments
PDF
slot_shifting
PDF
A Review of Different Types of Schedulers Used In Energy Management
PPT
PPTX
Unit 3222222222222222222222222222222222222222222222222222 -2.pptx
PPTX
Real time-system
PPTX
Real time-system
PDF
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
PPT
Scheduling and Scheduler's Process and Premptive
PPTX
Commonly used Approaches to Real Time Scheduling
PPTX
Task assignment and scheduling
PDF
International Journal of Information Technology Convergence and services (IJI...
PDF
International Journal of Information Technology Convergence and services (IJI...
PPTX
Real time operating system which explains scheduling algorithms
PDF
Ijariie1161
Real time-embedded-system-lec-02
multiprocessor real_ time scheduling.ppt
Scheduling algorithm in real time system
Scheduling Algorithms unit IV(II).pptx -
Clock driven scheduling
Scheduling Task-parallel Applications in Dynamically Asymmetric Environments
slot_shifting
A Review of Different Types of Schedulers Used In Energy Management
Unit 3222222222222222222222222222222222222222222222222222 -2.pptx
Real time-system
Real time-system
Comparision of different Round Robin Scheduling Algorithm using Dynamic Time ...
Scheduling and Scheduler's Process and Premptive
Commonly used Approaches to Real Time Scheduling
Task assignment and scheduling
International Journal of Information Technology Convergence and services (IJI...
International Journal of Information Technology Convergence and services (IJI...
Real time operating system which explains scheduling algorithms
Ijariie1161
Ad

More from Anonymous9etQKwW (13)

PPTX
CISCT 2024 template (1) template template
PPTX
distributed system ppt presentation in cs
PPTX
os distributed system theoretical foundation
PPTX
osi model computer networks complete detail
PPT
CODch3Slides.ppt
PPTX
IntroductoryPPT_CSE242.pptx
PPT
Intro.ppt
PPTX
Big Data & Analytics (CSE6005) L6.pptx
PPTX
Lecture 2 Hadoop.pptx
PPT
mapreduceApril24.ppt
PPT
PPTX
lecture 2.pptx
PPT
Artificial Neural Networks_Bioinsspired_Algorithms_Nov 20.ppt
CISCT 2024 template (1) template template
distributed system ppt presentation in cs
os distributed system theoretical foundation
osi model computer networks complete detail
CODch3Slides.ppt
IntroductoryPPT_CSE242.pptx
Intro.ppt
Big Data & Analytics (CSE6005) L6.pptx
Lecture 2 Hadoop.pptx
mapreduceApril24.ppt
lecture 2.pptx
Artificial Neural Networks_Bioinsspired_Algorithms_Nov 20.ppt
Ad

Recently uploaded (20)

PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
PPT on Performance Review to get promotions
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
UNIT 4 Total Quality Management .pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CH1 Production IntroductoryConcepts.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPT on Performance Review to get promotions
Strings in CPP - Strings in C++ are sequences of characters used to store and...
CYBER-CRIMES AND SECURITY A guide to understanding
UNIT 4 Total Quality Management .pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Internet of Things (IOT) - A guide to understanding
additive manufacturing of ss316l using mig welding
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
bas. eng. economics group 4 presentation 1.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT

Chap 4.ppt

  • 1. Chapter 4 – Periodic Task Scheduling In many real-time systems periodic tasks dominate the demand. Three classic periodic task scheduling algorithms: – Time Line (Cyclic) – Rate Monotonic – Earliest Deadline First What is the landscape here? What causes the challenges?
  • 2. Periodic Task Scheduling Notation Ti denotes the period of task i Ci denotes the Computation time for one instance of task i
  • 5. Processor Utilization Factor - U < 1 if set is scheduable Let be the upper bound of the processor utilization factor for a set under a given algorithm A. When the set is said to fully utilize the processor. 1
  • 6. Time Line Scheduling (Cyclic Scheduling) Time Line Scheduling (Off-line scheduling strategy)– Divide the time line into time slices for scheduling tasks, e.g. use the Greatest Common Divisor of the Task Periods as the time slice: 40 Hz 20 Hz 10 Hz Schedulability is guaranteed if: Time line scheduling is sensitive to changes in the task parameters. Can time line scheduling also accommodate aperiodic tasks ?
  • 7. Rate Monotonic Scheduling RM is optimal among all fixed Priority assignment schedules. Why? How can you how show that it must be optimal?  Which is clearly non-optimal
  • 8. Rate Monotonic – Calc of ULUB for Two Tasks Let , the number of Then the schedule produced by RM satisfies one of two conditions: for Uub Since this is the critical time zone for Uub
  • 9. 0Rate Monotonic – Calc of ULUB for Two Tasks
  • 10. Rate Monotonic – Calc of ULUB for n Tasks Sufficient conditions for schedulability of n tasks under Rate monotonic:
  • 12. Earliest Deadline First Proof: Assume U > 1 and the task set is schedulable. This leads to a contradiction:
  • 13. Example: Comparing RM to EDF Since U > ln 2 = 0.69, Schedulability can’t be guaranteed using Rate Monotonic
  • 14. Deadline Monotonic The Deadline Monotonic priority assignment weakens the “period equals deadline” constraint within a static scheduling scheme. Each periodic task is characterized by four parameters: which have the following relationships:
  • 15. Comparison of Fixed Priority & Dynamic Priority Scheduling Categories: Fixed Priority: Time-Line (Cyclic) Rate Monotonic (RM) Dynamic: Earliest Deadline First (EDF) Comparison: Fixed Priority: Can be done off-line, Easier to implement. Dynamic: Can exploit 100% of processor bandwidth (RM can uses < 69% in the worst case), Typically uses less context switches (?), Handles overloads more gracefully (Fixed Priority breaks down on overload). Why does Earliest Deadline First work so well? How does it handle aperiodic tasks? What is its Achilles heel?