|Developer||Express Logic (original)|
|Source model||Source-available software|
|Latest release||6.2.0 / October 27, 2022|
|Marketing target||Embedded systems, IoT: including sensors, devices, edge routers, gateways|
|Platforms||ARC, ARM, Blackfin, CEVA, C6x, MIPS, NXP, PIC, PowerPC, RISC-V, RX, SH, SHARC, TI, V850, Xtensa, x86, Coldfire, others|
|Kernel type||Embedded, deterministic, real-time microkernel, picokernel|
|Embedded UI support (GUIX)|
ThreadX was originally developed and marketed by Express Logic of San Diego, California, United States. The author of ThreadX is William Lamie, who was also the original author of the Nucleus RTOS in 1990. William Lamie was President and CEO of Express Logic.
The name ThreadX is derived from the threads that are used as the executable elements, and the letter X represents context switching, i.e., it switches threads. ThreadX provides priority-based, preemptive scheduling, fast interrupt response, memory management, interthread communication, mutual exclusion, event notification, and thread synchronization features. Major distinguishing technology characteristics of ThreadX include preemption-threshold, priority inheritance, efficient timer management, fast software timers, picokernel design, event-chaining, and small size: minimal size on an ARM architecture processor is about 2 KB.
ThreadX supports multi-core processor environments via either asymmetric multiprocessing (AMP) or symmetric multiprocessing (SMP). Application thread isolation with memory management unit (MMU) or memory protection unit (MPU) memory protection is available with ThreadX Modules.
ThreadX has extensive safety certifications from Technischer Überwachungsverein (TÜV, English: Technical Inspection Association) and UL (formerly Underwriters Laboratories) and is Motor Industry Software Reliability Association MISRA C compliant.
ThreadX is the foundation of Express Logic's X-Ware Internet of things (IoT) platform, which also includes embedded file system support (FileX), embedded UI support (GUIX), embedded Internet protocol suite (TCP/IP) and cloud connectivity (NetX/NetX Duo), and Universal Serial Bus (USB) support (USBX). ThreadX has won high appraisal from developers and is a very popular RTOS. As of 2017[update], according to marketing research firm VDC Research, the ThreadX RTOS has become one of the most popular RTOSes in the world, having been deployed in over 6.2 billion devices, including consumer electronics, medical devices, data networking applications, and SoCs.
- Analog Devices
- Precision Microcontrollers
- ULP Microcontrollers
- ARM Cortex-A
- ARM Cortex-R
- ARM Cortex-M
- ARM Cortex-A 64-bit
- ARMv8M TrustZone
- Nios II
- Arria 10
- SAM C-V
- MIPS32 4Kx
- MIPS32 14Kx
- MIPS32 24Kx
- MIPS32 34Kx
- MIPS32 74Kx
- MIPS32 1004Kx
- Silicon Labs
- Giant Gecko
- Giant Gecko S1
- Happy Gecko
- Jade Gecko
- Leopard Gecko
- Pearl Gecko
- Tiny Gecko
- Wonder Gecko
- Zero Gecko
- ARC 600
- ARC 700
- ARC EM
- ARC HS
- Texas Instruments
- SimpleLink MSP432
- Zynq UltraScale+
ThreadX was first introduced in 1997. ThreadX 4 was introduced in 2001. ThreadX 5 was introduced in 2005, and is the latest version as of 2020[update].
FileX – the embedded file system for ThreadX was introduced in 1999.
NetX – the embedded TCP/IP networking stack for ThreadX was introduced in 2002.
USBX – the embedded USB support for ThreadX was introduced in 2004.
ThreadX SMP for SMP multi-core environments was introduced in 2009.
ThreadX Modules was introduced in 2011.
GUIX – the embedded UI for ThreadX was introduced in 2014.
ThreadX implements a priority-based, preemptive scheduling algorithm with a proprietary feature called preemption-threshold. The latter has been shown to provide greater granularity within critical sections, reduce context switches, and has been the subject of academic research on guaranteeing scheduling.
ThreadX provides a unique construct called event chaining, where the application can register a callback function on all application programming interfaces (APIs) that can signal an external event. This helps applications chain together various public objects in ThreadX such that one thread can effectively block on multiple objects.
ThreadX also provides counting semaphores, mutexes with optional priority inheritance, event flags, message queues, software timers, fixed sized block memory, and variable sized block memory. All APIs in ThreadX that block on resources also have an optional timeout.
ThreadX offers multi-core processor support via either AMP or SMP. Application code isolation is available through ThreadX Modules component.
ThreadX RTOS components include:
- Embedded file system
- Embedded graphical user interface
- Embedded networking
- Embedded USB
- Safety certification
Embedded file system
FileX is the embedded file system for ThreadX. FileX supports FAT12, 16, 32, and exFAT formats. The latter extends FAT file sizes beyond 4 GB, which is especially useful for video files, and it requires license directly from Microsoft for use. FileX also offers fault tolerance and supports direct NOR and NAND flash memory media through a flash wear leveling product called LevelX.
Embedded graphical user interface
GUIX is the embedded graphical user interface (GUI) for ThreadX. GUIX provides a 2D runtime system (environment) for embedded applications running ThreadX. GUIX supports multiple display devices with a variety of screen resolutions and color depths. Many predefined graphical widgets are available. A Windows WYSIWYG host tool called GUIX Studio automatically generates C code for GUIX to execute at runtime.
NetX Duo is the embedded TCP/IP system for ThreadX. NetX Duo supports both IPv4 and IPv6 networking along with protocols such as ARP, Auto IP, DHCP, DNS, DNS-SD, FTP, HTTP, ICMP, IGMP, mDNS, POP3, PPP, PPPoE, RARP, TFTP, SNTP, SMTP, SNMP, and TELNET. IP layer network security is provided by IPsec. TCP and UDP socket layer security is provided by TLS and DTLS, respectively. IoT Cloud protocol support includes CoAP, MQTT, and LWM2M. NetX Duo also supports Thread and 6LoWPAN. In 2017, ThreadX and NetX Duo became a Thread Certified Product.
USBX is the embedded Universal Serial Bus (USB) system for ThreadX. USBX supports both host and device. Host controller support includes EHCI, OHCI, and proprietary USB host controllers. USBX also supports OTG. USBX class support includes Audio, Asix, CDC/ACM, CDC/ECM, DFU, GSER, HID, PIMA, Printer, Prolific, RNDIS, and Storage.
Products using it
The Raspberry Pi line of single-board computers runs ThreadX as a binary blob on the graphics processing unit (GPU). This controls initial booting, which in turn is used to boot secondary operating systems such as Linux, and continues to operate in a more privileged role even after the boot process.
- "Releases · azure-rtos/Threadx". GitHub.
- Cole, Bernard; McConnel, Toni (September 3, 2010). "Bill Lamie: Story of a man and his real-time operating systems". Embedded. AspenCore.
- Janakiram, MSV (April 21, 2019). "How Does The Express Logic Acquisition Help Microsoft and the IoT Ecosystem". Forbes.
- Carbone, John. "High Performance RTOS "ThreadX": Express Logic: Enabling Shorter Time to Market and Reduced Development Cost". Renesas.
- "IoT & Embedded Operating Systems". VDC Research. Retrieved 2018-07-31.
- Wang, Yun; Saksena, Manas. "Scheduling Fixed-Priority Tasks with Preemption Threshold" (PDF). Department of Computer Science. University of Utah.
- "Event Chaining Enables Real-Time Systems to Respond to Multiple Real-Time Events More Efficient" (PDF). Express Logic.
- "Thread Certified Products". Thread Group. Archived from the original on 2018-06-14. Retrieved 2018-01-11.
- "wolfSSL with Improved ThreadX/NetX Support". wolfSSL. 2018-01-16. Retrieved 2019-02-13.
- "NASA's "Deep Impact" employs embedded systems to score bullseye 80 million miles away". Military Embedded Systems.
- "What's Wrong with the Raspberry Pi". Own Your Bits.