Introduction To Real Time Operating Systems
Introduction To Real Time Operating Systems
SYSTEMS
RTOS
Real Time Operating Systems
• The real-time operating system used for a real-
time application means for those applications
where data processing should be done in the
fixed and small quantum of time.
• It is different from general purpose computer
where time concept is not considered as much
crucial as in Real-Time Operating System.
• RTOS is a time-sharing system based on clock
interrupts.
RTOS
• Interrupt Service Routine (ISR) serve the interrupt,
raised by the system.
• RTOS uses Priority to execute the process.
• When a high priority process enters in system low
priority process is pre-empted to serve higher priority
process.
• Real-time operating system synchronizes the process.
• So that they can communicate with each other.
• Resources can be used efficiently without wastage of
time.
RTOS- Applications
• RTOS are used for controlling traffic signal,
Nuclear reactors Control scientific
experiments, medical imaging systems,
industrial system, fuel injection system, home
appliances.
RTOS
• Real time Operating Systems are very fast and
quick respondent systems.
• These systems are used in an environment where a
large number of events (generally external) must
be accepted and processed in a short time.
• Real time processing requires quick transaction and
characterized by supplying immediate response.
• For example, a measurement from a petroleum
refinery indicating that temperature is getting too
high and might demand for immediate attention to
avoid an explosion.
RTOS
• In real time operating system there is a little
swapping of programs between primary and
secondary memory.
• Most of the time, processes remain in primary
memory in order to provide quick response,
therefore, memory management in real time
system is less demanding compared to other
systems.
RTOS- Introduction
• Time Sharing Operating System is based on
Event-driven and time-sharing the design.
• The event Driven: In event-driven switching,
higher priority task requires CPU service first
than a lower priority task, known as priority
scheduling.
• Time Sharing: Switching takes place after fixed
time quantum known as Round Robin
Scheduling.
Three states of the process cycle
• Control systems
• RTOS are designed in such a way so that they can
control actuators and sensors.
• They can execute control system commands.
• Controlled systems are those which can be monitored
by using sensors and their tasks can be altered with
the help of actuators.
• Now the task of the RTOS is to read the data from the
sensors and move the actuators by performing some
calculations so that flight’s movement can be handled.
Applications of Real Time Operating System
• Image processing (IP):
• real time image processing is done so that we can
make some adjustments for the moving objects.
• In this, we need our computers, cameras or other
gadgets should work in real time as utmost precision
is required in the industrial automation tasks.
• For ex, something happens with the conveyor belt
when the item is moving downwards or some other
defect occurs, we can control these problems in the
real time if our system works in real time.
Applications of Real Time Operating System
• Low priority of tasks: The tasks which has the low priority
has to wait for a long time as the RTOS maintain the
accuracy of the current programs which are under
execution.
• Thread priority: as we know that there is very less
switching of tasks is done in RTOS. So that’s why its thread
priority is not good.
• Precision of code: as we know, in RTOS, event handling of
tasks is a strict process as it is error-free. So more precision
in code is required which is a difficult task for the
programmer as getting exact precision is not so easy.
• Complex algorithms: it makes use of some complex
algorithms so that the system can give the desired output.
These complex algorithms are difficult to understand.
Disadvantages of RTOS