All Questions
Managing Long Running Tasks hard

In a Priority Queue system (High vs Low), what is 'Starvation' and how do you fix it?

  1. A The workers get hungry.
  2. B Low priority tasks never run because new High priority tasks keep arriving. Fix: 'Aging' (gradually upgrading priority of old low tasks) or Dedicated Capacity (20% of workers only work Low queue).
  3. C The queue gets full.
  4. D High priority tasks are slow.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions