SlideShare a Scribd company logo
1 of 26
A Real Time System is any information
processing system which has to respond to
externally generated input stimuli within a
finite & specified period.

In real time computing , the correctness of
the computation depends not only on the
logical results but also on the time at
which the results are produced.
In RTS a substantial
fraction of the design
effort    goes    into
making sure that the
task deadlines are
met.

A Deadline is a
given time after a
triggering event , by
which a response has
to be completed.
1. Hard real
time systems    2. Soft real time
                    systems
Hard Real Time Systems
System should meets the timings constraints.

 Response time overrun leads to disastrous
  damage
Example : Flight Control System




SOFT REAL TIME SYSTEMS
 Deadline overruns are tolerable, but not
  desired.
 There are no catastrophic consequences of
  missing one or more deadlines.
 Example : Multimedia System
Operating System Issues


Architectural Issues


Other Issues
   By task scheduling , we means that a computer’s
    resources must be shared out equitably among the
    users.

   In general-purpose system , Round robin scheduling
    is used , which ensures that user does not get a
    disproportionate share of the computer’s services.

   But Round robin scheduling approach does not
    work in Real Time applications because priority
    scheduling makes the difference in the two.
Computation       Priority   Scheduling


      Offline       Static     Preemptive
  (precomputed)


                                   Non
     Online
                  Dynamic       Preemptive
  (Dynamically)
A1. No task has any non- preempt able section & cost of
  preemption is negligible.

A2. Only processing requirements are significant;
  memory, I/O & other resource requirements are
  negligible.

A3. All tasks are independent.

A4. The deadline of a task is equal to its period.

A5. All the tasks in the task set are periodic.
   Optimal uniprocessor algorithm
   Also known as Deadline Monotonic
    Scheduling algorithm
   Tasks are preemptable
   Dynamic priorities
   Scheduler picks task , whose deadline is
    due next
   A set of tasks is schedulable ( in hard
    real time sense ) , if the total processor
    utilization is not greater than 1.
NECESSARY & SUFFICIENT
            CONDITION

In EDF , for a task set is said to be
schedulable is if it satisfy the following
necessary and sufficient condition :



   Σ   (i=1 to n)   e/p ≤ 1
                    i        i
Consider     3 periodic    processes scheduled
using EDF, the following acceptance test shows
that all deadlines will be met.


              Execution Time = ei   Period = pi
    Process

      P1              1                 8
      P2              2                 5
      P3              4                 10
The utilization will be:

U = { ( 1/8 ) + ( 2/5 ) + ( 4/10 ) }

  = 0.925       ( or 92.5 % )

The theoretical limit for any number of
processes is 100% ( or less than 1 ) and
so the system is schedulable .
Different possible scenarios

                                                         Sufficient
                                                         but NOT
                                                         necessary
                  If di ≥ pi                If di < pi
Necessary
and                                                              Necessary
sufficient                                                       and
                                                                 sufficient


             ∑ ei/pi ≤ 1             ∑ ei/di ≤ 1          Fail
                                     Pass

                                     Schedulable         Processor demand
                                                         Based test
•Optimality
ADVANTAGES   •Reduces number of task
              switches




             •Deteriorates badly under
              overload
DRAWBACKS    •Scheduling is more
              expensive
             •Needs smarter scheduler
   Static priority based algorithm : tasks
    scheduled according to priorities
   Classical uniprocessor scheduling
    algorithm
   Also called Liu-Layland algorithm or Clock
    driven uniprocessor algorithm
   Tasks are pre-emptable
   It says that if the total utilization of the task
    is not greater than n(21/n -1) where n stands
    for number of tasks to be scheduled then
    RM algorithm will schedule all the task to
    meet their respective deadlines.

   The RMA assigns priorities to the tasks
    based on their rate of occurrence, i.e. the
    lower the occurrence rate of the task the
    lower the priority assigned to it.
   In RMA the priority of the task is directly
    proportional to its rate of occurrence or it is
    inversely proportional to the period
   A set of periodic real time tasks would not be
    RMA schedulable unless they satisfy the
    following necessary condition:-




    Σ   (i=1 to n)   U =Σ
                      i     (i=1 to n)   e /p ≤ 1
                                         i   i
    Also referred to as Liu and Layland’s condition.
   It implies that a set of ‘n’ real time periodic tasks
    are schedulable under RMA if :




        Σ   (i=1 to n)   U ≤ n
                          i       (21/n     -1)
   If the set of tasks satisfies this sufficient condition
    then it is guaranteed that the set of tasks would be
    RMA schedulable.
