Data structures · Queues and deques

Lab: The print queue

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