SlideShare a Scribd company logo
Commonly used Approaches to real
time scheduling
-Shrey Dahal
-Bipin karki
-Shekhar Koirala
1
Contents
• Clock Driven Approach
• Weighted Round Robin Approach
• Priority Driven Approach
• Dynamic vs Static System
• Effective Release Time And Deadline
• Optimality and Non-eptimality of EDF and LST algorithm
• Anomalous Behavior of Priority-Driven System
2
Clock Driven Approach
• Also called time-driven approach . Decisions about what jobs execute are chosen
before the system begins execution.
• Parameters of the real-time jobs are fixed and known.
• Schedule of the jobs is computed off-line and is stored for use at runtime.
• Cannot handle aperiodic and sporadic task since such task cannot be predicted.
• Example: the helicopter example with an interrupt every 1/180thof a second
3
Weighted Round Robin
• It is Commonly used for scheduling the time shared applications.
• Jobs Join FIFO queue when becomes ready for execution.
• Each job in the queue executes for one time slice.
• If there are n jobs, then each job gets 1/n share of processor.
• Example : Jobs communicating using Unix pipes
4
Priority Driven
• It refers to large class of scheduling algorithm that never leave any resource idle intentionally.
• Jobs are placed in one or more queues ;at each event the ready job with highest priority is
executed.
• Also called event-driven approach.
• Computation is done online without knowing the knowledge of job that will be released in
future.
• Algorithm used in non-real time system:
– Priority driven, FIFO:-assign priority based on release time
– Shortest Execution Time First , Longest Execution Time First:-assign priority based on
execution time
5
Priority Driven
• Algorithm used in Real Time System:
–Earliest deadline first
–Least slack time first
• Assign priority based on deadline or some timing constriants.
6
EDF AND LST
• Earliest deadline first Least Slack time
7
• Assign priority to jobs based on
deadline
• Earlier the deadline, higher the priority
• the schedulability test for EDF is:
where the ei are the worst-case
computation-times of the n processes and
the Pi are their respective inter-arrival
periods.
• Assign priority to jobs based on slack time(tslack)
• Calculate Slack:
t_rem = exe_time - (time – relese_time)
t_slack = deadline - time - trem
• Smaller the slack time, the higher the priority
Examples:LST
8
Example:EDF
9
(r1, d1, e1) = (0, 10, 3), (r2, d2, e2) = (2, 14, 6), (r3, d3, e3) = (4, 12, 4).
Static vs Dynamic System
Static System
10
• S Dynamic System
10
• Jobs are partitioned into subsystems, and
each subsystem is bound statically to a
processor.
• Jobs can be moved among system.
• Jobs are scheduled on multiple processors,
and a job can be dispatched from the
priority run queue to any of the processors.
• Jobs is migratable.
Optimality and Non-optimality of EDF and LST
algorithm
• OPTIMALITY:
11
• they will always produce a feasible schedule if one exists.
• Constraints: on a single processor, as long as preemption is allowed and jobs do not contend for resources.
• THEOREM:
• When preemption is allowed and jobs do not contend for resources, the EDF and LST algorithms can
produce a feasible schedule of a set J of jobs with arbitrary release times and deadlines on a processor if
and only if J has feasible schedules.
12
Proof:
To show the optimality of EDF, we have to require to show any feasible schedule can be transformed into
another EDF schedule.
If J i is scheduled to execute before J k, but J i’s deadline is later than J k’s such that there exist two
conditions:
– The release time of J k is after the J i completes that means they’re already in EDF order.
– The release time of J k is before the end of the interval in which J i executes.
This is always possible to swap J i and J k since J i’s deadline is later than J k’s such that
13
We can move any jobs following idle periods forward into the idle period then
the result is an EDF schedule
When deadline of J i’s is earlier than J k’s there is no possibility to generate the other feasible
schedule and EDF failed to produce a feasible schedule. Hence the optimality of EDF is
verified .
Non-Optimality
• Neither algorithm is optimal if jobs are non- preemptable or if
there is more than one processor
14
Non-optimality of EDF and LST
• EDF and LST algorithms are not optimal if preemption is not allowed or
there is more than one processor. consider j1(0,3,10),j2(2,6,14),j3(4,4,12).
15
16
Consider we have two processors and three jobs J1, J2, J3, with execution
times 1, 1, 5 and deadlines 1, 2, 5 respectively. All with release time 0.
Effective Release Time and Deadline
• Effective release time:-
-The effective release time of a job with predecessor is equal to the maximum value
among its given release time and the effective release times of all of its predecessors.
• Effective Deadline:-
- The effective deadline of a job with successors is equal to the minimum value
among its given deadline and the effective deadline of all of its successors.
17
1818
Validating Priority-Driven Scheduling
• Priority-driven scheduling has many advantages over clock-driven scheduling:
• Scheduling anomalies can occur for multiprocessor or non-preemptable systems,
or those which share resources.
19
• Easy to implement.
• Often have simple priority assignment rule,due to which run-time overhead of maintaining
queue can be small.
• Does not require information about deadline and release times in advance so it is uited to
application with varing time and resource requirement.
Anomalous Behavior of Priority-Driven Systems
20
21
THANK YOU

