Concurrency, races and priority inversion
Examine shared-state races, critical sections, mutexes and scheduling trade-offs in firmware.
View lesson accessAll lessonsWhat the lesson covers
The course lesson is called The counter that lost count. The pulse counter reads lower than the pulses delivered. Two tasks increment it, and sometimes an update vanishes. Then a fix with a mutex makes the high-priority task miss its deadline.
- race conditions
- critical sections
- mutex
- priority inversion
- deadlock
Before you start
Question to think about: Which contexts access the same state, and what ordering or ownership guarantees are required?
Preparation exercise: Map the participating contexts and list operations that must not observe inconsistent state.
This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.
Related free reading
Test your understanding
Practice free firmware interview questions and mock interviews · Assess your readiness