Firmware · RTOS: sharing safely
A critical section protects shared data by pausing interrupts, but everything that needs them has to wait in the meantime.