SlideShare une entreprise Scribd logo
1  sur  37
Real time operating system
MADE BY:
SHARAD PANDEY
MOHD. SHADAB HUSSAIN
Things included:
• What is real time?
• What a RTOS is not!!
• Overview of different RTOS
• What is RTOS?
• Standard of RTOS
• Working of RTOS
• Applications of RTOS
• References
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.”
What a RTOS is not!!
• Real time computing is NOT fast computing.
• For example, a massive supercomputer
• Furthermore, if a network server is highly loaded with network traffic,
its response time may be slower but will (in most cases) still succeed
before it times out (hits its deadline). Hence, such a network server
would not be considered a real-time system.
• FTSE 100 Index (The Financial Times Stock Exchange 100 Index).
• Predictability and not Performance
Vx works Overview:
• Developer Wind River (subsidiary of Intel Corporation)
• OS family Real-time operating systems
• Initial release 1987; 28 years ago
• Latest release 7 / March 2014; 1 year ago
• Marketing target Embedded systems
• Platforms x86-64, PowerPC, ARM
• Kernel type Monolithic
• Official website www.windriver.com/products/vxworks/
Descripti
on
This file shows the
screenshot for
VxWorks 7
Date 24 June 2014
Source Received from Wind
River
FREE rtos overview:
• Developer Real Time Engineers Ltd.
• OS family Real-time operating systems
• Source model Open source
• Latest release 8.2.0 / January 16th, 2015
• Marketing target Embedded devices
• Platforms ARM, Atmel AVR,PIC,x86,8052,Cortex-R4
• Kernel type Microkernel
• Official website www.freertos.org
Windows CE (Embedded compact)
• Developer Microsoft
• Written in C
• Source model Closed source (shared source kernel)
• Initial release 16 November 1996; 18 years ago
• Latest release Embedded Compact 20131(3 June 2013)
• Platforms x86, MIPS, 32-bit ARM
• Kernel type Hybrid
• License Commercial proprietary software (volume licensing)
• Succeeded by Windows RT
• Official website microsoft.com/windowsembedded/
REAL TIME OPERATING SYSTEM (RTOS)
A real time operating system(RTOS) is an operating system (OS) intended to serve
real time application requests.
Key factors of RTOS is minimum interrupt latency and min thread switch latency.
Types of RTOS
• Soft RTOS : Meets the deadline usually.
• Hard RTOS : Meets the deadline deterministcally.
STANDARD FOR RTOS:
• Standard requirement for RTOS is POSIX(Portable Operating System
Interface) 1003.1b by ISO/IEEE chapter.
• It has following attributes:
POSIX.1b, Real-time extensions (IEEE Std 1003.1b-1993)
•Priority Scheduling
• Real-Time Signals
• Clocks and Timers
• Semaphores
• Message Passing
• Shared Memory
• Memory Locking Interface
BASIC OPERATING SYSTEM
• VxWorks kernel “wind” includes both POSIX interface and interfaces
especially for VxWorks.
• Task : Applications are organized into independent, though
cooperating programs, each of these programs, while executing, is
called task, (Multitasking is carried out).
Task’s Context:
a. A Thread of execution, which is task’s program counter.
b. The CPU registers and floating point registers.
c. A stack for dynamic variables and function calls.
d. I/O assignments for standard input, output, and error.
e. A delay timer, timer slice timer, kernel contol structures.
BASIC OPERATING SYSTEM CONT…
Task State Transition
• Upon creation, task enters suspended state.
• Activation is necessary for the task to enter ready state.
• Task can be deleted from any state.
BASIC OPERATING SYSTEM CONT…
MULTITASKING
• Suspended- used primarily for debugging
• Ready- wait for CPU
• Pended- blocked, wait delta T time for resources.
• Delay- asleep for delta T time, after delta T goes to ready
state.
P R D
S
BASIC OPERATING SYSTEM CONT…
WIND TASK SCHEDULING
Priority based primptive scheduling is default algorithm , but we can select Round-
Robin Scheduling for application as well.
• Primitive Priority Scheduling: Higher priority task executes first, during switching
kernel saves current task’s context .
256 Priority levels: Highest priority is 0 and lowest priority is
256
• Round-Robin Scheduling: Round-Robin scheduling achieves fair allocation of CPU
to task of same priority by time slicing.
Primption Lock: Wind scheduler can be explicitly disabled
and enabled on a per task basis.
BASIC OPERATING SYSTEM CONT…
• Interrupt: To inform the system the occurrence of external event.
For the fastest possible response to interrupts, ISR( Interrupt Service Routine) in
VxWorks run in a special context outside of any task’s context.
Thus interrupt handling involves no task context switch.
• Watch Dog Timers: This mechanism allows any C function to be connected
to a specified time delay.
• POSIX Clocks: Clocks is a software construct that keeps time in seconds and
nanoseconds.
• Timers: It provides routines for tasks to signal themselves at sometime in
future.
INTER-TASK COMMUNICATION
INCLUDES:
a. Shared Memory: For simple sharing of data.
b. Semaphores: For basic mutual exclusion and synchronization.
c. Message Queues and Pipes: For inter-task message passing.
d. Sockets and RPC: For network transparent inter-task
communication.
e. Signals: For exception handling.
INTER-TASK COMMUNICATION CONT…
• Shared Memory: Task communicates by accessing shared data
structure. Global variables, linear buffers, ring buffers, linked lists and
pointers can be referenced directly by code running in different
contexts.
• Semaphores: Three types of semaphores optimized to address different
classes of problems.
a. Binary: Optimised for synchronization or mutual exclusion.
b. Mutual Exclusion: Specialized binary semaphore.
It differs from binary semaphore in following ways:
1. It can be used only for mutual exclusion.
2. It can be given only by the task that took it.
3. semFlush() operation is illegal.
c. POSIX: These semaphore are for use on a single CPU.
INTER-TASK COMMUNICATION CONT…
• Message Queues: Primary Inter-task communication mechanism.
Optional product VxMP provides global message queues that can be used across
processor.
a. Message queues allows variable number of messages, each of variable length. Any task can send or
receive messages to or from message queue.
b. Multiple task can send to and receive from same message queue.
c. Message are queued in FIFO ( High priority messages attached at head of queue ).
d. TIME OUTS: During sending or receiving messages, timeout specifies how many ticks to wait for buffer
space to become available or a message become available.
• Pipes: Pipes are virtual I/O device. Task blocks when tries to read from
empty pipe or tries to write to full pipe. It provides unique facility
called select(). This routine allows task to wait for data to be available
on any of a set of I/O device.
LOCAL FILE SYSTEM
• VxWorks provide two local file systems appropriate for real time used with block
devices.
• One is compatible with MS-DOS file systems and the other with the RT-11 file
system.
• In VxWorks, the file system is not tied to a specific type of block device or its driver.
VxWorks block devices all use a standard interface so that file system can be freely
mixed with device drivers. Alternatively, you can write your own file systems that
can used by the drivers in the same way, by following the same standard interfaces
between the file system, the driver and the I/O system. VxWorks I/O architecture
makes it possible to have multiple file systems, even of different types, in a single
VxWorks system.
LOCAL FILE SYSTEM CONT…
MS-DOS Compatible File System: dosFs
The dosFs file system offers considerable flexibility appropriate to the varying
demands of real time applications.
Major features include:
1. Hierarchical arrangement of files and directories, allowing efficient organisation and
permitting an arbitrary number of files to be created on avolume.
2. A choice of contiguous or non-contiguous files on a per file basis. Non-contiguous files
result in more efficient use of available disk space, while contiguous files offer enhanced
performance.
3. Compatibility with widely available storage and retrieval media. Diskettes created with
VxWorks (that do not use dosFs extended filenames) and MSDOS PCs and other systems
can be freely interchanged. Hard disks are compatible even if the partition table is
accounted for.
LOCAL FILE SYSTEM CONT…
4. The ability to boot VxWorks from any local SCSI (Small Computer System Interface) device
that has a dosFs file system.
5. The ability to use longer file names than the 8- character file name plus 3-character
extension(8.3) convention allowed by MS-DOS.
6. NFS (Network File System) support
BASIC VIRTUAL MEMORY SUPPORT
For systems with an MMU, VxWorks allows to perform DMA and inter processor
communication more efficiently by rendering related buffers non-cacheable. This is
a necessary to ensure that data is not being buffered locally when other processors
or DMA devices are accessing the same memory location.
Virtual Memory Context:
A virtual memory context( VM_CONTEXT, defined in vmLib) is made up of a
translation table and other information used for mapping a virtual address to a
physical address. Multiple virtual memory contexts can be created and swapped in
and out as desired.
BASIC VIRTUAL MEMORY SUPPORT
• Global Virtual Memory:
Some system objects , such as text segments and semaphores, must be accessible to all
tasks in the system regardless of which virtual memory context is made current. These
objects are made accessible by means of global virtual memory.
• Private Virtual Memory:
Private virtual memory can be created by creating a new virtual memory context.
This is useful fot protecting data by making it inaccessible to other tasks or by
limiting access to specific routines.
NETWORKING SUPPORT
• BSD 4.4 TCP/IP networking
• IP, IGMP, CIDR, TCP, UDP, ARP
• PPP, SLIP/CSLIP
• Standard Berkeley Sockets
• Berkeley packet filter
• RIPv1/v2 and routing sockets
• TFTP, rlogin, telnet, rsh
• NFS client and sever, ONC RPC
• SNTP
APPLICATIONS FOR RTOS:
Some usage of RTOS:
• Flight Simulators
• Navigation systems
• Deep sea instrumentation
• Traffic control system
• Radio and optical telescope
….. Any system where rigid time requirment have been placed on the operation of
the processor or the flow of the data.
Notable uses
Vx Works was given
the responsibility to
drive this 2.1 Billion
Dollars Mars Rover.
NASA Jet Propulsion Laboratory MSL Curiosity
The unmanned
aircraft first flown
in 2011 uses Vx
Works.
AgustaWestland
Project Zero
AgustaWestland Project Zero:
KUKA:
ASIMO HONDA
Best Humanoid ever
made runs on Vx Works.
Honda ASIMO:
Mars Reconnaissance
Orbiter
The US$720 million
spacecraft was built
by Lockheed Martin
under the supervision
of the Jet Propulsion
Laboratory. Italso
uses Vx Works.
What is a real-time operating system (RTOS), and
how does it differ from a kernel?
• A real-time kernel is software that manages the time and resources
of a microprocessor, microcontroller or Digital Signal Processor (DSP),
and provides indispensable services to your applications.
• A Real Time Operating System (RTOS) generally contains a real-time
kernel and other higher-level services such as file management,
protocol stacks, a Graphical User Interface (GUI), and other
components.
References:
• http://www.windriver.com/
• http://www.Wikipedia.com/
• Simple Real-time Operating System: A Kernel Inside View for a
Beginner
• Real-Time Concepts for Embedded Systems
• http://www.youtube.com/
Queries
Thank you

