Every program is already a forest.

0001

thread

A thread is a memory of having been somewhere else. It carries its own stack, like a traveler carrying their own water.

The kernel knows it. The garden does not mind.

0002

fiber

A fiber yields when it has nothing to say. The runtime listens for the silence, and lends the breath to another.

Cooperative, like neighbors sharing a well.

0003

the rejoin

Two threads meet at a join, having forgotten which was first.

0144

mutex

A single key, passed between hands. No one speaks while another speaks.

Held briefly. Released by reflex, not by promise.

0233

channel

A channel is a river with two willing banks. The current is whatever you place into it.

Buffered or unbuffered — only the patience differs.

0377

barrier

No one continues until everyone arrives. The grove waits for the slowest leaf.

0610

select

When several rivers offer themselves, the listener takes the first that speaks. The others continue undiminished.

Choice without preference is its own discipline.

0987

deadlock

A deadlock is a conversation in which neither speaker will pause. The garden, of course, simply waits.

— ma —

1597

scheduler

The scheduler is patient. It is also a clock.

2584

yield

To yield is to remember that the breath is shared. The fiber rests; another speaks.

4181

spawn

From one path, two. Each remembers nothing of the other except the shared root.

6765

await

To await is to plant a stone in the riverbed and trust the current to find it.

10946

cancel

Some work knows when to stop without being told. This is dignity, not failure.

17711

resume

A paused fiber is not a stopped fiber. The pause is part of the path.

Slow your scroll, and the spore-light blooms.

the queue

Beneath the surface of the runtime there is a still water. Tasks rest in it like koi — unhurried, indifferent to the order of their arrival, knowing they will each be lifted in turn.

The trunk does not pass through this pool. It steps around it, the way a path of stones steps around a still mirror.

Even concurrency rests.

to write — moss @ concurrengine . com