... Opens in a new tab
  •    EN
  • RTOS

    RTOS (Real-Time Operating System) is an operating system designed to perform tasks with predictable response times to events. In an RTOS, it is important not only to produce the correct computational result but also to complete the required operations within a specified time interval.

    Such operating systems are used in embedded and specialized computing systems, including industrial equipment, vehicles, robotics, telecommunications equipment, medical devices, and other systems where a delay in performing a particular task can affect the operation of the entire device.

    How RTOS Works

    A conventional operating system distributes resources among many processes, aiming to provide good overall performance and efficient simultaneous operation of applications. For an RTOS, one of the primary requirements is determinism — the ability to predict the maximum time the system will take to respond to a particular event.

    An RTOS application typically consists of several tasks or threads to which priorities are assigned. The scheduler determines which task should be executed by the processor at any given moment.

    For example, an industrial equipment controller may simultaneously receive data from sensors, update an interface, and control an electric motor. If an emergency condition is detected, the high-priority task responsible for handling that event must receive CPU time within the specified deadline, even if less important operations are currently being performed.

    The key characteristic of an RTOS is therefore not simply high speed but predictable latency.

    Task Scheduling in RTOS

    Most RTOSs use priority-based scheduling. Time-critical tasks are assigned higher priorities than background operations.

    In systems with preemptive scheduling, a higher-priority task that becomes ready to run can interrupt a lower-priority task currently being executed. Once the critical operation is complete, the interrupted task can resume execution.

    An RTOS also provides mechanisms for synchronization and data exchange between tasks, including semaphores, mutexes, message queues, events, and other forms of inter-process or inter-thread communication.

    System design must also take into account situations in which one task is waiting for a resource held by another. For example, priority inversion occurs when a high-priority task is effectively blocked by a lower-priority task. RTOSs can use special mechanisms, including priority inheritance, to reduce the impact of such situations.

    Hard and Soft Real-Time

    Real-time systems differ in how critical it is to meet a specified execution deadline.

    Hard real-time system — missing a timing constraint is considered unacceptable and may constitute a system failure. This approach is required, for example, in certain transportation control systems, industrial equipment, and other safety-critical processes.

    Soft real-time system — an occasional delay is undesirable and may reduce the quality of operation but generally does not cause a critical failure of the entire system. Some multimedia and telecommunications tasks can fall into this category.

    There is also firm real-time, where a result produced after its deadline no longer has practical value, although an occasional missed deadline does not necessarily cause a catastrophic system failure.

    Dedicated Servers Hosting

     

    RTOS and General-Purpose Operating Systems

    The main difference between an RTOS and a general-purpose operating system lies not in the number of features or processor performance but in the timing requirements for operations.

    Windows, standard Linux configurations, and other general-purpose operating systems are designed for a wide range of applications and are optimized for factors including overall performance, throughput, and user experience. They do not always guarantee a strictly defined maximum response time to an event.

    An RTOS is designed so that critical tasks can be completed within predictable time limits. Particular attention is therefore paid to the scheduler, interrupt handling, context-switching time, and other potential sources of latency.

    Linux can also be used for real-time workloads when appropriately configured and combined with mechanisms designed to reduce unpredictable latency.

    RTOS in Embedded Systems

    RTOSs are particularly common in embedded systems. Such devices often have limited memory and computing resources and perform a predefined set of functions.

    Unlike a desktop operating system, an RTOS may not include a conventional graphical user interface, file manager, or other user-facing components. Some systems have a relatively small memory footprint and can run on microcontrollers.

    Well-known real-time operating systems include:

    • FreeRTOS;
    • Zephyr;
    • QNX;
    • VxWorks;
    • ThreadX.

    For example, FreeRTOS is widely used on microcontrollers with only a few kilobytes of memory, while QNX and VxWorks appear in larger industrial and transportation systems.

    They differ in architecture, licensing, supported hardware, and areas of application.

    Where RTOS Is Used

    Real-time operating systems are used wherever a computing system must respond to external events within defined time constraints.

    Examples include:

    • industrial controllers;
    • robots;
    • automotive electronic control units;
    • networking and telecommunications equipment;
    • medical devices;
    • aviation systems;
    • IoT equipment.

    For example, an airbag control unit must evaluate sensor data within milliseconds, while a temperature sensor in a building has far wider time windows.

    Specific requirements vary significantly. A small sensor may require a compact RTOS for a microcontroller, while a complex industrial or transportation system may use an operating system with advanced process isolation, networking capabilities, and functional safety mechanisms.

    FAQ

    RTOS stands for Real-Time Operating System.
    An RTOS is designed to execute critical tasks predictably within specified time limits, while general-purpose operating systems are typically optimized for a broader range of workloads and overall performance.
    No. Real-time primarily refers to predictable response times. A general-purpose operating system may complete a particular operation faster but may not guarantee the required maximum latency.
    Hard real-time is a model in which missing the specified deadline for a critical operation is considered unacceptable and may be treated as a system failure.
    RTOSs are used in embedded systems, industrial automation, vehicles, robotics, telecommunications equipment, IoT devices, and other systems with strict response-time requirements.

    Fill out the application and wait for a call from our specialists