SlideShare ist ein Scribd-Unternehmen logo
1 von 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)

Weitere ähnliche Inhalte

Was ist angesagt?

MSC(-S) R12 configuration (2).pdf
MSC(-S) R12 configuration (2).pdfMSC(-S) R12 configuration (2).pdf
MSC(-S) R12 configuration (2).pdfssuseraab3a8
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)Fatbardh Hysa
 
9 semiconductor memory
9 semiconductor memory9 semiconductor memory
9 semiconductor memoryUsha Mehta
 
clock synchronization in Distributed System
clock synchronization in Distributed System clock synchronization in Distributed System
clock synchronization in Distributed System Harshita Ved
 
resource management
  resource management  resource management
resource managementAshish Kumar
 
Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Dr. SELVAGANESAN S
 
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...ArunChokkalingam
 
Thread and method_2010
Thread and method_2010Thread and method_2010
Thread and method_2010敬倫 林
 
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...ArunChokkalingam
 
Content addressable-memory
Content addressable-memoryContent addressable-memory
Content addressable-memorySaravanan Ns
 
Advanced Operating System Lecture Notes
Advanced Operating System Lecture NotesAdvanced Operating System Lecture Notes
Advanced Operating System Lecture NotesAnirudhan Guru
 
Network on chip by shoeb
Network on chip by shoebNetwork on chip by shoeb
Network on chip by shoebShoeb Ahmed
 

Was ist angesagt? (20)

MSC(-S) R12 configuration (2).pdf
MSC(-S) R12 configuration (2).pdfMSC(-S) R12 configuration (2).pdf
MSC(-S) R12 configuration (2).pdf
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)
 
9 semiconductor memory
9 semiconductor memory9 semiconductor memory
9 semiconductor memory
 
clock synchronization in Distributed System
clock synchronization in Distributed System clock synchronization in Distributed System
clock synchronization in Distributed System
 
RTOS Basic Concepts
RTOS Basic ConceptsRTOS Basic Concepts
RTOS Basic Concepts
 
resource management
  resource management  resource management
resource management
 
Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer Computer Networks Unit 1 Introduction and Physical Layer
Computer Networks Unit 1 Introduction and Physical Layer
 
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
WSN network architecture -Sensor Network Scenarios & Transceiver Design Consi...
 
Fault tolerance techniques
Fault tolerance techniquesFault tolerance techniques
Fault tolerance techniques
 
Thread and method_2010
Thread and method_2010Thread and method_2010
Thread and method_2010
 
Data link layer
Data link layer Data link layer
Data link layer
 
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
 
Rs 422
Rs 422Rs 422
Rs 422
 
Energy efficient routing protocol
Energy efficient routing protocolEnergy efficient routing protocol
Energy efficient routing protocol
 
Content addressable-memory
Content addressable-memoryContent addressable-memory
Content addressable-memory
 
Stop And Wait
Stop And WaitStop And Wait
Stop And Wait
 
Csma cd and csma-ca
Csma cd and csma-caCsma cd and csma-ca
Csma cd and csma-ca
 
Medium access control unit 3-33
Medium access control  unit 3-33Medium access control  unit 3-33
Medium access control unit 3-33
 
Advanced Operating System Lecture Notes
Advanced Operating System Lecture NotesAdvanced Operating System Lecture Notes
Advanced Operating System Lecture Notes
 
Network on chip by shoeb
Network on chip by shoebNetwork on chip by shoeb
Network on chip by shoeb
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
[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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
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
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
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
 
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
 
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
 
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
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Kürzlich hochgeladen (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
[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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
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
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 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
 
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
 
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...
 
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...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

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)