ArticleslgStudy

computer science

ThreadX

ThreadX is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ThreadX rather than just read about it. In short: ThreadX is an embedded real-time operating system (RTOS) programmed mostly in the C language. It was originally released in 1997 as ThreadX when Express Logic first developed it, later it was renamed to Azure RTOS (2019) after Express Logic was purchased by Microsoft, then most recently it was renamed again to Eclipse ThreadX (2023), or "ThreadX" in its short form, after it transitioned to free open source model und…

ThreadX — main illustration
ThreadX — illustration

Key takeaways

  • ThreadX belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ThreadX to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ThreadX from memory before moving on to harder problems.

Reference excerpt

ThreadX is an embedded real-time operating system (RTOS) programmed mostly in the C language. It was originally released in 1997 as ThreadX when Express Logic first developed it, later it was renamed to Azure RTOS (2019) after Express Logic was purchased by Microsoft, then most recently it was renamed again to Eclipse ThreadX (2023), or "ThreadX" in its short form, after it transitioned to free open source model under the stewardship of the Eclipse Foundation.

History In 1997, ThreadX was first released and marketed by Express Logic of San Diego, California, United States. It was developed by William Lamie, who was also the original author of Nucleus and PX5 RTOS, and was president and CEO of Express Logic. ThreadX version 4 was introduced in 2001, version 5 was introduced in 2005, and then version 6 was introduced in 2020 (the latest major version). 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. ThreadX achieved safety certifications for: TÜV IEC 61508 in 2013, and UL 60730 in 2014. GUIX – the embedded UI for ThreadX was introduced in 2014. On April 18, 2019, Microsoft purchased Express Logic for an undisclosed sum and it was renamed to Azure RTOS. On November 21, 2023, Microsoft announced Azure RTOS would be transitioning to an open source model under the stewardship of the Eclipse Foundation, and making the project available under the permissive MIT License. With Eclipse Foundation as the new home, Azure RTOS was renamed to Eclipse ThreadX, or "ThreadX" in its short form.

Overview

The name ThreadX refers to the threads used as the executable elements, with X representing context switching. ThreadX provides priority-based, pre-emptive scheduling; fast interrupt response; memory management; interthread communication; mutual exclusion; event notification; and thread synchronization features. Major distinguishing technological characteristics of ThreadX include a 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 safety certifications from TÜV and UL and is Motor Industry Software Reliability Association and MISRA C compliant. ThreadX is the foundation of Express Logic's X-Ware Internet of things (IoT) platform, which includes embedded file system support (FileX), embedded UI support (GUIX), embedded Internet protocol suite (TCP/IP), cloud connectivity (NetX/NetX Duo), and Universal Serial Bus (USB) support (USBX). ThreadX is liked by developers and is a popular RTOS. As of 2017, ThreadX RTOS has become one of the most popular RTOSs in the world, deployed in over 6.2 billion devices, including consumer electronics, medical devices, data networking applications, and SoCs.

Technology ThreadX implements a priority-based, pre-emptive scheduling algorithm with a proprietary feature called preemption-threshold. The threshold provides greater granularity within critical sections, reduces context switching, 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 APIs that can signal an external event. This helps applications chain together various public objects in ThreadX allowing one thread to 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 the ThreadX Modules component.

Safety certification ThreadX (and FileX and NetX Duo) have been precertified by SGS-TÜV Saar to the following safety standards: IEC 61508 SIL 4, IEC 62304 Class C, ISO 26262 ASIL D, and EN 50128 SW-SIL 4. ThreadX (and FileX and NetX Duo) have been precertified by UL to the following safety standards: UL/IEC 60730, UL/IEC 60335, UL 1998 ThreadX has also been certified to DO-178 standards by various military and aerospace companies. It is supported by popular Transport Layer Security (SSL/TLS) libraries such as wolfSSL.

Packaging As of 2017, ThreadX is packaged as part of X-Ware IoT Platform in full source code and with no runtime royalty payment.

Major components The major ThreadX components are:

ThreadX ThreadX is the real-time operating system (RTOS).

FileX and LevelX FileX is an optional file system for ThreadX. It supports FAT12, FAT16, FAT32, and exFAT file systems. The latter extends FAT file sizes beyond 4 GB, which is useful for large video files. It also offers fault tolerance and supports direct NOR and NAND flash memory media through an optional flash wear leveling product called LevelX.

GUIX GUIX is an optional graphical user interface (GUI) for ThreadX. It provides a 2D computer graphics system that 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 NetX Duo is an optional TCP/IP network system for ThreadX. It supports both IPv4 and IPv6 networking with IPsec network security. TCP and UDP socket layers are provided by TLS / DTLS. Optional protocols include ARP, Auto IP, DHCP, DNS, DNS-SD, FTP, HTTP, ICMP, IGMP, mDNS, POP3, PPP, PPPoE, RARP, TFTP, SNTP, SMTP, SNMP, and Telnet. 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.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with ThreadX

Start with the simplest possible case. Write down what ThreadX claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ThreadX before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ThreadX ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ThreadX

In research
ThreadX appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ThreadX in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ThreadX is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1997 software, ARM operating systems, Microkernel-based operating systems, so understanding it makes those chapters shorter.
In everyday life
Look for ThreadX outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “ThreadX” →

How to study ThreadX in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ThreadX means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ThreadX out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ThreadX in simple terms?

ThreadX is an embedded real-time operating system (RTOS) programmed mostly in the C language. It was originally released in 1997 as ThreadX when Express Logic first developed it, later it was renamed to Azure RTOS (2019) after Express Logic was purchased by Microsoft, then most recently it was rena…

Why does ThreadX matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ThreadX?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ThreadX.

Tags

  • 1997 software
  • ARM operating systems
  • Microkernel-based operating systems
  • Microkernels
  • Microsoft operating systems
  • Real-time operating systems
  • Software programmed in assembly language
  • X86 operating systems

Keep exploring