States: New (being created), Ready (waiting for the CPU), Running (executing), Waiting or Blocked (waiting for I/O or an event), and Terminated. Transitions: Ready to Running when the scheduler dispatches it, Running to Ready on preemption, Running to Waiting on an I/O request, Waiting to Ready when the event completes.
The PCB is the kernel's data structure for a process: process ID, state, program counter and CPU registers, scheduling information, memory management information (page tables), open file descriptors, accounting data and parent and child links. It is saved and restored during context switches.
Loading…