CASES :
Consider the case when
• there is only 1 task in the system, i.e., n=1
    U1 = 1
• there is 2 tasks in the system, i.e., n=2
    U2 = 0.824
• n=∞, applying L’Hospitals Rule
    ln 2 = 0.69

CONCLUSION:
From above computation it is clear that maximum
CPU utilization that can be achieved under RMA is 1.
Consider 3 tasks to be scheduled using RMA, the
following acceptance test determines whether that
all deadlines will be met or not.


     TASK          EXECUTION          PERIOD
                      TIME

       T1               20               100
       T2               30               150
       T3               60               200
Checking for the NECESSARY CONDITION :
        Σ(i=1 to n)   U =Σ
                       i   (i=1 to n)   e /p
                                         i   i   ≤   1

               U1                              0.2

               U2                              0.2

               U3                              0.3

         Σ(i=1 to 3) U                         0.7
Checking for the SUFFICIENT CONDITION :
              Σ(i=1 to n) Ui ≤ n(21/n -1)

For n=3,
               n(21/n -1) = 3(21/3 -1)
                          = 0.78 < 1
                       Ui = 0.7 < 0.78

Hence, sufficient condition is satisfied.
Therefore, all the given three tasks are
schedulable under RMA.
• possesses good transient
 Advantages      overload handling



              • difficult to support
                aperiodic and sporadic
                tasks
Disadvantages
              • not optimal when task
                periods and deadlines
                differ
EDF                                 RMA
   EDF is also called Deadline-        RMA is also      called     Liu-
    Monotonic         Scheduling         Layland algorithm.
    algorithm
                                        Static priority algorithm
   Dynamic priority algorithm

                                        All tasks are assumed to be
   Tasks do not have to be
                                         periodic
    periodic

   Full     processor   can   be       It lacks flexibility. For e.g.
    feasibly        scheduled,  if       RMA assumes that tasks are
    utilization of task set is no        infinitely preempt able.
    greater than 1
                                        Simpler implementation, even
   It requires a run time               in systems without explicit
    overhead. Deteriorates during        support for timing constraints
    overload conditions                  (periods, deadlines)

More Related Content

What's hot

Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop Rajesh Ananda Kumar
 
Fault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating systemFault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating systemanujos25
 
Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4Abu Bakr Ramadan
 
REAL TIME OPERATING SYSTEM PART 1
REAL TIME OPERATING SYSTEM PART 1REAL TIME OPERATING SYSTEM PART 1
REAL TIME OPERATING SYSTEM PART 1Embeddedcraft Craft
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Mukesh Chinta
 
Election algorithms
Election algorithmsElection algorithms
Election algorithmsAnkush Kumar
 
Data-Intensive Technologies for Cloud Computing
Data-Intensive Technologies for CloudComputingData-Intensive Technologies for CloudComputing
Data-Intensive Technologies for Cloud Computinghuda2018
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecturePankaj Kumar Jain
 
Distributed Caching Essential Lessons (Ts 1402)
Distributed Caching   Essential Lessons (Ts 1402)Distributed Caching   Essential Lessons (Ts 1402)
Distributed Caching Essential Lessons (Ts 1402)Yury Kaliaha
 
