SlideShare una empresa de Scribd logo
1 de 32
REAL TIME OPERATING
       SYSTEM
TOPICS OF DISCUSSION.

• WHAT IS RTOS.

• COMPARISON BETWEEN RTOS AND GENERAL OPERATING SYSTEMS.

• TYPES OF RTOS.

• CHARACTERISTICS OF RTOS.

• FUNCTIONS OF RTOS.

• APPLICATIONS OF RTOS.

• EXAMPLE OF SOME RTOS

• CONCLUSION.
What is Real Time ?

• “ Real time in operating systems:

  The ability of the operating system to provide a
  required level of service in a bounded response
  time.”
                        - POSIX Standard 1003.1
WHAT IS RTOS.
• It responds to inputs immediately(Real-Time).
• Here the task is completed within a specified time delay.
• In real life situations like controlling traffic signal or a
  nuclear reactor or an aircraft,
• The operating system has to respond quickly.
What a RTOS is not
• Real time computing is equivalent to fast computing.
• Real time systems operate in a static environment
• Real time programming involves assembly coding, priority
  interrupt programming, writing device drivers.
Soft RTOS…
• In a soft real-time system, it is considered undesirable, but not
  catastrophic, if deadlines are occasionally missed.
• Also known as “best effort” systems
• Most modern operating systems can serve as the base for a
  soft real time systems.
• Examples:
   –   multimedia transmission and reception,
   –   networking, telecom (cellular) networks,
   –   web sites and services
   –   computer games.
Hard RTOS…
• A hard real-time system has time-critical deadlines that must
  be met; otherwise a catastrophic system failure can occur.
• Absolutely, positively, first time every time
• Requires formal verification/guarantees of being to always
  meet its hard deadlines (except for fatal errors).
• Examples:
   – air traffic control
   – vehicle subsystems control
   – Nuclear power plant control
CHARACTERISTICS OF RTOS.



        Consistency       Reliability




    Scalability                 Predictability




                  Performance
FUNCTIONS OF RTOS

•   Task management
•   Scheduling.
•   Resource Allocation.
•   Interrupt Handling.
Task management

• In Real Time Applications the Process is called as Task
  which takes execution time and occupies memory.

• Task management is the process of managing tasks
  through its life cycle.
Task States

Pended      Ready      Delayed




           Suspended       Run
Task/Process States
• Each task/Process can belong to one and only one
  state
• The Scheduler only operates on the processes in the
  Ready state
• There is a single process in the Run/current state at
  any time.
• Transitions to and from the Ready queue are affected
  as a part of the execution of the RTOS
  resource/object services or as a result of timing
  events
Typical Task Operations

• creating and deleting tasks,

• controlling task scheduling, and

• obtaining task information.
Scheduling in RTOS
• More information about the tasks are known
   – No of tasks
   – Resource Requirements
   – Release Time
   – Execution time
   – Deadlines
• Being a more deterministic system better scheduling
  algorithms can be devised.
Scheduling Algorithms in RTOS

• Clock Driven Scheduling

• Weighted Round Robin Scheduling

• Priority Scheduling
  (Greedy / List / Event Driven)
Scheduling Algorithms in RTOS (contd)

• Clock Driven
   – All parameters about jobs (release time/ execution
     time/deadline) known in advance.
   – Schedule can be computed offline or at some regular time
     instances.
   – Minimal runtime overhead.
   – Not suitable for many applications.
Scheduling Algorithms in RTOS (contd)

• Weighted Round Robin
  – Jobs scheduled in FIFO manner
  – Time quantum given to jobs is proportional to it’s weight
  – Example use : High speed switching network
      • QOS guarantee.
  – Not suitable for precedence constrained jobs.
      • Job A can run only after Job B. No point in giving time
        quantum to Job B before Job A.
Scheduling Algorithms in RTOS (contd)

• Priority Scheduling
  (Greedy/List/Event Driven)
    – Processor never left idle when there are ready tasks
    – Processor allocated to processes according to priorities
    – Priorities
       • static   - at design time
       • Dynamic - at runtime
Priority Scheduling
• Earliest Deadline First (EDF)
   – Process with earliest deadline given highest priority
• Least Slack Time First (LSF)
   – slack = relative deadline – execution left
• Rate Monotonic Scheduling (RMS)
   – For periodic tasks
   – Tasks priority inversely proportional to it’s period
