QamoosTech
Programming FundamentalsRuntime and memoryIntermediate

Starvation

Pronunciationstar-VAY-shun

Definition

Starvation happens when a process or thread never gets the resource it needs, such as CPU time or a lock, because others keep getting it first.

Where you hear it

In OS and concurrency courses, job queue priority designs and incidents where "one job never runs".

Examples

  • Low-priority jobs never run while high-priority ones keep arriving; that's starvation.
  • Aging raises a waiting task's priority over time.
  • Low-priority emails were starved for hours because high-priority jobs kept arriving.

Common mistake

Confusing it with deadlock. In starvation others are making progress; only one task is ignored.

Don't confuse with

A deadlock, where tasks are stuck waiting on each other and nobody progresses.

Say it at work

  • In a meeting or chatAdd priority aging to avoid starvation.
  • In an email or ticketWhy does this job never get picked up?