Operating system; Multitasking
Operating system; MultitaskingOperating system; Multitasking
Operating system; MultitaskingFlameDimension95
 
Hermes Reliable Replication Protocol - Poster
Hermes Reliable Replication Protocol - Poster Hermes Reliable Replication Protocol - Poster
Hermes Reliable Replication Protocol - Poster Antonios Katsarakis
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time schedulingKamal Acharya
 
presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)chetan mudenoor
 

What's hot (20)

Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop
 
mano.ppt
mano.pptmano.ppt
mano.ppt
 
Fault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating systemFault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating system
 
Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4Real time operating systems (rtos) concepts 4
Real time operating systems (rtos) concepts 4
 
REAL TIME OPERATING SYSTEM PART 1
REAL TIME OPERATING SYSTEM PART 1REAL TIME OPERATING SYSTEM PART 1
REAL TIME OPERATING SYSTEM PART 1
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
VIRTUAL MEMORY
VIRTUAL MEMORYVIRTUAL MEMORY
VIRTUAL MEMORY
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
Election algorithms
Election algorithmsElection algorithms
Election algorithms
 
Data-Intensive Technologies for Cloud Computing
Data-Intensive Technologies for CloudComputingData-Intensive Technologies for CloudComputing
Data-Intensive Technologies for Cloud Computing
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecture
 
Real-Time Operating Systems
Real-Time Operating SystemsReal-Time Operating Systems
Real-Time Operating Systems
 
Distributed Caching Essential Lessons (Ts 1402)
Distributed Caching   Essential Lessons (Ts 1402)Distributed Caching   Essential Lessons (Ts 1402)
Distributed Caching Essential Lessons (Ts 1402)
 
Mainframe systems
Mainframe systemsMainframe systems
Mainframe systems
 
Operating system; Multitasking
Operating system; MultitaskingOperating system; Multitasking
Operating system; Multitasking
 
Interrupt
InterruptInterrupt
Interrupt
 
Hermes Reliable Replication Protocol - Poster
Hermes Reliable Replication Protocol - Poster Hermes Reliable Replication Protocol - Poster
Hermes Reliable Replication Protocol - Poster
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
 
presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)
 

Viewers also liked

Family collage brady patterson
Family collage brady pattersonFamily collage brady patterson
Family collage brady pattersonBrady Patterson
 
Jon arana eta mikel elorza
Jon arana eta mikel elorzaJon arana eta mikel elorza
Jon arana eta mikel elorzamikelelorza12
 
Doing business with_india_sbdc_temple_u_june3_2011
Doing business with_india_sbdc_temple_u_june3_2011Doing business with_india_sbdc_temple_u_june3_2011
Doing business with_india_sbdc_temple_u_june3_2011entryindia
 
Dominican family by brady patterson
Dominican family by brady pattersonDominican family by brady patterson
Dominican family by brady pattersonBrady Patterson
 
Nasa explosion
Nasa explosionNasa explosion
Nasa explosionysush
 
Intellectual Property Rights (IPR)
Intellectual Property Rights (IPR)Intellectual Property Rights (IPR)
Intellectual Property Rights (IPR)Dr.K.Padmanabhan
 
Maroc Telecom | Présentation des résultats annuels 2013
Maroc Telecom | Présentation des résultats annuels 2013Maroc Telecom | Présentation des résultats annuels 2013
Maroc Telecom | Présentation des résultats annuels 2013Maroc Telecom
 
Real time-system
Real time-systemReal time-system
Real time-systemysush
 
Sales tax guide
Sales tax guideSales tax guide
Sales tax guideSyed Ali
 
Kit Smartphones et tablettes pour le mois Août 2015
Kit Smartphones et tablettes  pour le mois Août 2015Kit Smartphones et tablettes  pour le mois Août 2015
Kit Smartphones et tablettes pour le mois Août 2015Maroc Telecom
 
