ThreadXUserGuide
Chapter 7 Real-Time Embedded Multithreading Mutual Exclusion Challenges and Considerations.