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

Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 

Recently uploaded (20)

Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 

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