Contenu connexe

Tendances

Tendances (20)

Linux Programming
Linux ProgrammingLinux Programming
Linux Programming
 
Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
Pthread
PthreadPthread
Pthread
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1Real time operating systems (rtos) concepts 1
Real time operating systems (rtos) concepts 1
 
Centos operating system
Centos operating systemCentos operating system
Centos operating system
 
Ipc in linux
Ipc in linuxIpc in linux
Ipc in linux
 
Linux file system
Linux file systemLinux file system
Linux file system
 
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
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
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)
 
Operating Systems Process Scheduling Algorithms
Operating Systems   Process Scheduling AlgorithmsOperating Systems   Process Scheduling Algorithms
Operating Systems Process Scheduling Algorithms
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
PART-3 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-3 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingPART-3 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-3 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
Linux Kernel Overview
Linux Kernel OverviewLinux Kernel Overview
Linux Kernel Overview
 
Qemu
QemuQemu
Qemu
 

Similaire à Real Time Operating System

Lecture10_RealTimeOperatingSystems.pptx
Lecture10_RealTimeOperatingSystems.pptxLecture10_RealTimeOperatingSystems.pptx
Lecture10_RealTimeOperatingSystems.pptxSekharSankuri1
 
Ospresentation 120112074429-phpapp02 (1)
Ospresentation 120112074429-phpapp02 (1)Ospresentation 120112074429-phpapp02 (1)
Ospresentation 120112074429-phpapp02 (1)Vivian Vhaves
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating SystemsPawandeep Kaur
 
