← Back to the playground
ABOUT THE PROJECT

Make the invisible decisions visible.

Lottery Scheduler is a free educational playground for students learning how an operating system chooses what runs next.

Built for understanding

Enter a workload, inspect the next decision, and connect the resulting timeline with the underlying rule. The name refers to lottery scheduling, a proportional-share CPU scheduling algorithm. This website does not provide lottery draw schedules, gambling tools, or predictions.

Methodology

The initial engine is single-core, has no I/O or context-switch cost, and uses integer abstract time units. Lottery and round robin offer continuous and finite modes. FCFS and SJF are non-preemptive finite policies. Round robin admits arrivals at a slice boundary before requeuing the interrupted job. Ties use input order after the documented primary ordering.

Version 1 scenarios use FNV-1a seed hashing and the mulberry32 pseudorandom generator. A seed is an educational reproducibility aid, not a cryptographic randomness guarantee. Configuration fragments are versioned so incompatible future formats can be rejected rather than silently misinterpreted.

Academic sources

Explanations and worked examples are written for this tool. Verify assignment-specific conventions with your instructor; different tie and arrival rules can produce different valid traces.

KEEP EXPLORINGUnderstand lottery scheduling ↗Lottery vs. round robin ↗Work through arrival times ↗