Module 5.2 Notes - RTOS
Module 5.2 Notes - RTOS
RTOS
Real-time operating system (RTOS) is an operating system intended to serve real time
application that process data as it comes in, mostly without buffer delay. The full form of
RTOS is Real time operating system.
Function Library: It is an important element of RTOS that acts as an interface that helps you
to connect kernel and application code. This application allows you to send the requests to the
Kernel using a function library so that the application can give the desired results.
Memory Management: this element is needed in the system to allocate memory to every
program, which is the most important element of the RTOS.
Fast dispatch latency: It is an interval between the termination of the task that can be
identified by the OS and the actual time taken by the thread, which is in the ready queue, that
has started processing.
User-defined data objects and classes: RTOS system makes use of programming languages
like C or C++, which should be organized according to their operation.
TYPES OF RTOS:
In Hard RTOS, the deadline is handled very strictly which means that given task must start
executing on specified scheduled time, and must be completed within the assigned time
duration.
These type of RTOS also need to follow the deadlines. However, missing a deadline may not
have big impact but could cause undesired affects, like a huge reduction in quality of a
product.
Soft Real time RTOS, accepts some delays by the Operating system. In this type of RTOS,
there is a deadline assigned for a specific job, but a delay for a small amount of time is
acceptable. So, deadlines are handled softly by this type of RTOS.
Task – A set of related tasks that are jointly able to provide some system
functionality.
Job – A job is a small piece of work that can be assigned to a processor, and that may
or may not require resources.
Release time of a job – It’s a time of a job at which job becomes ready for execution.
Execution time of a job: It is time taken by job to finish its execution.
Deadline of a job: It’s time by which a job should finish its execution.
Processors: They are also known as active resources. They are important for the
execution of a job.
Maximum It is the allowable response time of a job is called its relative deadline.
Response time of a job: It is a length of time from the release time of a job when the
instant finishes.
Absolute deadline: This is the relative deadline, which also includes its release time.
Features of RTOS:
Here, are essential factors that you need to consider for selecting RTOS:
DISADVANTAGES OF RTOS:
RTOS system can run minimal tasks together, and it concentrates only on those
applications which contain an error so that it can avoid them.
RTOS is the system that concentrates on a few tasks. Therefore, it is really hard for
these systems to do multi-tasking.
Specific drivers are required for the RTOS so that it can offer fast response time to
interrupt signals, which helps to maintain its speed.
Plenty of resources are used by RTOS, which makes this system expensive.
The tasks which have a low priority need to wait for a long time as the RTOS
maintains the accuracy of the program, which are under execution.
Minimum switching of tasks is done in Real time operating systems.
It uses complex algorithms which is difficult to understand.
RTOS uses lot of resources, which sometimes not suitable for the system.