Professional Documents
Culture Documents
Real Time Operating System
Real Time Operating System
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 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.
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:
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
Predictability
Scalability
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
Suspended
Delayed
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
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.
Priority Scheduling
Earliest Deadline First (EDF)
Process with earliest deadline given highest priority
Resource Allocation
The issues with scheduling applicable here.
Resources can be allocated in
Weighted Round Robin
Priority Based
APPLICATIONS OF RTOS.
Comparison of RTOS
VXWorks
pSOS
eCos
Scheduler
Preemptive
Preemptive
Preemptive
Synchronization
mechanism
No condition
variable
POSIX support
Linux
Scalable
Custom hw
support
BSP
BSP
HAL, I/O
package
Kernel size
16KB
VxMP/ VxFusion
(accessories)
PSOS+m kernel
Y/only basic
support (SMP)
Multiprocessor
support
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
VxWorks (contd..)
Memory Protection
MMU based memory protection.
microkernel
Several types of semaphores
binary,
counting
mutual exclusion with priority inheritance
256 priorities
POSIX compliant
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!