EmbeddedRelated.com
Books
The 2026 Embedded Online Conference

Real-Time Embedded Multithreading Using ThreadX: Third Edition

Lamie, Edward L. 2015

This third edition of Real-Time Embedded Multithreading contains the fundamentals of developing real-time operating systems and multithreading with all the new functionality of ThreadX Version 5. ThreadX has been deployed in excess of 5.5 billion deployments worldwide. General concepts and terminology are detailed along with problem solving and discussion of common pitfalls. The features and services of ThreadX are covered, including threads, mutexes, semaphores, memory pools, application timers, message queues, event flags groups, preemption-threshold, event-chaining, and designing a multithreaded system. There are no references to specific processors to allow for the book to be technology agnostic, and applicable to all types of microprocessors that the reader may be working with. A ThreadX Win32 Demo version and all project files used in the book are available for download.


Why Read This Book

You will learn practical, proven techniques for building robust real-time embedded applications using ThreadX, grounded in hands‑on examples and common design patterns. The book emphasizes problem solving and real-world pitfalls, so you can apply ThreadX services like threads, mutexes, semaphores, timers, and event‑chaining confidently across processor families.

Who Will Benefit

Embedded software engineers and firmware developers with some C and embedded-systems experience who need to design, implement, or maintain real-time multithreaded systems using ThreadX or similar RTOSes.

Level: Intermediate — Prerequisites: Working knowledge of C programming, familiarity with embedded systems concepts (interrupts, memory map, peripheral basics), and basic understanding of concurrency and interrupts. (Assembler/porting experience helpful but not required.)

Get This Book

Key Takeaways

  • Implement ThreadX threads and configure thread priorities, stacks, and scheduling behaviors
  • Design and use synchronization primitives (mutexes, semaphores, event-flag groups) to avoid deadlocks and priority inversion
  • Use memory pools, message queues, and timers to build efficient inter-thread communication and resource management
  • Apply ThreadX-specific features such as preemption-threshold and event-chaining to optimize real-time responsiveness
  • Diagnose and avoid common multithreading pitfalls and performance bottlenecks in embedded firmware

Topics Covered

  1. 1. Introduction to Real-Time Multithreading and RTOS Concepts
  2. 2. ThreadX Overview and Architecture
  3. 3. Thread Creation, Scheduling, and Context Switching
  4. 4. Synchronization: Mutexes, Semaphores, and Event Flags
  5. 5. Message Queues and Memory Pools
  6. 6. Application Timers and Timer Management
  7. 7. Advanced ThreadX Features: Preemption-Threshold and Event-Chaining
  8. 8. Designing a Multithreaded Embedded System
  9. 9. Porting ThreadX and Processor/Board Considerations
  10. 10. Debugging, Testing, and Performance Tuning
  11. 11. Common Pitfalls, Concurrency Anti-Patterns, and Solutions
  12. 12. Case Studies and Example Applications
  13. Appendices: API Reference Summary, Configuration Tips, Further Reading

Languages, Platforms & Tools

CAssemblyARM Cortex (general)RISC-V (general)General microcontrollers and microprocessors (technology-agnostic)ThreadX (RTOS)GCC toolchainIAR Embedded WorkbenchKeil MDKJTAG/SWD debuggersGDB/embedded debuggers

How It Compares

Similar in focus to Jean Labrosse's µC/OS books in teaching RTOS design, but this title is ThreadX‑centric and practical; compared to FreeRTOS guides, it delves into ThreadX-specific services (preemption-threshold, event-chaining) rather than a generic RTOS API.

Related Books

Bryant, Randal, O'Hallaron,...
The 2026 Embedded Online Conference