Data structures · Queues and deques
A shared printer serves jobs in the order they arrive; a short simulation with a queue and a clock says how long each waits.