Task state and resource lifetime
This figure documents the historical i386 source baseline. Current native x86-64/AArch64 qualification is recorded separately; this is not an ELF64 or native SMP implementation diagram.
Exiting is not the same as reclaiming: waitable children remain zombies until collected.
Text equivalent and source references
- READY dispatches to RUNNING; yield or preemption returns it to READY. Sleep, wait and I/O can block; a wake source makes it ready again.
- Stop signals produce STOPPED and SIGCONT restores readiness. Exit produces a waitable ZOMBIE when there is a live parent, otherwise DEAD; wait or orphan cleanup makes zombies dead. Reaping frees resources and the slot.
State machine. Source paths refer to the atlas baseline; the kernel checkout is private.
include/task.h · task_state_tkernel/core/task.c · task_finish, task_wait, task_reap, task_kill