SlideShare uma empresa Scribd logo
1 de 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)

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Load flow study
Load flow studyLoad flow study
Load flow study
 
Microwave waveguides 1st 1
Microwave waveguides 1st 1Microwave waveguides 1st 1
Microwave waveguides 1st 1
 
Gamma & Beta functions
Gamma & Beta functionsGamma & Beta functions
Gamma & Beta functions
 
BJT- Emitter Follower Circuit
BJT- Emitter Follower CircuitBJT- Emitter Follower Circuit
BJT- Emitter Follower Circuit
 
Tuned amplifiers
Tuned amplifiersTuned amplifiers
Tuned amplifiers
 
Presentation on Op-amp by Sourabh kumar
Presentation on Op-amp by Sourabh kumarPresentation on Op-amp by Sourabh kumar
Presentation on Op-amp by Sourabh kumar
 
Design of FIR Filters
Design of FIR FiltersDesign of FIR Filters
Design of FIR Filters
 
One sided z transform
One sided z transformOne sided z transform
One sided z transform
 
Digital Signal Processing Lab Manual ECE students
Digital Signal Processing Lab Manual ECE studentsDigital Signal Processing Lab Manual ECE students
Digital Signal Processing Lab Manual ECE students
 
Magnetic boundary conditions 3rd 4
Magnetic boundary conditions 3rd 4Magnetic boundary conditions 3rd 4
Magnetic boundary conditions 3rd 4
 
Frequency response
Frequency responseFrequency response
Frequency response
 
Choice of converter configuration
Choice of converter configurationChoice of converter configuration
Choice of converter configuration
 
Dif fft
Dif fftDif fft
Dif fft
 
Sinusoidal pwm
Sinusoidal pwmSinusoidal pwm
Sinusoidal pwm
 
Theory Communication
Theory CommunicationTheory Communication
Theory Communication
 
Eca unit 6
Eca unit 6Eca unit 6
Eca unit 6
 
Signals and systems-1
Signals and systems-1Signals and systems-1
Signals and systems-1
 
Nec 602 unit ii Random Variables and Random process
Nec 602 unit ii Random Variables and Random processNec 602 unit ii Random Variables and Random process
Nec 602 unit ii Random Variables and Random process
 
Tuned amplifire
Tuned amplifireTuned amplifire
Tuned amplifire
 
Per unit calculation
Per unit calculationPer unit calculation
Per unit calculation
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

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)