IT lexicon › Programming › Starvation

Starvation

Programming På svenska → Updated: 2026-11-15

A condition where a thread never gets CPU time despite being ready to run, usually because higher-priority threads always consume the resource first.

Starvation occurs in concurrent systems where the scheduler favors certain threads over others. Unlike deadlock, which is symmetric mutual blocking, starvation is asymmetric — some threads make progress while others never do. The problem is especially acute in priority-based scheduling when low-priority work never gets a turn under sustained system load.

Common causes include priority inversion (a low-priority thread holds a resource that a high-priority thread needs) and unfair lock algorithms. Solutions include timeouts, acquire-release mechanisms with fairness guarantees, and acquire-semantics that guarantees progress.

← Back to the lexicon