Firmware · RTOS: sharing safely

Deadlock

Two tasks that each wait for a resource the other holds can freeze a system, and lock order decides whether that can happen.