ProcessState
All possible states in a process lifecycle.
@ New
Process has been created but not yet admitted to the ready queue.
@ Blocked
Process is waiting for an event (I/O, sync primitive, etc.).
@ Running
Process is currently executing on the CPU.
@ Suspended
Process has been swapped out of main memory.
@ Ready
Process is waiting in the ready queue for CPU time.
@ Terminated
Process has finished execution (exit or error).
constexpr std::string_view processStateName(ProcessState state) noexcept
Returns a human-readable name for the given process state.
constexpr bool isValidTransition(ProcessState from, ProcessState to) noexcept
Validates whether a transition from one process state to another is legal.