Kit smartphones juillet 2015
Kit smartphones   juillet 2015Kit smartphones   juillet 2015
Kit smartphones juillet 2015Maroc Telecom
 
Kit smartphone-février 2015
Kit smartphone-février 2015Kit smartphone-février 2015
Kit smartphone-février 2015Maroc Telecom
 
Un DéFaut Dans La Femme
Un DéFaut Dans La FemmeUn DéFaut Dans La Femme
Un DéFaut Dans La FemmeLilian Gonzalez
 

Viewers also liked (17)

Family collage brady patterson
Family collage brady pattersonFamily collage brady patterson
Family collage brady patterson
 
Jon arana eta mikel elorza
Jon arana eta mikel elorzaJon arana eta mikel elorza
Jon arana eta mikel elorza
 
Doing business with_india_sbdc_temple_u_june3_2011
Doing business with_india_sbdc_temple_u_june3_2011Doing business with_india_sbdc_temple_u_june3_2011
Doing business with_india_sbdc_temple_u_june3_2011
 
Dominican family by brady patterson
Dominican family by brady pattersonDominican family by brady patterson
Dominican family by brady patterson
 
Nasa explosion
Nasa explosionNasa explosion
Nasa explosion
 
Mutual Funds
Mutual Funds Mutual Funds
Mutual Funds
 
Intellectual Property Rights (IPR)
Intellectual Property Rights (IPR)Intellectual Property Rights (IPR)
Intellectual Property Rights (IPR)
 
Programme INJ@Z 5
Programme INJ@Z 5 Programme INJ@Z 5
Programme INJ@Z 5
 
Blood pressure measurement kashif
Blood pressure measurement kashifBlood pressure measurement kashif
Blood pressure measurement kashif
 
Maroc Telecom | Présentation des résultats annuels 2013
Maroc Telecom | Présentation des résultats annuels 2013Maroc Telecom | Présentation des résultats annuels 2013
Maroc Telecom | Présentation des résultats annuels 2013
 
Real time-system
Real time-systemReal time-system
Real time-system
 
Sales tax guide
Sales tax guideSales tax guide
Sales tax guide
 
Kit Smartphones et tablettes pour le mois Août 2015
Kit Smartphones et tablettes  pour le mois Août 2015Kit Smartphones et tablettes  pour le mois Août 2015
Kit Smartphones et tablettes pour le mois Août 2015
 
Kit smartphones juillet 2015
Kit smartphones   juillet 2015Kit smartphones   juillet 2015
Kit smartphones juillet 2015
 
Kit smartphone-février 2015
Kit smartphone-février 2015Kit smartphone-février 2015
Kit smartphone-février 2015
 
Pourmesamies
PourmesamiesPourmesamies
Pourmesamies
 
Un DéFaut Dans La Femme
Un DéFaut Dans La FemmeUn DéFaut Dans La Femme
Un DéFaut Dans La Femme
 

Similar to Real time-system

Multiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxMultiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxnaghamallella
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithmsAndrea Tino
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptnaghamallella
 
Scheduling algorithm in real time system
Scheduling algorithm in real time systemScheduling algorithm in real time system
Scheduling algorithm in real time systemVishalPandat2
 
6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdfTigabu Yaya
 
Rate.docx
Rate.docxRate.docx
Rate.docxkradha5
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time SystemsDeepak John
 
A Review of Different Types of Schedulers Used In Energy Management
A Review of Different Types of Schedulers Used In Energy ManagementA Review of Different Types of Schedulers Used In Energy Management
A Review of Different Types of Schedulers Used In Energy ManagementIRJET Journal
 
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 SchedulingRaaz Karkee
 
Multiprocessor scheduling 3
Multiprocessor scheduling 3Multiprocessor scheduling 3
Multiprocessor scheduling 3mrbourne
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsDon William
 
INTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKINTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKJOLLUSUDARSHANREDDY
 

