SlideShare a Scribd company logo
1 of 2
Download to read offline
What is an RTOS?
                                                             Real-time operating system

                                           An RTOS is an operating system specialized for real time operations. In order to be classifiable as an
                                    RTOS an operating system must:
                                                Have response time predictability.
                                                Be deterministic.
                                           Other qualities like speed, features set, small size etc, while important, are not what really characterize an
                                    RTOS.




                                            Any system can classified in one of the following categories.

                                            Non Real Time systems
                                            A non real time system is a system where there are no deadlines involved. Non-RT systems could be
                                    described as follow:
                                            ”A non real time system is a system where the programmed reaction to a stimulus will certainly happen
                                    sometime in the future”.

                                              Soft Real Time systems
System classification




                                              A Soft real time system is a system where not meeting a deadline can have undesirable but not catastrophic
                                    effects, a performance degradation for example. SRTs could be described as follow:
                                              ”A soft real time system is a system where the programmed reaction to a stimulus is almost always
                                    completed within a known finite time”.

                                            Hard Real Time systems
                                            An Hard Real Time (HRT) system is a system where not meeting a deadline can have catastrophic effects.
                                    HRT systems require a much more strict definition and could be described as follow:
                                            ”An hard real time system is a system where the programmed reaction to a stimulus is guaranteed to be
                                    completed within a known finite time”.

                                              Considerations
                                              As you can see speed is not the main factor, predictability and determinism are. It is also important to
                                    understand that it is not the RTOS that makes a system SRT or HRT but the system design itself, the RTOS is just a
                                    tool that you can use in the right or wrong way.
                                              Note that both SRT and HRT processes could coexist within the same system, even non critical processes
                                    without any RT constraints could be included in a design.




                                             Most RTOSs implement “fixed priority preemptive” scheduling algorithm. The strategy is very simple and
                                    can be described using few rules:
Scheduling, States and Priorities




                                                  Each thread has its own priority level, priorities are fixed and do not change unless the system is
                                                     specifically designed to do so.
                                                  Each active thread can be in one of the following states:
                                                          o Running, currently being executed by a physical core.
                                                          o Ready, ready to be executed when a physical core will become available.
                                                          o Waiting, not ready for execution because waiting for an external event. Most RTOSs split
                                                              this state in several sub-states but those are still waiting states.
                                                  Each physical core in the system always executes the highest priority thread that is ready for
                                                     execution.
                                                  When a thread becomes ready and there is a lower priority thread being executed then preemption
                                                     occurs and the higher priority thread is executed, the lower priority thread goes in the ready state.

                                            If the system has N cores the above strategy ensures that the N highest priority threads are being executed
                                    in any moment. Small embedded systems usually have a single core so there is only one running thread in any
                                    moment.

                                                © (copyright or copyleft…) http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:rtos_concepts
Exercise 1

        Read and match!

a) scheduling algorithm is …                                   1) running
b) state of executed task is …                                 2) HRT
c) system where reaction to a stimulus is guaranteed           3) deterministic
d) state of read task is …                                     4) preemptive
e) RTOS must be …                                              5) ready


        Exercise 2

        Answer the questions!

       1) Is speed the main factor of RTOS? ____________________________________________________
       2) May a RTOS execute some process simultaneously, if we have one central processing unit (CPU)?
Why? ________________________________________________________________________________________
       3) May a process have a processing time if the state of this process is ready? Why?
_________________________________________________________________________________________
       4) Is HRT homogeneous reactor test? _____________________________________________________
       5) What is the name of the most useful HRT RTOS? __________________________________________


        Exercise 3

        Choose the system for project and draw pointer!




                                             Medical project (defibrillator)
                                             Railway project (locomotive)
                                               Television-game device
                                                     Atomic pile
                                                        Kettle
                                                  Microwave oven
                 RTOS                              Automatic pilot                non-RTOS
                                                  Pocket computer
                                                      Calculator
                                                     Milking unit
                                                    Traffic lights
                                                  Massaging device




        Exercise 4

        Find and draw the good and the bad way!
                                            Scabrous way is the way to … BSOD!


               WinXP




                                           Kernel is not panic,
                QNX                        kernel is good! All fine 8-)…
                                                                                  RTOS

More Related Content

Viewers also liked

Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...
Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...
Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...Andy Ryan
 
Ekumena i anekumena ljđ
Ekumena i anekumena ljđEkumena i anekumena ljđ
Ekumena i anekumena ljđljubicadj1
 
Enabling Embedded Business Continuity
Enabling Embedded Business ContinuityEnabling Embedded Business Continuity
Enabling Embedded Business ContinuityMustafa KILIC
 
Powerconnect 6224 user's guide-es-mx
Powerconnect 6224 user's guide-es-mxPowerconnect 6224 user's guide-es-mx
Powerconnect 6224 user's guide-es-mxEzio Valencia
 
mobilike_BTK2013Q4_raporu
mobilike_BTK2013Q4_raporumobilike_BTK2013Q4_raporu
mobilike_BTK2013Q4_raporumobilike
 
Free Undelete Mac is Possible
Free Undelete Mac is PossibleFree Undelete Mac is Possible
Free Undelete Mac is Possiblestephenrocks
 