Operating Systems 1 (4/12) - Architectures (Windows)
Operating Systems 1 (4/12) - Architectures (Windows)Operating Systems 1 (4/12) - Architectures (Windows)
Operating Systems 1 (4/12) - Architectures (Windows)Peter Tröger
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersVaibhav Sharma
 
Pune-Cocoa: Blocks and GCD
Pune-Cocoa: Blocks and GCDPune-Cocoa: Blocks and GCD
Pune-Cocoa: Blocks and GCDPrashant Rane
 
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageWebinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageMayaData Inc
 
Processes and Threads in Windows Vista
Processes and Threads in Windows VistaProcesses and Threads in Windows Vista
Processes and Threads in Windows VistaTrinh Phuc Tho
 
Microx - A Unix like kernel for Embedded Systems written from scratch.
Microx - A Unix like kernel for Embedded Systems written from scratch.Microx - A Unix like kernel for Embedded Systems written from scratch.
Microx - A Unix like kernel for Embedded Systems written from scratch.Waqar Sheikh
 
Parallel Computing - Lec 3
Parallel Computing - Lec 3Parallel Computing - Lec 3
Parallel Computing - Lec 3Shah Zaib
 

Similaire à Real Time Operating System (20)

RTOS [Autosaved].pptx
RTOS [Autosaved].pptxRTOS [Autosaved].pptx
RTOS [Autosaved].pptx
 