Resource Allocation in RTOS
•   Resource Allocation
    – The issues with scheduling applicable here.
    – Resources can be allocated in
       • Weighted Round Robin
       • Priority Based
• Some resources are non preemptible
    – Example : semaphores
• Priority Inversion if priority scheduling is used
Other RTOS issues
• Interrupt Latency should be very small
   – Kernel has to respond to real time events
   – Interrupts should be disabled for minimum possible time
• For embedded applications Kernel Size should be small
   – Should fit in ROM
• Sophisticated features can be removed
   – No Virtual Memory
   – No Protection
INTERRUPTS HANDLING OF RTOS.

• An interrupt is a signal from a device attached to a computer or
  from a program with in a computer that causes the main program
  that is operating system to stop and figure out what to do next.

•    Interrupts cause the processor to suspend the operations
    whatever it is doing instead execute the code that will respond to
    the event whatever caused the interrupt.
APPLICATIONS OF RTOS.


• Almost all the modern telecommunication systems make use of
  RTOS .
• Radar systems, network switching control systems, satellite
  monitoring systems, satellite launch-control and maneuvering
  mechanisms, global positioning systems all have their roots in RTOS.
• Now a days RTOS are increasingly finding use in strategic and
  military operations. These are used in guided missile launching units,
  track-and-trace spy satellites, etc.
Comparison of RTOS
                 VXWorks            pSOS            eCos
Scheduler        Preemptive       Preemptive      Preemptive
Synchronizatio   No condition         Y                Y
n mechanism        variable
POSIX support         Y               Y              Linux
Scalable              Y               Y                Y
Custom hw            BSP             BSP            HAL, I/O
support                                             package
Kernel size            -            16KB               -
Multiprocessor      VxMP/        PSOS+m kernel     Y/only basic
support            VxFusion
                                                 support (SMP)
                 (accessories)
VxWorks
• Created by Wind River.
• Current Version: VxWorks 6.0 
• VxWorks is the most established and most widely deployed
  device software operating system.
• Currently there are more than 300 million devices that are
  VxWorks enabled.
• The core attributes of VxWorks, include high performance,
  reliability, determinism, low latency and scalability.
VxWorks (contd..)
• Enhanced error management
• Backward compatibility to previous versions features
  for exception handling and template support
• Extensive POSIX 1003.1, .1b, .1c compatibility
• Scheduling
   – Uses preemptive priority with round robin scheduling to
     accommodate for both
      • Real time processes
      • Non-real time processes
VxWorks (contd..)
• Memory Protection
  – MMU based memory protection.


• Reduced Context Switch time
  – Saves only those register windows that are actually in use
  – When a task’s context is restored, only the relevant
    register window is restored
  – To increase response time, it saves the register windows
    in a register cache – useful for recurring tasks
microkernel
• Several types of semaphores
  – binary,
  – counting
  – mutual exclusion with priority inheritance
• 256 priorities
• POSIX compliant
Microkernel features (cont.)
• High scalability
• Incremental linking and loading of
  components
• Fast, efficient interrupt and exception
  handling
• Optimized floating-point support
• Dynamic memory management
• System clock and timing facilities
A note on POSIX

• Portable Operating System Interface
• set of standards under ISO/ IEEE
  charter
• POSIX standard 1003.1b, (formerly
  called 1003.4) for RTOS
• makes it easier to move applications
  from one operating system to another.
CONCLUSION.

RTOS have been the heroes in most of the technological
areas, right from fuel injection system to nuclear reactor
control, satellite control, global positioning systems, and
fully equipped high-tech warfare aircrafts. And the best is
yet to come!

Más contenido relacionado

La actualidad más candente

Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architectureFaisal Hussain
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos conceptsanishgoel
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
Congestion avoidance in TCP
Congestion avoidance in TCPCongestion avoidance in TCP
Congestion avoidance in TCPselvakumar_b1985
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptxSanad Bhowmik
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)Prakhar Maurya
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 
Multiplexing in mobile computing
Multiplexing in mobile computingMultiplexing in mobile computing
Multiplexing in mobile computingZituSahu
 

La actualidad más candente (20)

SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Semaphores
SemaphoresSemaphores
Semaphores
 
Semaphore
SemaphoreSemaphore
Semaphore
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Cache memory
Cache memoryCache memory
Cache memory
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Congestion avoidance in TCP
Congestion avoidance in TCPCongestion avoidance in TCP
Congestion avoidance in TCP
 