Similar to Real time-system (20)

Multiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptxMultiprocessor Real-Time Scheduling.pptx
Multiprocessor Real-Time Scheduling.pptx
 
Real Time most famous algorithms
Real Time most famous algorithmsReal Time most famous algorithms
Real Time most famous algorithms
 
multiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.pptmultiprocessor real_ time scheduling.ppt
multiprocessor real_ time scheduling.ppt
 
Chap 4.ppt
Chap 4.pptChap 4.ppt
Chap 4.ppt
 
Chap 4.ppt
Chap 4.pptChap 4.ppt
Chap 4.ppt
 
Scheduling algorithm in real time system
Scheduling algorithm in real time systemScheduling algorithm in real time system
Scheduling algorithm in real time system
 
Real time system tsp
Real time system tspReal time system tsp
Real time system tsp
 
6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf6_RealTimeScheduling.pdf
6_RealTimeScheduling.pdf
 
Rate.docx
Rate.docxRate.docx
Rate.docx
 
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
 
task_sched2.ppt
task_sched2.ppttask_sched2.ppt
task_sched2.ppt
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
RTS
RTSRTS
RTS
 
Real Time System
Real Time SystemReal Time System
Real Time System
 
A Review of Different Types of Schedulers Used In Energy Management
A Review of Different Types of Schedulers Used In Energy ManagementA Review of Different Types of Schedulers Used In Energy Management
A Review of Different Types of Schedulers Used In Energy Management
 
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
 
Multiprocessor scheduling 3
Multiprocessor scheduling 3Multiprocessor scheduling 3
Multiprocessor scheduling 3
 
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessorsTask allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
 
INTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASKINTERRUPT LATENCY AND RESPONSE OF THE TASK
INTERRUPT LATENCY AND RESPONSE OF THE TASK
 

