Tinker Queues and background jobs

by Samy (Kondasamy Jayaraman) · drawn with Colorfigures by April Zhu

09:00

09:00. The till answers every order at once.0 waiting · 1 busy · 0 done

Chapter 2 of 7

A ticket and a worker

The team’s fix: the till only writes a ticket and answers at once. Someone in the back does the slow part.

This chapter: What changes for the customer when the work moves to a queue?

About this chapter

You will learn

  • A queue holds jobs until a worker is free
  • The till answers before the work is done
  • A worker takes one job at a time

Words you’ll meet

Queue
A line of jobs waiting their turn: here, the order rail.
Job
One piece of work on the queue: here, ship one order.
Worker
A program that takes jobs off the queue and does them, one at a time.

Step 1 of 5

Now the till hangs each order’s on a , the rail, and answers the customer straight away.

Step to 09:01.