Expand description
simu in 10 minutes — a guided tour, one concept per chapter.
This tutorial mirrors the structure of SimPy’s
“SimPy in 10 minutes”
so that readers who know SimPy can map their knowledge directly, and
newcomers get the gentlest possible on-ramp. Every code block is a doc-test:
it compiles and runs on every cargo test, so the tutorial cannot drift out
of date.
| Chapter | You will learn |
|---|---|
ch01_basic_concepts | What a process is; spawning; timeouts; running the clock |
ch02_waiting_for_processes | One process waiting for another to finish |
ch03_events_and_cancellation | Signalling between processes; cancelling work early |
ch04_shared_resources | Queuing for limited resources |
ch05_how_to_proceed | The rest of the toolbox, and where to go next |
Each chapter’s example also exists as a runnable program in examples/
(cargo run --example intro_car, etc.).
This module contains no code — only documentation.
Modules§
- ch01_
basic_ concepts - Chapter 1: Basic concepts — processes, timeouts, and the clock.
- ch02_
waiting_ for_ processes - Chapter 2: Waiting for another process.
- ch03_
events_ and_ cancellation - Chapter 3: Events, and cancelling work early.
- ch04_
shared_ resources - Chapter 4: Shared resources — queuing for limited capacity.
- ch05_
how_ to_ proceed - Chapter 5: How to proceed.