Firmware · RTOS: sharing safely
Mutexes and semaphores look alike but serve different purposes, and using the wrong one leads to subtle failures.