Site icon DataFlair

Real Time Operating System

Real-Time Operating System

FREE Online Courses: Elevate Skills, Zero Cost. Enroll Now!

A real-time operating system is a type of OS that serves real-time applications and processes data without buffer delay. This time-bound system has fixed time constraints and calculates processing time requirements in tenths of seconds increments of time. To avoid system failure, processing should be done within the specified constraints. We use RTOS in industrial control, flight control, and real-time simulations.

Why use Real Time Operating System?

Following are the reasons we should use RTOS:

Components of RTOS

Following are the components of Real Time Operating System:

1. The Scheduler: Tells the order in which tasks should be executed. This order is generally based on priority.

2. Symmetric Multiprocessing (SMP): These are various multiple tasks that the RTOS handles in order to perform parallel processing.

3. Function Library: It acts as an interface and helps connect the kernel to the application code. This allows the user to send requests to the Kernel using a function library and gives the application the desired results.

4. Memory Management: It allocates memory to every program.

5. Fast dispatch latency: The interval between the termination of a task that is identified by the OS and the actual time taken by the thread that has started processing in the ready queue.

6. User-defined data objects and classes: The programming languages like C or C++ used by the RTOS should be organized according to their operation.

Types of RTOS

Technology is evolving rapidly!
Stay updated with DataFlair on WhatsApp!!

Following are the three types of RTOS systems:

1. Hard Real-Time:

This type handles deadlines very strictly. Thus, the given task must start and finish execution within the assigned time duration. Example: Medical critical care system and aircraft systems.

2. Firm Real-Time:

This type needs to follow deadlines though one or two missing deadlines would not have a big impact they could still cause undesired effects. These effects include a huge reduction in the quality of a product. Example: Multimedia applications.

3. Soft Real-Time:

This type handles delays by the OS softly. Though there is a deadline assigned for a specific job, a little delay is acceptable. Example: Livestock price quotation system.

Terms in RTOS

Following are some important terms used in RTOS:

Features of RTOS

Some important features of RTOS:

Factors to select an Real-Time Operating System

Some essential factors for selecting RTOS are:

Difference between GPOS and RTOS

General-Purpose Operating System Real-Time Operating System
Unnoticed priority inversion No predictability guarantees
Kernel’s operation may/may not be preempted Kernel’s operation can be preempted
For desktop PC and laptop For embedded application
Process-based Scheduling Time-based scheduling
Interrupt latency is not important Interrupt lag is minimal
No priority inversion mechanism Priority inversion mechanism cannot modify by the system

Applications of Real Time Operating System

Following are the applications of RTOS:

Disadvantages of Real Time Operating System

Following are the disadvantages of using RTOS:

Summary

RTOS is an OS that serves real-time applications and processes data without buffer delay. Some important components of the RTOS system are: Scheduler, Symmetric Multiprocessing, Function Library, Memory Management, Fast dispatch latency, and User-defined data objects and classes. There are three types of RTOS, namely, Hard time, Soft time, and Firm time. Its biggest drawback is that it only concentrates on a few tasks.

Exit mobile version