Os concepts
Os conceptsOs concepts
Os concepts
 
UNIT V PPT.ppt
UNIT V PPT.pptUNIT V PPT.ppt
UNIT V PPT.ppt
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
Lecture10_RealTimeOperatingSystems.pptx
Lecture10_RealTimeOperatingSystems.pptxLecture10_RealTimeOperatingSystems.pptx
Lecture10_RealTimeOperatingSystems.pptx
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 
Chapter 6 os
Chapter 6 osChapter 6 os
Chapter 6 os
 
GDPS and System Complex
GDPS and System ComplexGDPS and System Complex
GDPS and System Complex
 
Ospresentation 120112074429-phpapp02 (1)
Ospresentation 120112074429-phpapp02 (1)Ospresentation 120112074429-phpapp02 (1)
Ospresentation 120112074429-phpapp02 (1)
 
Real Time Operating Systems
Real Time Operating SystemsReal Time Operating Systems
Real Time Operating Systems
 
Operating Systems 1 (4/12) - Architectures (Windows)
Operating Systems 1 (4/12) - Architectures (Windows)Operating Systems 1 (4/12) - Architectures (Windows)
Operating Systems 1 (4/12) - Architectures (Windows)
 
Os
OsOs
Os
 
Introduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & ContainersIntroduction to OS LEVEL Virtualization & Containers
Introduction to OS LEVEL Virtualization & Containers
 
Pune-Cocoa: Blocks and GCD
Pune-Cocoa: Blocks and GCDPune-Cocoa: Blocks and GCD
Pune-Cocoa: Blocks and GCD
 
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageWebinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
 
