queue-demo

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package main demonstrates why queues form, using a single-station discrete-event simulation with a "lunch counter" metaphor.

Six scenarios progress from lockstep (no queue possible) through D/D/1, M/D/1, D/M/1, M/M/1, to overloaded — showing that variability creates queues even when average capacity exceeds average demand.

Run:

go run ./examples/queue-demo/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL