A high-priority task waits for a lock held by a low-priority task, while a medium-priority task preempts the low-priority one, so the high-priority task is effectively delayed by the medium one (this famously affected the Mars Pathfinder).
Solutions: priority inheritance (the lock holder temporarily inherits the waiter's priority), priority ceiling protocols, or avoiding locks shared between very different priorities.
Loading…