LESSON 29.15 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
FCFS, priority and fairness
Watch four queue policies serve one burst of requests, and see who waits.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 29.15 · SCHEDULER13 REQUESTS · 2 SLOTS
01
Stage 1 of 6 · Bursty arrivals
13 requests arrive in 16 steps. Three long batch prompts come first, then short interactive prompts.
Explain it simply
Each row is one request, and time runs to the right. A square marks a batch request, and a dot marks an interactive one. The dashed bar shows the steps of work it needs. Only 2 requests can run at once, so the rest wait in a queue.
13 rows, one per request. Requests 1 to 3 are long batch prompts that arrive at steps 0 and 1. Requests 4 to 13 are short interactive prompts that arrive up to step 15. 2 slots.
request, prefillwait in queueoutput tokensslots, targets
Toy: 13 requests, 2 tenants, 1 engine step = 50 ms
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A request holds a slot for its prefill steps plus its later tokens.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.