Recently uploaded

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Real time-system

  • 1.
  • 2. A Real Time System is any information processing system which has to respond to externally generated input stimuli within a finite & specified period. In real time computing , the correctness of the computation depends not only on the logical results but also on the time at which the results are produced.
  • 3. In RTS a substantial fraction of the design effort goes into making sure that the task deadlines are met. A Deadline is a given time after a triggering event , by which a response has to be completed.
  • 4. 1. Hard real time systems 2. Soft real time systems
  • 5. Hard Real Time Systems System should meets the timings constraints.  Response time overrun leads to disastrous damage Example : Flight Control System SOFT REAL TIME SYSTEMS  Deadline overruns are tolerable, but not desired.  There are no catastrophic consequences of missing one or more deadlines.  Example : Multimedia System
  • 7. By task scheduling , we means that a computer’s resources must be shared out equitably among the users.  In general-purpose system , Round robin scheduling is used , which ensures that user does not get a disproportionate share of the computer’s services.  But Round robin scheduling approach does not work in Real Time applications because priority scheduling makes the difference in the two.
  • 8. Computation Priority Scheduling Offline Static Preemptive (precomputed) Non Online Dynamic Preemptive (Dynamically)
  • 9. A1. No task has any non- preempt able section & cost of preemption is negligible. A2. Only processing requirements are significant; memory, I/O & other resource requirements are negligible. A3. All tasks are independent. A4. The deadline of a task is equal to its period. A5. All the tasks in the task set are periodic.
  • 10. Optimal uniprocessor algorithm  Also known as Deadline Monotonic Scheduling algorithm  Tasks are preemptable  Dynamic priorities  Scheduler picks task , whose deadline is due next  A set of tasks is schedulable ( in hard real time sense ) , if the total processor utilization is not greater than 1.
  • 11. NECESSARY & SUFFICIENT CONDITION In EDF , for a task set is said to be schedulable is if it satisfy the following necessary and sufficient condition : Σ (i=1 to n) e/p ≤ 1 i i
  • 12. Consider 3 periodic processes scheduled using EDF, the following acceptance test shows that all deadlines will be met. Execution Time = ei Period = pi Process P1 1 8 P2 2 5 P3 4 10
  • 13. The utilization will be: U = { ( 1/8 ) + ( 2/5 ) + ( 4/10 ) } = 0.925 ( or 92.5 % ) The theoretical limit for any number of processes is 100% ( or less than 1 ) and so the system is schedulable .
  • 14. Different possible scenarios Sufficient but NOT necessary If di ≥ pi If di < pi Necessary and Necessary sufficient and sufficient ∑ ei/pi ≤ 1 ∑ ei/di ≤ 1 Fail Pass Schedulable Processor demand Based test
  • 15. •Optimality ADVANTAGES •Reduces number of task switches •Deteriorates badly under overload DRAWBACKS •Scheduling is more expensive •Needs smarter scheduler
  • 16. Static priority based algorithm : tasks scheduled according to priorities  Classical uniprocessor scheduling algorithm  Also called Liu-Layland algorithm or Clock driven uniprocessor algorithm  Tasks are pre-emptable
  • 17. It says that if the total utilization of the task is not greater than n(21/n -1) where n stands for number of tasks to be scheduled then RM algorithm will schedule all the task to meet their respective deadlines.  The RMA assigns priorities to the tasks based on their rate of occurrence, i.e. the lower the occurrence rate of the task the lower the priority assigned to it.
  • 18. In RMA the priority of the task is directly proportional to its rate of occurrence or it is inversely proportional to the period
  • 19. A set of periodic real time tasks would not be RMA schedulable unless they satisfy the following necessary condition:- Σ (i=1 to n) U =Σ i (i=1 to n) e /p ≤ 1 i i
  • 20. Also referred to as Liu and Layland’s condition.  It implies that a set of ‘n’ real time periodic tasks are schedulable under RMA if : Σ (i=1 to n) U ≤ n i (21/n -1)
  • 21. If the set of tasks satisfies this sufficient condition then it is guaranteed that the set of tasks would be RMA schedulable. CASES : Consider the case when • there is only 1 task in the system, i.e., n=1 U1 = 1 • there is 2 tasks in the system, i.e., n=2 U2 = 0.824 • n=∞, applying L’Hospitals Rule ln 2 = 0.69 CONCLUSION: From above computation it is clear that maximum CPU utilization that can be achieved under RMA is 1.
  • 22. Consider 3 tasks to be scheduled using RMA, the following acceptance test determines whether that all deadlines will be met or not. TASK EXECUTION PERIOD TIME T1 20 100 T2 30 150 T3 60 200
  • 23. Checking for the NECESSARY CONDITION : Σ(i=1 to n) U =Σ i (i=1 to n) e /p i i ≤ 1 U1 0.2 U2 0.2 U3 0.3 Σ(i=1 to 3) U 0.7
  • 24. Checking for the SUFFICIENT CONDITION : Σ(i=1 to n) Ui ≤ n(21/n -1) For n=3, n(21/n -1) = 3(21/3 -1) = 0.78 < 1 Ui = 0.7 < 0.78 Hence, sufficient condition is satisfied. Therefore, all the given three tasks are schedulable under RMA.
  • 25. • possesses good transient Advantages overload handling • difficult to support aperiodic and sporadic tasks Disadvantages • not optimal when task periods and deadlines differ
  • 26. EDF RMA  EDF is also called Deadline-  RMA is also called Liu- Monotonic Scheduling Layland algorithm. algorithm  Static priority algorithm  Dynamic priority algorithm  All tasks are assumed to be  Tasks do not have to be periodic periodic  Full processor can be  It lacks flexibility. For e.g. feasibly scheduled, if RMA assumes that tasks are utilization of task set is no infinitely preempt able. greater than 1  Simpler implementation, even  It requires a run time in systems without explicit overhead. Deteriorates during support for timing constraints overload conditions (periods, deadlines)