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

Logics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiLogics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiShaishavShah8
 
Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architectureVidhi603146
 
Ixiaexplorer
IxiaexplorerIxiaexplorer
Ixiaexplorernlekh
 
Why TPM in Automotive?
Why TPM in Automotive?Why TPM in Automotive?
Why TPM in Automotive?Alan Tatourian
 
Random Matrix Theory in Array Signal Processing: Application Examples
Random Matrix Theory in Array Signal Processing: Application ExamplesRandom Matrix Theory in Array Signal Processing: Application Examples
Random Matrix Theory in Array Signal Processing: Application ExamplesFörderverein Technische Fakultät
 
Fundamentals of sdh
Fundamentals of sdhFundamentals of sdh
Fundamentals of sdhsreejithkt
 
Deploy STM32 family on Zephyr - SFO17-102
Deploy STM32 family on Zephyr - SFO17-102Deploy STM32 family on Zephyr - SFO17-102
Deploy STM32 family on Zephyr - SFO17-102Linaro
 
ARM Processor architecture
ARM Processor  architectureARM Processor  architecture
ARM Processor architecturerajkciitr
 
Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot LayerMaulik Patel
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
Hardware Software Codesign
Hardware Software CodesignHardware Software Codesign
Hardware Software Codesigndestruck
 

What's hot (20)

Isa bus nptel
Isa bus nptelIsa bus nptel
Isa bus nptel
 
Logics for non monotonic reasoning-ai
Logics for non monotonic reasoning-aiLogics for non monotonic reasoning-ai
Logics for non monotonic reasoning-ai
 
Comparison between-ipv6-and-6 lowpan
Comparison between-ipv6-and-6 lowpanComparison between-ipv6-and-6 lowpan
Comparison between-ipv6-and-6 lowpan
 
Sensor node hardware and network architecture
Sensor node hardware and network architectureSensor node hardware and network architecture
Sensor node hardware and network architecture
 
Ixiaexplorer
IxiaexplorerIxiaexplorer
Ixiaexplorer
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
RTOS
RTOSRTOS
RTOS
 
Why TPM in Automotive?
Why TPM in Automotive?Why TPM in Automotive?
Why TPM in Automotive?
 
Random Matrix Theory in Array Signal Processing: Application Examples
Random Matrix Theory in Array Signal Processing: Application ExamplesRandom Matrix Theory in Array Signal Processing: Application Examples
Random Matrix Theory in Array Signal Processing: Application Examples
 
FlexRay
FlexRayFlexRay
FlexRay
 
Ch1 1
Ch1 1Ch1 1
Ch1 1
 
Fundamentals of sdh
Fundamentals of sdhFundamentals of sdh
Fundamentals of sdh
 
Deploy STM32 family on Zephyr - SFO17-102
Deploy STM32 family on Zephyr - SFO17-102Deploy STM32 family on Zephyr - SFO17-102
Deploy STM32 family on Zephyr - SFO17-102
 
ARM Processor architecture
ARM Processor  architectureARM Processor  architecture
ARM Processor architecture
 
Mobile Transpot Layer
Mobile Transpot LayerMobile Transpot Layer
Mobile Transpot Layer
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
How to choose an RTOS?
How to choose an RTOS?How to choose an RTOS?
How to choose an RTOS?
 
Priority inversion
Priority inversionPriority inversion
Priority inversion
 
Hardware Software Codesign
Hardware Software CodesignHardware Software Codesign
Hardware Software Codesign
 
Lecture5c
Lecture5cLecture5c
Lecture5c
 

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

Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKUXDXConf
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreelreely ones
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfEasyPrinterHelp
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 

Recently uploaded (20)

Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 

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)