C:\fakepath\actividad compu redes
C:\fakepath\actividad compu redesC:\fakepath\actividad compu redes
C:\fakepath\actividad compu redesraul pulgar
 
Hi paa and eh rs
Hi paa and eh rsHi paa and eh rs
Hi paa and eh rssupportc2go
 
14 Open Canarias V Semana CMMI 2009
14 Open Canarias V Semana CMMI 200914 Open Canarias V Semana CMMI 2009
14 Open Canarias V Semana CMMI 2009Pepe
 
Introduction
IntroductionIntroduction
IntroductionH K
 

Viewers also liked (14)

2013_SL-Class_120409.pdf
2013_SL-Class_120409.pdf2013_SL-Class_120409.pdf
2013_SL-Class_120409.pdf
 
Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...
Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...
Swapshop 2014: Five Easy LSA events for libraries - Rebekah Polding, London S...
 
Ekumena i anekumena ljđ
Ekumena i anekumena ljđEkumena i anekumena ljđ
Ekumena i anekumena ljđ
 
Enabling Embedded Business Continuity
Enabling Embedded Business ContinuityEnabling Embedded Business Continuity
Enabling Embedded Business Continuity
 
Powerconnect 6224 user's guide-es-mx
Powerconnect 6224 user's guide-es-mxPowerconnect 6224 user's guide-es-mx
Powerconnect 6224 user's guide-es-mx
 
mobilike_BTK2013Q4_raporu
mobilike_BTK2013Q4_raporumobilike_BTK2013Q4_raporu
mobilike_BTK2013Q4_raporu
 
Free Undelete Mac is Possible
Free Undelete Mac is PossibleFree Undelete Mac is Possible
Free Undelete Mac is Possible
 
C:\fakepath\actividad compu redes
C:\fakepath\actividad compu redesC:\fakepath\actividad compu redes
C:\fakepath\actividad compu redes
 
Hi paa and eh rs
Hi paa and eh rsHi paa and eh rs
Hi paa and eh rs
 
14 Open Canarias V Semana CMMI 2009
14 Open Canarias V Semana CMMI 200914 Open Canarias V Semana CMMI 2009
14 Open Canarias V Semana CMMI 2009
 
Domain Name Service
Domain Name ServiceDomain Name Service
Domain Name Service
 
Software testing
Software testingSoftware testing
Software testing
 
Mediamplify Presentation
Mediamplify PresentationMediamplify Presentation
Mediamplify Presentation
 
Introduction
IntroductionIntroduction
Introduction
 

Similar to RTOS

Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
What is operating system
What is operating systemWhat is operating system
What is operating systemvmahesmca
 
What is operating system
What is operating systemWhat is operating system
What is operating systemvmahesmca
 
Real time operating system
Real time operating systemReal time operating system
Real time operating systemKhuram Shahzad
 
Real time system basic concept
Real time system basic conceptReal time system basic concept
Real time system basic conceptMOUMITA GHOSH
 
There are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdfThere are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdfankitmobileshop235
 
embedded system CHAPTER four about design .pdf
embedded system CHAPTER four about design .pdfembedded system CHAPTER four about design .pdf
embedded system CHAPTER four about design .pdfabdulkerimaragaw936
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga) Nagarajan
 
presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)chetan mudenoor
 
pptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdfpptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdfJaganBehera8
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating SystemsPawandeep Kaur
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
OVERVIEW OF RTOS
OVERVIEW OF RTOSOVERVIEW OF RTOS
OVERVIEW OF RTOStaruian
 

Similar to RTOS (20)

Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
Real timedata
Real timedataReal timedata
Real timedata
 
Linux Internals - Interview essentials 4.0
Linux Internals - Interview essentials 4.0Linux Internals - Interview essentials 4.0
Linux Internals - Interview essentials 4.0
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Unit v
Unit vUnit v
Unit v
 
Real time system basic concept
Real time system basic conceptReal time system basic concept
Real time system basic concept
 
There are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdfThere are many operating systemsReal-Time Operating SystemReal-t.pdf
There are many operating systemsReal-Time Operating SystemReal-t.pdf
 
embedded system CHAPTER four about design .pdf
embedded system CHAPTER four about design .pdfembedded system CHAPTER four about design .pdf
embedded system CHAPTER four about design .pdf
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Real time os(suga)
Real time os(suga) Real time os(suga)
Real time os(suga)
 
Presentation1
Presentation1Presentation1
Presentation1
 
presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)presentation on real time operating system(RTOS's)
presentation on real time operating system(RTOS's)
 
pptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdfpptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdf
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
OVERVIEW OF RTOS
OVERVIEW OF RTOSOVERVIEW OF RTOS
OVERVIEW OF RTOS
 

More from sfu-kras

Cloud computing questions
Cloud computing questionsCloud computing questions
Cloud computing questionssfu-kras
 
Cloud computing
Cloud computingCloud computing
Cloud computingsfu-kras
 
Improving ambiguity resolution
Improving ambiguity resolutionImproving ambiguity resolution
Improving ambiguity resolutionsfu-kras
 
Tutorial Nequick
Tutorial NequickTutorial Nequick
Tutorial Nequicksfu-kras
 
Phantom OS Tutorial
Phantom OS TutorialPhantom OS Tutorial
Phantom OS Tutorialsfu-kras
 
Task satellite
Task satelliteTask satellite
Task satellitesfu-kras
 
Task satellite
Task satelliteTask satellite
Task satellitesfu-kras
 
Os gnu-questions
Os gnu-questionsOs gnu-questions
Os gnu-questionssfu-kras
 
Os ui-tasks
Os ui-tasksOs ui-tasks
Os ui-taskssfu-kras
 
OS-description
OS-descriptionOS-description
OS-descriptionsfu-kras
 

More from sfu-kras (12)

Boev
BoevBoev
Boev
 
Cloud computing questions
Cloud computing questionsCloud computing questions
Cloud computing questions
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Improving ambiguity resolution
Improving ambiguity resolutionImproving ambiguity resolution
Improving ambiguity resolution
 
Tutorial Nequick
Tutorial NequickTutorial Nequick
Tutorial Nequick
 
Phantom OS Tutorial
Phantom OS TutorialPhantom OS Tutorial
Phantom OS Tutorial
 
Task satellite
Task satelliteTask satellite
Task satellite
 
Task satellite
Task satelliteTask satellite
Task satellite
 
Os gnu-questions
Os gnu-questionsOs gnu-questions
Os gnu-questions
 
Os ui-tasks
Os ui-tasksOs ui-tasks
Os ui-tasks
 
OS-description
OS-descriptionOS-description
OS-description
 
OS-tasks
OS-tasksOS-tasks
OS-tasks
 

Recently uploaded

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

RTOS

  • 1. What is an RTOS? Real-time operating system An RTOS is an operating system specialized for real time operations. In order to be classifiable as an RTOS an operating system must:  Have response time predictability.  Be deterministic. Other qualities like speed, features set, small size etc, while important, are not what really characterize an RTOS. Any system can classified in one of the following categories. Non Real Time systems A non real time system is a system where there are no deadlines involved. Non-RT systems could be described as follow: ”A non real time system is a system where the programmed reaction to a stimulus will certainly happen sometime in the future”. Soft Real Time systems System classification A Soft real time system is a system where not meeting a deadline can have undesirable but not catastrophic effects, a performance degradation for example. SRTs could be described as follow: ”A soft real time system is a system where the programmed reaction to a stimulus is almost always completed within a known finite time”. Hard Real Time systems An Hard Real Time (HRT) system is a system where not meeting a deadline can have catastrophic effects. HRT systems require a much more strict definition and could be described as follow: ”An hard real time system is a system where the programmed reaction to a stimulus is guaranteed to be completed within a known finite time”. Considerations As you can see speed is not the main factor, predictability and determinism are. It is also important to understand that it is not the RTOS that makes a system SRT or HRT but the system design itself, the RTOS is just a tool that you can use in the right or wrong way. Note that both SRT and HRT processes could coexist within the same system, even non critical processes without any RT constraints could be included in a design. Most RTOSs implement “fixed priority preemptive” scheduling algorithm. The strategy is very simple and can be described using few rules: Scheduling, States and Priorities  Each thread has its own priority level, priorities are fixed and do not change unless the system is specifically designed to do so.  Each active thread can be in one of the following states: o Running, currently being executed by a physical core. o Ready, ready to be executed when a physical core will become available. o Waiting, not ready for execution because waiting for an external event. Most RTOSs split this state in several sub-states but those are still waiting states.  Each physical core in the system always executes the highest priority thread that is ready for execution.  When a thread becomes ready and there is a lower priority thread being executed then preemption occurs and the higher priority thread is executed, the lower priority thread goes in the ready state. If the system has N cores the above strategy ensures that the N highest priority threads are being executed in any moment. Small embedded systems usually have a single core so there is only one running thread in any moment. © (copyright or copyleft…) http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:rtos_concepts
  • 2. Exercise 1 Read and match! a) scheduling algorithm is … 1) running b) state of executed task is … 2) HRT c) system where reaction to a stimulus is guaranteed 3) deterministic d) state of read task is … 4) preemptive e) RTOS must be … 5) ready Exercise 2 Answer the questions! 1) Is speed the main factor of RTOS? ____________________________________________________ 2) May a RTOS execute some process simultaneously, if we have one central processing unit (CPU)? Why? ________________________________________________________________________________________ 3) May a process have a processing time if the state of this process is ready? Why? _________________________________________________________________________________________ 4) Is HRT homogeneous reactor test? _____________________________________________________ 5) What is the name of the most useful HRT RTOS? __________________________________________ Exercise 3 Choose the system for project and draw pointer! Medical project (defibrillator) Railway project (locomotive) Television-game device Atomic pile Kettle Microwave oven RTOS Automatic pilot non-RTOS Pocket computer Calculator Milking unit Traffic lights Massaging device Exercise 4 Find and draw the good and the bad way! Scabrous way is the way to … BSOD! WinXP Kernel is not panic, QNX kernel is good! All fine 8-)… RTOS