More Related Content

PPTX
Approaches to real time scheduling
PPTX
Clock driven scheduling
PPTX
Unit 4-Memory Management - operating systems.pptx
PPTX
Memory allocation for real time operating system
PPTX
Superscalar Architecture_AIUB
PPT
Ch01 introducing operating systems
PPT
Rtos Concepts
PPTX
Page replacement algorithms
Approaches to real time scheduling
Clock driven scheduling
Unit 4-Memory Management - operating systems.pptx
Memory allocation for real time operating system
Superscalar Architecture_AIUB
Ch01 introducing operating systems
Rtos Concepts
Page replacement algorithms

What's hot (20)

PPTX
Webofthing_WOT_vs_IOT.pptx
PPT
Real-Time Scheduling
PPTX
Multi processor scheduling
PPTX
Smart quill presentation by vikas
PDF
Notes on NUMA architecture
PPTX
Memory management ppt
PPT
Parallel computing chapter 2
PPTX
Human Computer Interaction
PPTX
Evolutionary computing - soft computing
PPTX
Bluegene
PPTX
Operating system memory management
PDF
8 memory management strategies
PPTX
Allocating of Frames.pptx
PPT
Micro programmed control
PDF
AI 7 | Constraint Satisfaction Problem
PDF
IoT and WoT (Internet of Things and Web of Things)
PPTX
Data link layer
PDF
Optimization using soft computing
PPTX
How to Measure RTOS Performance
PPT
Chapter6 pipelining
Webofthing_WOT_vs_IOT.pptx
Real-Time Scheduling
Multi processor scheduling
Smart quill presentation by vikas
Notes on NUMA architecture
Memory management ppt
Parallel computing chapter 2
Human Computer Interaction
Evolutionary computing - soft computing
Bluegene
Operating system memory management
8 memory management strategies
Allocating of Frames.pptx
Micro programmed control
AI 7 | Constraint Satisfaction Problem
IoT and WoT (Internet of Things and Web of Things)
Data link layer
Optimization using soft computing
How to Measure RTOS Performance
Chapter6 pipelining
Ad

Similar to Commonly used Approaches to Real Time Scheduling (20)

