decisions AMENDED

263. Threads are built: more than one thread in an address space

The ruling

§105 (std::thread::spawn stays declined, until a customer needs it) declined threads, and its 2026-10-07 amendment reopened it for read-write ZFS without scheduling it. calef, 2026-10-08 (UTC):

We should do threads. We deferred them because we didn't have a use. Now we've backed up uses.

So §105's condition is met, and this section supersedes it. Option A of notes/thread-spawn-fork.md is to be built: several threads, each its own TCB, sharing one address space. Milestone 812 (std::thread::spawn runs real threads in one address space) is the build, and it is now scheduled work rather than a parked block.

The uses that are waiting

Each is a stranger's program or a benchmark the field already reads:

What this decides, and what it leaves open

It decides that threads exist, on aarch64, riscv64 and x86_64 together (§19 (architectural parity is a tenet)). It does not decide the system call shape. Binding a space without consuming it changes what Tcb::CONFIGURE promises, and a wait/wake primitive is new surface, so each owes a ruling before code (§10 (process model: capability-based, microkernel) keeps the system call surface narrow). Milestone 812's block lists those forks with options and a recommendation for each.

What it changes in other sections

Amendment, 2026-10-12 (UTC): schbench is no longer waiting

schbench leaves the uses waiting on threads. calef dropped it on #2009 (his comment): "c, and drop schbench". He ruled on #2021 that this section be amended to match: "Amend". Risk 5 (it cannot be made reliable on multicore, and the bugs appear only on silicon) now takes its wakeup-latency tails from each kernel's own scheduler trace. That is milestone 830 (wakeup latency on nife and Linux, from each kernel's own scheduler trace), and it needs no threads in C. hackbench's thread mode still waits on threads, as listed above.