computer network OSI layer
computer network OSI layercomputer network OSI layer
computer network OSI layer
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
Interrupts
InterruptsInterrupts
Interrupts
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Round Robin Algorithm.pptx
Round Robin Algorithm.pptxRound Robin Algorithm.pptx
Round Robin Algorithm.pptx
 
Threads (operating System)
Threads (operating System)Threads (operating System)
Threads (operating System)
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Multiplexing in mobile computing
Multiplexing in mobile computingMultiplexing in mobile computing
Multiplexing in mobile computing
 

Destacado

Memory allocation for real time operating system
Memory allocation for real time operating systemMemory allocation for real time operating system
Memory allocation for real time operating systemAsma'a Lafi
 
Real Time Systems & RTOS
Real Time Systems & RTOSReal Time Systems & RTOS
Real Time Systems & RTOSVishwa Mohan
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic conceptsStudent
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2iamumr
 
Implementing a UEFI BIOS into an Embedded System
Implementing a UEFI BIOS into an Embedded SystemImplementing a UEFI BIOS into an Embedded System
Implementing a UEFI BIOS into an Embedded Systeminsydesoftware
 
UEFI Spec Version 2.4 Facilitates Secure Update
UEFI Spec Version 2.4 Facilitates Secure UpdateUEFI Spec Version 2.4 Facilitates Secure Update
UEFI Spec Version 2.4 Facilitates Secure Updateinsydesoftware
 
Unified Extensible Firmware Interface (UEFI)
Unified Extensible Firmware Interface (UEFI)Unified Extensible Firmware Interface (UEFI)
Unified Extensible Firmware Interface (UEFI)k33a
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 

Destacado (17)

RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
RTOS Basic Concepts
RTOS Basic ConceptsRTOS Basic Concepts
RTOS Basic Concepts
 
Memory allocation for real time operating system
Memory allocation for real time operating systemMemory allocation for real time operating system
Memory allocation for real time operating system
 
Real Time Systems & RTOS
Real Time Systems & RTOSReal Time Systems & RTOS
Real Time Systems & RTOS
 
RTOS
RTOSRTOS
RTOS
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic concepts
 
Uefi and bios
Uefi and biosUefi and bios
Uefi and bios
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Bios uefi y legacy
Bios uefi y legacyBios uefi y legacy
Bios uefi y legacy
 
Implementing a UEFI BIOS into an Embedded System
Implementing a UEFI BIOS into an Embedded SystemImplementing a UEFI BIOS into an Embedded System
Implementing a UEFI BIOS into an Embedded System
 
UEFI presentation
UEFI presentationUEFI presentation
UEFI presentation
 
UEFI Spec Version 2.4 Facilitates Secure Update
UEFI Spec Version 2.4 Facilitates Secure UpdateUEFI Spec Version 2.4 Facilitates Secure Update
UEFI Spec Version 2.4 Facilitates Secure Update
 
Grub
GrubGrub
Grub
 
Unified Extensible Firmware Interface (UEFI)
Unified Extensible Firmware Interface (UEFI)Unified Extensible Firmware Interface (UEFI)
Unified Extensible Firmware Interface (UEFI)
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
Boot process: BIOS vs UEFI
Boot process: BIOS vs UEFIBoot process: BIOS vs UEFI
Boot process: BIOS vs UEFI
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 

Similar a Real time Operating System

Real-Time Operating Systems Real-Time Operating Systems RTOS .ppt
Real-Time Operating Systems Real-Time Operating Systems RTOS .pptReal-Time Operating Systems Real-Time Operating Systems RTOS .ppt
Real-Time Operating Systems Real-Time Operating Systems RTOS .pptlematadese670
 
Real time operating system
Real time operating systemReal time operating system
Real time operating systemKhuram Shahzad
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating SystemsPawandeep Kaur
 
rtosbyshibu-131026100746-phpapp01.pdf
rtosbyshibu-131026100746-phpapp01.pdfrtosbyshibu-131026100746-phpapp01.pdf
rtosbyshibu-131026100746-phpapp01.pdfreemasajin1
 
Real time system basic concept
Real time system basic conceptReal time system basic concept
Real time system basic conceptMOUMITA GHOSH
 
pptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdfpptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdfJaganBehera8
 
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
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsDr.YNM
 
FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)Naren Chandra
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systemsleo3004
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating SystemSharad Pandey
 
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0Michael Christofferson
 

Similar a Real time Operating System (20)

