16-Module - 5 Real Time Operating System Real Time-18-03-2024
16-Module - 5 Real Time Operating System Real Time-18-03-2024
RTOS
Module:5 Real Time Operating System
Classification of Real time system, Issues & challenges in RTS,
Real time scheduling schemes- EDF-RMS & Hybrid techniques,
eCOS, POSIX, Protothreads.
What are the example of hard real time system?
What are the example of soft real time system?
RTOS Architectures
two prevailing design philosophies affect RTOS design: monolithic
kernel versus microkernel. These systems are differentiated by their
structure; whereas monolithic kernel systems run in a single space,
microkernel systems compartmentalize different components of the
architecture.
Microkernel System Monolithic System
The kernel and operations are Kernel and operation processes
housed in separate spaces, with the share the same space. Operations
kernel itself being bare (hence move more quickly, and the
micro). Operation spaces are not systems boast higher performance.
given access to one another and However, updates may require an
must return to the kernel. extensive overhaul.
LAYMAN EXAMPLE OF MONOLITHIC(two
person sharing same house ) AND
MICROKERNAL(landlord and paying guest)
Real-Time System Examples
Transportatio Manufacturi
A&D Telecom Medical
n ng
•Flight •5G modem •Functional •Magnetic •Factory
display •Satellite safety resonance robotics
controller modem systems imaging systems
•Engine •Base station •Emergency •Surgery •Safety
turbine braking equipment systems
•Drones systems •Ventilators •Oil and gas
•Extraterrestr •Engine vibration
ial rovers warning monitors
systems
What Is an RTOS and How Does It Work?
A real-time operating system (RTOS) is an operating system with
two key features:
• predictability
• determinism.
In an RTOS, repeated tasks are performed within a tight time
boundary, while in a general-purpose operating system, this is
not necessarily so. Predictability and determinism, in this case, go
hand in hand: We know how long a task will take, and that it will
always produce the same result.
RTOS VS. OS?
An RTOS is a type of operating system, but it is vastly different
from the kind most consumers are familiar with.
Operating systems in phones or personal computers are,
comparatively, bloated with apps and features; they must be able to
support anything the user might want to do today.
An RTOS, on the other hand, is streamlined, meant to execute
its tasks quickly and effectively. It is a fraction of the size,
sometimes only a few megabytes (vs. more than 20 gigabytes), with
a simple graphical interface, and it lacks many familiar features,
such as a web browser.
CHARACTERISTICS OF AN RTOS
• Determinism: Repeating an input will result in the same output.ex.M
• High performance: RTOS systems are fast and responsive, often
executing actions within a small fraction of the time needed by a
general OS.
• Safety and security: RTOSes are frequently used in critical systems
when failures can have catastrophic consequences, such as robotics or
flight controllers. To protect those around them, they must have
higher security standards and more reliable safety features.
• Priority-based scheduling: Priority scheduling means that actions
assigned a high priority are executed first, and those with lower
priority come after. This means that an RTOS will always execute the
most important task.
CHARACTERISTICS OF AN RTOS
• Small footprint: Versus their hefty general OS counterparts, RTOSes
weigh in at just a fraction of the size. For example, Windows 10, with
post-install updates, takes up approximately 20 GB. VxWorks®, on
the other hand, is approximately 20,000 times smaller, measured in
the low single-digit megabytes.
DIFFERENCES AND SIMILARITIES BETWEEN AN EMBEDDED
SYSTEM AND AN RTOS
An embedded system is a computer that is embedded into a larger
machine — for example, the microcontroller on a robotic arm. In
noncritical systems with some timeline flexibility, developers can use an
open source general-purpose OS (GPOS) such as Linux. Linux is full
featured, flexible, and well known.
In a critical system (whether that means safety critical or mission
critical), developers opt for real-time operating systems. The
characteristics that set an RTOS apart are often essential to success. For
instance, a robotic arm in a factory needs to be predictable and reliable,
and it must be able to stop immediately when employees enter its
area of operation. Variability can result in wasted resources, quality-
control issues, or injury.
A robotic arm must be able to stop immediately when employees enter its area of operation.
RTOS Use in Embedded Systems
Due to its benefits, a real-time operating system is most often used in an
embedded system — that is, a system that operates behind the scenes of
a larger operation. The RTOS usually has no graphical interface.
Occasionally, multiple OSes are integrated simultaneously, to provide
operational capability coupled with the usability of a general-purpose
OS.