Processes and Threads in Windows Vista
Processes and Threads in Windows VistaProcesses and Threads in Windows Vista
Processes and Threads in Windows Vista
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Microx - A Unix like kernel for Embedded Systems written from scratch.
Microx - A Unix like kernel for Embedded Systems written from scratch.Microx - A Unix like kernel for Embedded Systems written from scratch.
Microx - A Unix like kernel for Embedded Systems written from scratch.
 
L11-RTOS.ppt
L11-RTOS.pptL11-RTOS.ppt
L11-RTOS.ppt
 
Parallel Computing - Lec 3
Parallel Computing - Lec 3Parallel Computing - Lec 3
Parallel Computing - Lec 3
 

Dernier

TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the weldingMuhammadUzairLiaqat
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 

Dernier (20)

TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
welding defects observed during the welding
welding defects observed during the weldingwelding defects observed during the welding
welding defects observed during the welding
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 

Real Time Operating System

  • 1. Real time operating system MADE BY: SHARAD PANDEY MOHD. SHADAB HUSSAIN
  • 2. Things included: • What is real time? • What a RTOS is not!! • Overview of different RTOS • What is RTOS? • Standard of RTOS • Working of RTOS • Applications of RTOS • References
  • 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.”
  • 4. What a RTOS is not!! • Real time computing is NOT fast computing. • For example, a massive supercomputer • Furthermore, if a network server is highly loaded with network traffic, its response time may be slower but will (in most cases) still succeed before it times out (hits its deadline). Hence, such a network server would not be considered a real-time system. • FTSE 100 Index (The Financial Times Stock Exchange 100 Index). • Predictability and not Performance
  • 5. Vx works Overview: • Developer Wind River (subsidiary of Intel Corporation) • OS family Real-time operating systems • Initial release 1987; 28 years ago • Latest release 7 / March 2014; 1 year ago • Marketing target Embedded systems • Platforms x86-64, PowerPC, ARM • Kernel type Monolithic • Official website www.windriver.com/products/vxworks/
  • 6. Descripti on This file shows the screenshot for VxWorks 7 Date 24 June 2014 Source Received from Wind River
  • 7. FREE rtos overview: • Developer Real Time Engineers Ltd. • OS family Real-time operating systems • Source model Open source • Latest release 8.2.0 / January 16th, 2015 • Marketing target Embedded devices • Platforms ARM, Atmel AVR,PIC,x86,8052,Cortex-R4 • Kernel type Microkernel • Official website www.freertos.org
  • 8. Windows CE (Embedded compact) • Developer Microsoft • Written in C • Source model Closed source (shared source kernel) • Initial release 16 November 1996; 18 years ago • Latest release Embedded Compact 20131(3 June 2013) • Platforms x86, MIPS, 32-bit ARM • Kernel type Hybrid • License Commercial proprietary software (volume licensing) • Succeeded by Windows RT • Official website microsoft.com/windowsembedded/
  • 9. REAL TIME OPERATING SYSTEM (RTOS) A real time operating system(RTOS) is an operating system (OS) intended to serve real time application requests. Key factors of RTOS is minimum interrupt latency and min thread switch latency. Types of RTOS • Soft RTOS : Meets the deadline usually. • Hard RTOS : Meets the deadline deterministcally.
  • 10. STANDARD FOR RTOS: • Standard requirement for RTOS is POSIX(Portable Operating System Interface) 1003.1b by ISO/IEEE chapter. • It has following attributes: POSIX.1b, Real-time extensions (IEEE Std 1003.1b-1993) •Priority Scheduling • Real-Time Signals • Clocks and Timers • Semaphores • Message Passing • Shared Memory • Memory Locking Interface
  • 11. BASIC OPERATING SYSTEM • VxWorks kernel “wind” includes both POSIX interface and interfaces especially for VxWorks. • Task : Applications are organized into independent, though cooperating programs, each of these programs, while executing, is called task, (Multitasking is carried out). Task’s Context: a. A Thread of execution, which is task’s program counter. b. The CPU registers and floating point registers. c. A stack for dynamic variables and function calls. d. I/O assignments for standard input, output, and error. e. A delay timer, timer slice timer, kernel contol structures.
  • 12. BASIC OPERATING SYSTEM CONT… Task State Transition • Upon creation, task enters suspended state. • Activation is necessary for the task to enter ready state. • Task can be deleted from any state.
  • 13. BASIC OPERATING SYSTEM CONT… MULTITASKING • Suspended- used primarily for debugging • Ready- wait for CPU • Pended- blocked, wait delta T time for resources. • Delay- asleep for delta T time, after delta T goes to ready state. P R D S
  • 14. BASIC OPERATING SYSTEM CONT… WIND TASK SCHEDULING Priority based primptive scheduling is default algorithm , but we can select Round- Robin Scheduling for application as well. • Primitive Priority Scheduling: Higher priority task executes first, during switching kernel saves current task’s context . 256 Priority levels: Highest priority is 0 and lowest priority is 256 • Round-Robin Scheduling: Round-Robin scheduling achieves fair allocation of CPU to task of same priority by time slicing. Primption Lock: Wind scheduler can be explicitly disabled and enabled on a per task basis.
  • 15. BASIC OPERATING SYSTEM CONT… • Interrupt: To inform the system the occurrence of external event. For the fastest possible response to interrupts, ISR( Interrupt Service Routine) in VxWorks run in a special context outside of any task’s context. Thus interrupt handling involves no task context switch. • Watch Dog Timers: This mechanism allows any C function to be connected to a specified time delay. • POSIX Clocks: Clocks is a software construct that keeps time in seconds and nanoseconds. • Timers: It provides routines for tasks to signal themselves at sometime in future.
  • 16. INTER-TASK COMMUNICATION INCLUDES: a. Shared Memory: For simple sharing of data. b. Semaphores: For basic mutual exclusion and synchronization. c. Message Queues and Pipes: For inter-task message passing. d. Sockets and RPC: For network transparent inter-task communication. e. Signals: For exception handling.
  • 17. INTER-TASK COMMUNICATION CONT… • Shared Memory: Task communicates by accessing shared data structure. Global variables, linear buffers, ring buffers, linked lists and pointers can be referenced directly by code running in different contexts. • Semaphores: Three types of semaphores optimized to address different classes of problems. a. Binary: Optimised for synchronization or mutual exclusion. b. Mutual Exclusion: Specialized binary semaphore. It differs from binary semaphore in following ways: 1. It can be used only for mutual exclusion. 2. It can be given only by the task that took it. 3. semFlush() operation is illegal. c. POSIX: These semaphore are for use on a single CPU.
  • 18. INTER-TASK COMMUNICATION CONT… • Message Queues: Primary Inter-task communication mechanism. Optional product VxMP provides global message queues that can be used across processor. a. Message queues allows variable number of messages, each of variable length. Any task can send or receive messages to or from message queue. b. Multiple task can send to and receive from same message queue. c. Message are queued in FIFO ( High priority messages attached at head of queue ). d. TIME OUTS: During sending or receiving messages, timeout specifies how many ticks to wait for buffer space to become available or a message become available. • Pipes: Pipes are virtual I/O device. Task blocks when tries to read from empty pipe or tries to write to full pipe. It provides unique facility called select(). This routine allows task to wait for data to be available on any of a set of I/O device.
  • 19. LOCAL FILE SYSTEM • VxWorks provide two local file systems appropriate for real time used with block devices. • One is compatible with MS-DOS file systems and the other with the RT-11 file system. • In VxWorks, the file system is not tied to a specific type of block device or its driver. VxWorks block devices all use a standard interface so that file system can be freely mixed with device drivers. Alternatively, you can write your own file systems that can used by the drivers in the same way, by following the same standard interfaces between the file system, the driver and the I/O system. VxWorks I/O architecture makes it possible to have multiple file systems, even of different types, in a single VxWorks system.
  • 20. LOCAL FILE SYSTEM CONT… MS-DOS Compatible File System: dosFs The dosFs file system offers considerable flexibility appropriate to the varying demands of real time applications. Major features include: 1. Hierarchical arrangement of files and directories, allowing efficient organisation and permitting an arbitrary number of files to be created on avolume. 2. A choice of contiguous or non-contiguous files on a per file basis. Non-contiguous files result in more efficient use of available disk space, while contiguous files offer enhanced performance. 3. Compatibility with widely available storage and retrieval media. Diskettes created with VxWorks (that do not use dosFs extended filenames) and MSDOS PCs and other systems can be freely interchanged. Hard disks are compatible even if the partition table is accounted for.
  • 21. LOCAL FILE SYSTEM CONT… 4. The ability to boot VxWorks from any local SCSI (Small Computer System Interface) device that has a dosFs file system. 5. The ability to use longer file names than the 8- character file name plus 3-character extension(8.3) convention allowed by MS-DOS. 6. NFS (Network File System) support
  • 22. BASIC VIRTUAL MEMORY SUPPORT For systems with an MMU, VxWorks allows to perform DMA and inter processor communication more efficiently by rendering related buffers non-cacheable. This is a necessary to ensure that data is not being buffered locally when other processors or DMA devices are accessing the same memory location. Virtual Memory Context: A virtual memory context( VM_CONTEXT, defined in vmLib) is made up of a translation table and other information used for mapping a virtual address to a physical address. Multiple virtual memory contexts can be created and swapped in and out as desired.
  • 23. BASIC VIRTUAL MEMORY SUPPORT • Global Virtual Memory: Some system objects , such as text segments and semaphores, must be accessible to all tasks in the system regardless of which virtual memory context is made current. These objects are made accessible by means of global virtual memory. • Private Virtual Memory: Private virtual memory can be created by creating a new virtual memory context. This is useful fot protecting data by making it inaccessible to other tasks or by limiting access to specific routines.
  • 24. NETWORKING SUPPORT • BSD 4.4 TCP/IP networking • IP, IGMP, CIDR, TCP, UDP, ARP • PPP, SLIP/CSLIP • Standard Berkeley Sockets • Berkeley packet filter • RIPv1/v2 and routing sockets • TFTP, rlogin, telnet, rsh • NFS client and sever, ONC RPC • SNTP
  • 25. APPLICATIONS FOR RTOS: Some usage of RTOS: • Flight Simulators • Navigation systems • Deep sea instrumentation • Traffic control system • Radio and optical telescope ….. Any system where rigid time requirment have been placed on the operation of the processor or the flow of the data.
  • 26. Notable uses Vx Works was given the responsibility to drive this 2.1 Billion Dollars Mars Rover.
  • 27. NASA Jet Propulsion Laboratory MSL Curiosity
  • 28. The unmanned aircraft first flown in 2011 uses Vx Works. AgustaWestland Project Zero
  • 30. KUKA:
  • 31. ASIMO HONDA Best Humanoid ever made runs on Vx Works.
  • 33. Mars Reconnaissance Orbiter The US$720 million spacecraft was built by Lockheed Martin under the supervision of the Jet Propulsion Laboratory. Italso uses Vx Works.
  • 34. What is a real-time operating system (RTOS), and how does it differ from a kernel? • A real-time kernel is software that manages the time and resources of a microprocessor, microcontroller or Digital Signal Processor (DSP), and provides indispensable services to your applications. • A Real Time Operating System (RTOS) generally contains a real-time kernel and other higher-level services such as file management, protocol stacks, a Graphical User Interface (GUI), and other components.
  • 35. References: • http://www.windriver.com/ • http://www.Wikipedia.com/ • Simple Real-time Operating System: A Kernel Inside View for a Beginner • Real-Time Concepts for Embedded Systems • http://www.youtube.com/