Software & Operating Systems

Real-time operating system (RTOS)

Also known as: RTOS, real-time OS, real time operating system

A real-time operating system (RTOS) is an operating system designed to respond to events within guaranteed, predictable time limits, often thousandths of a second.

It's used where delays could be dangerous or costly, such as car braking systems, pacemakers, industrial robots, aircraft, and spacecraft. Examples include QNX, VxWorks, FreeRTOS, and Zephyr. While an RTOS is less flexible than Windows or macOS, its predictability is exactly what safety-critical devices need.

Real-time operating system (RTOS), explained at three levels

At home

An RTOS is like an ambulance dispatcher. A regular receptionist answers calls as fast as they can, and a short wait now and then is fine. A dispatcher must handle every emergency within a guaranteed time, so the most urgent call always jumps the queue, no matter what else is happening. A real-time operating system does the same for machines like airbags and pacemakers, where being late counts as failing.

At work

A real-time operating system, or RTOS, is a small operating system that guarantees tasks respond within strict, predictable time limits, often thousandths of a second. It always runs the most urgent task first and keeps little else running that could cause delays. Businesses care because RTOS software runs machinery, vehicles, and medical devices where a late response could cause an accident, a recall, or a failed safety certification.

Real-world examples

At home

Sophie learned her car's infotainment and driver-assistance systems ran on QNX, software developed in Ottawa.

At work

Carlos leads engineering at a Montreal medical device startup. His team chose a certified RTOS so their infusion pump's timing could pass regulatory review.

How it compares

featureReal-time operating system (RTOS)Operating system (OS)
PriorityPredictable timingOverall performance and features
Typical devicesCars, medical devices, robotsPCs, phones
SizeSmallLarge
AppsUsually one jobMany apps

An RTOS is about being on time. A general OS is about doing everything.

For analysts

For connected device projects, I'd define timing and update requirements early. RTOS choices are hard to change once hardware ships.

History & origin

Real-time computing grew from military and aerospace systems in the 1960s, including the Apollo Guidance Computer. QNX was founded in 1980 by two University of Waterloo graduates and became a Canadian success story, based in Ottawa's Kanata area; BlackBerry acquired it in 2010, and it runs in hundreds of millions of vehicles. Wind River's VxWorks, released in 1987, flew on NASA missions, including the Mars Pathfinder lander in 1997, where engineers remotely fixed a timing bug called priority inversion. Richard Barry created FreeRTOS in 2003, which Amazon took over in 2017. The open-source Zephyr project launched under the Linux Foundation in 2016. In my view, an RTOS is the most important software most people will never knowingly use.