Real-Time Operating Systems Real-Time Operating Systems RTOS .ppt
Real-Time Operating Systems Real-Time Operating Systems RTOS .pptReal-Time Operating Systems Real-Time Operating Systems RTOS .ppt
Real-Time Operating Systems Real-Time Operating Systems RTOS .ppt
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Real time operating system
Real time operating systemReal time operating system
Real time operating system
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
 
Rtos by shibu
Rtos by shibuRtos by shibu
Rtos by shibu
 
Rtos ss
Rtos ssRtos ss
Rtos ss
 
rtosbyshibu-131026100746-phpapp01.pdf
rtosbyshibu-131026100746-phpapp01.pdfrtosbyshibu-131026100746-phpapp01.pdf
rtosbyshibu-131026100746-phpapp01.pdf
 
RTOS [Autosaved].pptx
RTOS [Autosaved].pptxRTOS [Autosaved].pptx
RTOS [Autosaved].pptx
 
Rtos 2
Rtos 2Rtos 2
Rtos 2
 
Real time system basic concept
Real time system basic conceptReal time system basic concept
Real time system basic concept
 
pptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdfpptonrtosbychetan001-140213003314-phpapp02.pdf
pptonrtosbychetan001-140213003314-phpapp02.pdf
 
Mastering Real-time Linux
Mastering Real-time LinuxMastering Real-time Linux
Mastering Real-time Linux
 
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)
 
UNIT-I-RTOS and Concepts
UNIT-I-RTOS and ConceptsUNIT-I-RTOS and Concepts
UNIT-I-RTOS and Concepts
 
FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)FreeRTOS basics (Real time Operating System)
FreeRTOS basics (Real time Operating System)
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
Real Time Operating System
Real Time Operating SystemReal Time Operating System
Real Time Operating System
 
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0Four Ways to Improve Linux Performance IEEE Webinar, R2.0
Four Ways to Improve Linux Performance IEEE Webinar, R2.0
 
UNIT V PPT.ppt
UNIT V PPT.pptUNIT V PPT.ppt
UNIT V PPT.ppt
 
rtos.ppt
rtos.pptrtos.ppt
rtos.ppt
 

Más de Tech_MX

Virtual base class
Virtual base classVirtual base class
Virtual base classTech_MX
 
Theory of estimation
Theory of estimationTheory of estimation
Theory of estimationTech_MX
 
Templates in C++
Templates in C++Templates in C++
Templates in C++Tech_MX
 
String & its application
String & its applicationString & its application
String & its applicationTech_MX
 
Statistical quality__control_2
Statistical  quality__control_2Statistical  quality__control_2
Statistical quality__control_2Tech_MX
 
Stack data structure
Stack data structureStack data structure
Stack data structureTech_MX
 
Stack Data Structure & It's Application
Stack Data Structure & It's Application Stack Data Structure & It's Application
Stack Data Structure & It's Application Tech_MX
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applicationsTech_MX
 
Set data structure 2
Set data structure 2Set data structure 2
Set data structure 2Tech_MX
 
Set data structure
Set data structure Set data structure
Set data structure Tech_MX
 
Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Tech_MX
 
Motherboard of a pc
Motherboard of a pcMotherboard of a pc
Motherboard of a pcTech_MX
 
More on Lex
More on LexMore on Lex
More on LexTech_MX
 
MultiMedia dbms
MultiMedia dbmsMultiMedia dbms
MultiMedia dbmsTech_MX
 
Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)Tech_MX
 
Memory dbms
Memory dbmsMemory dbms
Memory dbmsTech_MX
 

Más de Tech_MX (20)

Virtual base class
Virtual base classVirtual base class
Virtual base class
 
Uid
UidUid
Uid
 
Theory of estimation
Theory of estimationTheory of estimation
Theory of estimation
 
Templates in C++
Templates in C++Templates in C++
Templates in C++
 
String & its application
String & its applicationString & its application
String & its application
 
Statistical quality__control_2
Statistical  quality__control_2Statistical  quality__control_2
Statistical quality__control_2
 
Stack data structure
Stack data structureStack data structure
Stack data structure
 
Stack Data Structure & It's Application
Stack Data Structure & It's Application Stack Data Structure & It's Application
Stack Data Structure & It's Application
 
Spss
SpssSpss
Spss
 
Spanning trees & applications
Spanning trees & applicationsSpanning trees & applications
Spanning trees & applications
 
