8 Protecting Data and Synchronizing Tasks

Join our book community on Discord

https://packt.link/embedded

A qr code on a white background Description automatically generated

What do race conditions, corrupt data, and missed real-time deadlines all have in common? Well, for one, they are all mistakes that can be easily made when operations are performed in parallel. These are also mistakes that are avoidable (in part) through using the right techniques.This chapter covers many of the RTOS primitives that are used to synchronize tasks and protect shared data. The explanations in this chapter contain example-code, and analysis performed using Ozone and SystemView.First, we will explore the differences between semaphores ...

Get Hands-On RTOS with Microcontrollers - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.