One Thread

A single process. Linear. Sequential. Alone.

The Fork

One becomes many. Processes diverge, each pursuing its own path.

The Weave

Threads interlace. Shared resources demand coordination — the loom of concurrency.

The Lock

Mutual exclusion. Only one thread may pass at a time.

mutex.lock(); // critical section

The Deadlock

Circular waiting. Each thread holds what another needs. Nothing moves.

The Resolution

Harmony restored. Threads converge, synchronized, efficient — the engine hums.

concurrengine

Concurrency, woven beautifully.