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

What's hot

Real time operating system
Real time operating systemReal time operating system
Real time operating system
Kamran Khan
 
5 Process Scheduling
5 Process Scheduling5 Process Scheduling
5 Process Scheduling
Dr. Loganathan R
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process Scheduling
Shipra Swati
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
Sundaresan Sundar
 
Binary Semaphore
Binary SemaphoreBinary Semaphore
Binary Semaphore
Manash Kumar Mondal
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
Praveen Penumathsa
 
Cpu Scheduling Galvin
Cpu Scheduling GalvinCpu Scheduling Galvin
Cpu Scheduling Galvin
Sonali Chauhan
 
Priority Scheduling
Priority Scheduling  Priority Scheduling
Priority Scheduling
JawadHaider36
 
operating system question bank
operating system question bankoperating system question bank
operating system question bank
rajatdeep kaur
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OS
harini0810
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
Paurav Shah
 
Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1
Abu Bakr Ramadan
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithms
Shanu Kumar
 
VLIW Processors
VLIW ProcessorsVLIW Processors
VLIW Processors
Sudhanshu Janwadkar
 
Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
Pradeep Kumar TS
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
Rashmi Bhat
 
First Come First Serve
First Come First ServeFirst Come First Serve
First Come First Serve
Kavya Kapoor
 
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
 
Multilevel queue scheduling
Multilevel queue schedulingMultilevel queue scheduling
Multilevel queue scheduling
AditiPawaskar5
 
Process Scheduling
Process SchedulingProcess Scheduling

What's hot (20)

Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
5 Process Scheduling
5 Process Scheduling5 Process Scheduling
5 Process Scheduling
 
Operating System-Process Scheduling
Operating System-Process SchedulingOperating System-Process Scheduling
Operating System-Process Scheduling
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
Binary Semaphore
Binary SemaphoreBinary Semaphore
Binary Semaphore
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
 
Cpu Scheduling Galvin
Cpu Scheduling GalvinCpu Scheduling Galvin
Cpu Scheduling Galvin
 
Priority Scheduling
Priority Scheduling  Priority Scheduling
Priority Scheduling
 
operating system question bank
operating system question bankoperating system question bank
operating system question bank
 
CPU scheduling algorithms in OS
CPU scheduling algorithms in OSCPU scheduling algorithms in OS
CPU scheduling algorithms in OS
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1
 
CPU Scheduling algorithms
CPU Scheduling algorithmsCPU Scheduling algorithms
CPU Scheduling algorithms
 
VLIW Processors
VLIW ProcessorsVLIW Processors
VLIW Processors
 
Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
 
Introduction to Operating System
Introduction to Operating SystemIntroduction to Operating System
Introduction to Operating System
 
First Come First Serve
First Come First ServeFirst Come First Serve
First Come First Serve
 
Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
Multilevel queue scheduling
Multilevel queue schedulingMultilevel queue scheduling
Multilevel queue scheduling
 
Process Scheduling
Process SchedulingProcess Scheduling
Process Scheduling
 

Similar to Commonly used Approaches to Real Time Scheduling

multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
naghamallella
 
Reference Model of Real Time System
Reference Model of Real Time SystemReference Model of Real Time System
Reference Model of Real Time System
Raaz Karkee
 
Real Time System
Real Time SystemReal Time System
Real Time System
AKANSH SINGHAL
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptx
SHUJEHASSAN
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
KeyreSebre
 
Planificacion
PlanificacionPlanificacion
Planificacion
David Lilue
 
ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
Sarvesh Warjurkar
 
Lect07
Lect07Lect07
Lect07
Vin Voro
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
Prakash Sir
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
Venkatesh Chowdary Nagilla
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdf
AliyanAbbas1
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
ahad alam
 
Embedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptxEmbedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptx
Swati Shekapure
 
Extlect02
Extlect02Extlect02
Extlect02
Vin Voro
 
Os prj ppt
Os prj pptOs prj ppt
Os prj ppt
Charmi Chokshi
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
ShrutiArora343479
 
fggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggffffffffffffffffffffggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggfffffffffffffffffff
adugnanegero
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
AbdulRahman491811
 
Process Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsProcess Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating Systems
KathirvelRajan2
 
3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------
DivyaBorade3
 

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

multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
 
Reference Model of Real Time System
Reference Model of Real Time SystemReference Model of Real Time System
Reference Model of Real Time System
 
Real Time System
Real Time SystemReal Time System
Real Time System
 
programming .pptx
programming .pptxprogramming .pptx
programming .pptx
 
chapter 5 CPU scheduling.ppt
chapter  5 CPU scheduling.pptchapter  5 CPU scheduling.ppt
chapter 5 CPU scheduling.ppt
 
Planificacion
PlanificacionPlanificacion
Planificacion
 
ESC UNIT 3.ppt
ESC UNIT 3.pptESC UNIT 3.ppt
ESC UNIT 3.ppt
 
Lect07
Lect07Lect07
Lect07
 
Cpu scheduling
Cpu schedulingCpu scheduling
Cpu scheduling
 
Section05 scheduling
Section05 schedulingSection05 scheduling
Section05 scheduling
 
operating system (1).pdf
operating system (1).pdfoperating system (1).pdf
operating system (1).pdf
 
3 process scheduling
3 process scheduling3 process scheduling
3 process scheduling
 
Embedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptxEmbedded system scheduling Algorithm .pptx
Embedded system scheduling Algorithm .pptx
 
Extlect02
Extlect02Extlect02
Extlect02
 
Os prj ppt
Os prj pptOs prj ppt
Os prj ppt
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
 
fggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggffffffffffffffffffffggggggggggggggggggggggggggggggfffffffffffffffffff
fggggggggggggggggggggggggggggggfffffffffffffffffff
 
3_process_scheduling.ppt
3_process_scheduling.ppt3_process_scheduling.ppt
3_process_scheduling.ppt
 
Process Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating SystemsProcess Scheduling Algorithms for Operating Systems
Process Scheduling Algorithms for Operating Systems
 
3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------3_process_scheduling.ppt----------------
3_process_scheduling.ppt----------------
 

Recently uploaded

Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 

Recently uploaded (20)

Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 

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