Set data structure 2
Set data structure 2Set data structure 2
Set data structure 2
 
Set data structure
Set data structure Set data structure
Set data structure
 
Parsing
ParsingParsing
Parsing
 
Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)Mouse interrupts (Assembly Language & C)
Mouse interrupts (Assembly Language & C)
 
Motherboard of a pc
Motherboard of a pcMotherboard of a pc
Motherboard of a pc
 
More on Lex
More on LexMore on Lex
More on Lex
 
MultiMedia dbms
MultiMedia dbmsMultiMedia dbms
MultiMedia dbms
 
Merging files (Data Structure)
Merging files (Data Structure)Merging files (Data Structure)
Merging files (Data Structure)
 
Memory dbms
Memory dbmsMemory dbms
Memory dbms
 
Linkers
LinkersLinkers
Linkers
 

Último

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
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
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 

Último (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 

Real time Operating System

  • 2. TOPICS OF DISCUSSION. • WHAT IS RTOS. • COMPARISON BETWEEN RTOS AND GENERAL OPERATING SYSTEMS. • TYPES OF RTOS. • CHARACTERISTICS OF RTOS. • FUNCTIONS OF RTOS. • APPLICATIONS OF RTOS. • EXAMPLE OF SOME RTOS • CONCLUSION.
  • 3. What is Real Time ? • “ Real time in operating systems: The ability of the operating system to provide a required level of service in a bounded response time.” - POSIX Standard 1003.1
  • 4. WHAT IS RTOS. • It responds to inputs immediately(Real-Time). • Here the task is completed within a specified time delay. • In real life situations like controlling traffic signal or a nuclear reactor or an aircraft, • The operating system has to respond quickly.
  • 5. What a RTOS is not • Real time computing is equivalent to fast computing. • Real time systems operate in a static environment • Real time programming involves assembly coding, priority interrupt programming, writing device drivers.
  • 6. Soft RTOS… • In a soft real-time system, it is considered undesirable, but not catastrophic, if deadlines are occasionally missed. • Also known as “best effort” systems • Most modern operating systems can serve as the base for a soft real time systems. • Examples: – multimedia transmission and reception, – networking, telecom (cellular) networks, – web sites and services – computer games.
  • 7. Hard RTOS… • A hard real-time system has time-critical deadlines that must be met; otherwise a catastrophic system failure can occur. • Absolutely, positively, first time every time • Requires formal verification/guarantees of being to always meet its hard deadlines (except for fatal errors). • Examples: – air traffic control – vehicle subsystems control – Nuclear power plant control
  • 8. CHARACTERISTICS OF RTOS. Consistency Reliability Scalability Predictability Performance
  • 9. FUNCTIONS OF RTOS • Task management • Scheduling. • Resource Allocation. • Interrupt Handling.
  • 10. Task management • In Real Time Applications the Process is called as Task which takes execution time and occupies memory. • Task management is the process of managing tasks through its life cycle.
  • 11. Task States Pended Ready Delayed Suspended Run
  • 12. Task/Process States • Each task/Process can belong to one and only one state • The Scheduler only operates on the processes in the Ready state • There is a single process in the Run/current state at any time. • Transitions to and from the Ready queue are affected as a part of the execution of the RTOS resource/object services or as a result of timing events
  • 13. Typical Task Operations • creating and deleting tasks, • controlling task scheduling, and • obtaining task information.
  • 14. Scheduling in RTOS • More information about the tasks are known – No of tasks – Resource Requirements – Release Time – Execution time – Deadlines • Being a more deterministic system better scheduling algorithms can be devised.
  • 15. Scheduling Algorithms in RTOS • Clock Driven Scheduling • Weighted Round Robin Scheduling • Priority Scheduling (Greedy / List / Event Driven)
  • 16. Scheduling Algorithms in RTOS (contd) • Clock Driven – All parameters about jobs (release time/ execution time/deadline) known in advance. – Schedule can be computed offline or at some regular time instances. – Minimal runtime overhead. – Not suitable for many applications.
  • 17. Scheduling Algorithms in RTOS (contd) • Weighted Round Robin – Jobs scheduled in FIFO manner – Time quantum given to jobs is proportional to it’s weight – Example use : High speed switching network • QOS guarantee. – Not suitable for precedence constrained jobs. • Job A can run only after Job B. No point in giving time quantum to Job B before Job A.
  • 18. Scheduling Algorithms in RTOS (contd) • Priority Scheduling (Greedy/List/Event Driven) – Processor never left idle when there are ready tasks – Processor allocated to processes according to priorities – Priorities • static - at design time • Dynamic - at runtime
  • 19. Priority Scheduling • Earliest Deadline First (EDF) – Process with earliest deadline given highest priority • Least Slack Time First (LSF) – slack = relative deadline – execution left • Rate Monotonic Scheduling (RMS) – For periodic tasks – Tasks priority inversely proportional to it’s period
  • 20. Resource Allocation in RTOS • Resource Allocation – The issues with scheduling applicable here. – Resources can be allocated in • Weighted Round Robin • Priority Based • Some resources are non preemptible – Example : semaphores • Priority Inversion if priority scheduling is used
  • 21. Other RTOS issues • Interrupt Latency should be very small – Kernel has to respond to real time events – Interrupts should be disabled for minimum possible time • For embedded applications Kernel Size should be small – Should fit in ROM • Sophisticated features can be removed – No Virtual Memory – No Protection
  • 22. INTERRUPTS HANDLING OF RTOS. • An interrupt is a signal from a device attached to a computer or from a program with in a computer that causes the main program that is operating system to stop and figure out what to do next. • Interrupts cause the processor to suspend the operations whatever it is doing instead execute the code that will respond to the event whatever caused the interrupt.
  • 23. APPLICATIONS OF RTOS. • Almost all the modern telecommunication systems make use of RTOS . • Radar systems, network switching control systems, satellite monitoring systems, satellite launch-control and maneuvering mechanisms, global positioning systems all have their roots in RTOS. • Now a days RTOS are increasingly finding use in strategic and military operations. These are used in guided missile launching units, track-and-trace spy satellites, etc.
  • 24. Comparison of RTOS VXWorks pSOS eCos Scheduler Preemptive Preemptive Preemptive Synchronizatio No condition Y Y n mechanism variable POSIX support Y Y Linux Scalable Y Y Y Custom hw BSP BSP HAL, I/O support package Kernel size - 16KB - Multiprocessor VxMP/ PSOS+m kernel Y/only basic support VxFusion support (SMP) (accessories)
  • 25. VxWorks • Created by Wind River. • Current Version: VxWorks 6.0  • VxWorks is the most established and most widely deployed device software operating system. • Currently there are more than 300 million devices that are VxWorks enabled. • The core attributes of VxWorks, include high performance, reliability, determinism, low latency and scalability.
  • 26. VxWorks (contd..) • Enhanced error management • Backward compatibility to previous versions features for exception handling and template support • Extensive POSIX 1003.1, .1b, .1c compatibility • Scheduling – Uses preemptive priority with round robin scheduling to accommodate for both • Real time processes • Non-real time processes
  • 27. VxWorks (contd..) • Memory Protection – MMU based memory protection. • Reduced Context Switch time – Saves only those register windows that are actually in use – When a task’s context is restored, only the relevant register window is restored – To increase response time, it saves the register windows in a register cache – useful for recurring tasks
  • 28.
  • 29. microkernel • Several types of semaphores – binary, – counting – mutual exclusion with priority inheritance • 256 priorities • POSIX compliant
  • 30. Microkernel features (cont.) • High scalability • Incremental linking and loading of components • Fast, efficient interrupt and exception handling • Optimized floating-point support • Dynamic memory management • System clock and timing facilities
  • 31. A note on POSIX • Portable Operating System Interface • set of standards under ISO/ IEEE charter • POSIX standard 1003.1b, (formerly called 1003.4) for RTOS • makes it easier to move applications from one operating system to another.
  • 32. CONCLUSION. RTOS have been the heroes in most of the technological areas, right from fuel injection system to nuclear reactor control, satellite control, global positioning systems, and fully equipped high-tech warfare aircrafts. And the best is yet to come!

Notas del editor

  1. Computer failureThe term catastrophic failure is occasionally used in computer software to indicate an unexpected error from which the system cannot meaningfully recover. This usually results in a screen of death. This however, is likely to be recovered by a simple pressing of the reset button, unlike most of the examples above.
  2. In computing, preemption (more correctly pre-emption) is the act of temporarily interrupting a task being carried out by a computer system, without requiring its cooperation, and with the intention of resuming the task at a later time. Such a change is known as a context switch. It is normally carried out by a privileged task or part of the system known as a preemptive scheduler, which has the power to preempt, or interrupt, and later resume, other tasks in the system.