PPTX
Priority driven scheduling of periodic tasks
PDF
Real Time most famous algorithms
PPT
Scheduling and Scheduler's Process and Premptive
PPTX
Scheduling algorithm in real time system
PDF
6_RealTimeScheduling.pdf
PPTX
scheduling.pptx
PPTX
Earliest Due Date Algorithm for Task scheduling for cloud computing
PPTX
Embedded system scheduling Algorithm .pptx
PDF
International Journal of Information Technology Convergence and services (IJI...
PDF
International Journal of Information Technology Convergence and services (IJI...
DOCX
Rate.docx
PPT
ESC UNIT 3.ppt
PPT
task_sched2.ppt
PDF
Survey of Real Time Scheduling Algorithms
PPTX
Flowshop scheduling
PDF
Periodic
PPT
Os5
PPTX
Osy ppt - Copy.pptx
PPTX
Multiprocessor Real-Time Scheduling.pptx
PDF
Real time Systems lecture slides (Complete)
Priority driven scheduling of periodic tasks
Real Time most famous algorithms
Scheduling and Scheduler's Process and Premptive
Scheduling algorithm in real time system
6_RealTimeScheduling.pdf
scheduling.pptx
Earliest Due Date Algorithm for Task scheduling for cloud computing
Embedded system scheduling Algorithm .pptx
International Journal of Information Technology Convergence and services (IJI...
International Journal of Information Technology Convergence and services (IJI...
Rate.docx
ESC UNIT 3.ppt
task_sched2.ppt
Survey of Real Time Scheduling Algorithms
Flowshop scheduling
Periodic
Os5
Osy ppt - Copy.pptx
Multiprocessor Real-Time Scheduling.pptx
Real time Systems lecture slides (Complete)
Ad

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Electronic commerce courselecture one. Pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Cloud computing and distributed systems.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25 Week I
Electronic commerce courselecture one. Pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Monthly Chronicles - July 2025
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Empathic Computing: Creating Shared Understanding
Unlocking AI with Model Context Protocol (MCP)
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The Rise and Fall of 3GPP – Time for a Sabbatical?
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Cloud computing and distributed systems.
Understanding_Digital_Forensics_Presentation.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Commonly used Approaches to Real Time Scheduling

  • 1. Commonly used Approaches to real time scheduling -Shrey Dahal -Bipin karki -Shekhar Koirala 1
  • 2. Contents • Clock Driven Approach • Weighted Round Robin Approach • Priority Driven Approach • Dynamic vs Static System • Effective Release Time And Deadline • Optimality and Non-eptimality of EDF and LST algorithm • Anomalous Behavior of Priority-Driven System 2
  • 3. Clock Driven Approach • Also called time-driven approach . Decisions about what jobs execute are chosen before the system begins execution. • Parameters of the real-time jobs are fixed and known. • Schedule of the jobs is computed off-line and is stored for use at runtime. • Cannot handle aperiodic and sporadic task since such task cannot be predicted. • Example: the helicopter example with an interrupt every 1/180thof a second 3
  • 4. Weighted Round Robin • It is Commonly used for scheduling the time shared applications. • Jobs Join FIFO queue when becomes ready for execution. • Each job in the queue executes for one time slice. • If there are n jobs, then each job gets 1/n share of processor. • Example : Jobs communicating using Unix pipes 4
  • 5. Priority Driven • It refers to large class of scheduling algorithm that never leave any resource idle intentionally. • Jobs are placed in one or more queues ;at each event the ready job with highest priority is executed. • Also called event-driven approach. • Computation is done online without knowing the knowledge of job that will be released in future. • Algorithm used in non-real time system: – Priority driven, FIFO:-assign priority based on release time – Shortest Execution Time First , Longest Execution Time First:-assign priority based on execution time 5
  • 6. Priority Driven • Algorithm used in Real Time System: –Earliest deadline first –Least slack time first • Assign priority based on deadline or some timing constriants. 6
  • 7. EDF AND LST • Earliest deadline first Least Slack time 7 • Assign priority to jobs based on deadline • Earlier the deadline, higher the priority • the schedulability test for EDF is: where the ei are the worst-case computation-times of the n processes and the Pi are their respective inter-arrival periods. • Assign priority to jobs based on slack time(tslack) • Calculate Slack: t_rem = exe_time - (time – relese_time) t_slack = deadline - time - trem • Smaller the slack time, the higher the priority
  • 9. Example:EDF 9 (r1, d1, e1) = (0, 10, 3), (r2, d2, e2) = (2, 14, 6), (r3, d3, e3) = (4, 12, 4).
  • 10. Static vs Dynamic System Static System 10 • S Dynamic System 10 • Jobs are partitioned into subsystems, and each subsystem is bound statically to a processor. • Jobs can be moved among system. • Jobs are scheduled on multiple processors, and a job can be dispatched from the priority run queue to any of the processors. • Jobs is migratable.
  • 11. Optimality and Non-optimality of EDF and LST algorithm • OPTIMALITY: 11 • they will always produce a feasible schedule if one exists. • Constraints: on a single processor, as long as preemption is allowed and jobs do not contend for resources. • THEOREM: • When preemption is allowed and jobs do not contend for resources, the EDF and LST algorithms can produce a feasible schedule of a set J of jobs with arbitrary release times and deadlines on a processor if and only if J has feasible schedules.
  • 12. 12 Proof: To show the optimality of EDF, we have to require to show any feasible schedule can be transformed into another EDF schedule. If J i is scheduled to execute before J k, but J i’s deadline is later than J k’s such that there exist two conditions: – The release time of J k is after the J i completes that means they’re already in EDF order. – The release time of J k is before the end of the interval in which J i executes. This is always possible to swap J i and J k since J i’s deadline is later than J k’s such that
  • 13. 13 We can move any jobs following idle periods forward into the idle period then the result is an EDF schedule When deadline of J i’s is earlier than J k’s there is no possibility to generate the other feasible schedule and EDF failed to produce a feasible schedule. Hence the optimality of EDF is verified .
  • 14. Non-Optimality • Neither algorithm is optimal if jobs are non- preemptable or if there is more than one processor 14
  • 15. Non-optimality of EDF and LST • EDF and LST algorithms are not optimal if preemption is not allowed or there is more than one processor. consider j1(0,3,10),j2(2,6,14),j3(4,4,12). 15
  • 16. 16 Consider we have two processors and three jobs J1, J2, J3, with execution times 1, 1, 5 and deadlines 1, 2, 5 respectively. All with release time 0.
  • 17. Effective Release Time and Deadline • Effective release time:- -The effective release time of a job with predecessor is equal to the maximum value among its given release time and the effective release times of all of its predecessors. • Effective Deadline:- - The effective deadline of a job with successors is equal to the minimum value among its given deadline and the effective deadline of all of its successors. 17
  • 18. 1818
  • 19. Validating Priority-Driven Scheduling • Priority-driven scheduling has many advantages over clock-driven scheduling: • Scheduling anomalies can occur for multiprocessor or non-preemptable systems, or those which share resources. 19 • Easy to implement. • Often have simple priority assignment rule,due to which run-time overhead of maintaining queue can be small. • Does not require information about deadline and release times in advance so it is uited to application with varing time and resource requirement.
  • 20. Anomalous Behavior of Priority-Driven Systems 20