Operating Systems and Embedded Software · Operating system
QNX
Also known as QNX Neutrino, QNX OS, QNX OS for Safety, QNX SDP
A commercial POSIX real-time operating system built around a microkernel. Its drivers, file systems and network stacks run as separate memory-protected processes, and it is used in automotive and other embedded systems, including safety-related ones.
Explanation
QNX OS (historically QNX Neutrino) implements core POSIX real-time features and message passing in a small microkernel. A process manager creates and manages POSIX processes and threads, while services such as file systems, networking and device drivers run as resource managers in user space, connected by inter-process communication. The OS makes full use of the MMU so each process has its own protected address space.
This design keeps the amount of code running with kernel privilege small and allows a failed driver or service to be contained and restarted. QNX is developed by BlackBerry. The current platform generation is QNX Software Development Platform (SDP) 8.0, and QNX OS for Safety 8.0 is certified by TÜV Rheinland to ISO 26262 ASIL D, IEC 61508 SIL 3, IEC 62304 Class C and ISO/SAE 21434.
A certified OS does not make a product safe by itself. The integrator must follow the OS safety manual and still certify the overall system. QNX is proprietary software with commercial licensing, unlike the GPL-licensed Linux kernel.
How it works
The microkernel provides threads, scheduling, interrupts, timers and synchronous message passing; the process manager (procnto) adds process creation and memory management. A service such as a file system or CAN driver is an ordinary process that registers a path name and receives POSIX calls such as open, read and write as messages. Because services are isolated processes, a fault in one can be contained and the service restarted without rebooting the system.
Automotive applications
- Digital instrument clusters and cockpit domain controllers
- Safety-related ECUs needing a pre-certified RTOS
- ADAS compute platforms running POSIX applications
- Industrial and medical devices requiring IEC 61508 or IEC 62304 compliance
Example
An instrument cluster runs on QNX OS for Safety. The telltale-rendering process has high priority and its own address space, so a crash in the media player process cannot corrupt telltale memory, and the faulty process can be restarted while the cluster keeps running.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- QNX SDP 8.0 System Architecture: The Philosophy of the QNX OS (opens in a new tab)
- QNX OS for Safety (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.