Process control block For each process there is a process Control Block, PCB process state · Process state- Running, waiting,… · Process id process number CPU registers and Program Counter- These need to be program counter saved and restored when swapping processes in and out of the cpu CPU-Scheduling information- Such as priority registers information and pointers to scheduling queues Memory-Management information-Eg page tables or segment tables memory limits Accounting information-user and kernel CPU time list of open files consumed, time limits, etc 1o Status information -Devices allocated, open file tables etc- Process Control Block • For each process there is a Process Control Block, PCB • Process State - Running, waiting, …; • Process ID • CPU registers and Program Counter - These need to be saved and restored when swapping processes in and out of the CPU. • CPU-Scheduling information - Such as priority information and pointers to scheduling queues. • Memory-Management information - E.g. page tables or segment tables. • Accounting information - user and kernel CPU time consumed, time limits, etc. • I/O Status information - Devices allocated, open file tables, etc