Firmware · RTOS: sharing safely
Two tasks that each wait for a resource the other holds can freeze a system, and lock order decides whether that can happen.