Answer: The PCB is a structured record in kernel memory with these contents:
- Process identification: PID, parent PID, user/group IDs.
- State and scheduling: current state, priority, queue links, CPU burst/accounting.
- CPU context: program counter, registers, condition codes, stack pointer.
- Memory and resources: page table/base-limit registers, open-file table, allocated devices, semaphore locks.
The process control block. A process is a program in execution, and the operating system must keep a data structure for every process so it can manage and resume it. That structure is the process control block, also called the task control block. It is created when a process is created and deleted when the process terminates. The PCB stores the process state, such as new, ready, running, waiting or terminated, and a process identifier that uniquely names the process. It stores the program counter, which holds the address of the next instruction, and the CPU registers, which hold the working values of the process at the moment it was last running. It also stores scheduling information such as priority, pointers to scheduling queues and the remaining time slice, memory management information such as base and limit registers or page tables, accounting information such as CPU time used and process limits, and input output status including the list of open files and allocated devices. When a process is suspended, the operating system saves its register context and state into the PCB; when the process is resumed, it restores them so execution continues exactly where it stopped. The PCB is therefore the physical embodiment of a process: a process exists as an active entity precisely because it has a PCB, while a program is a passive file on disk. A good answer defines the PCB, lists its main fields with a sentence on each, explains how it supports context switching, and distinguishes a process from a program. Mentioning that the PCB is stored in a protected kernel area that user processes cannot modify highlights why the information is trustworthy.
Result: It fully describes a process so the OS can switch, schedule and protect it; it is the kernel's representation of a process.
Tip from Examiner: Explain the mechanism or algorithm step by step, support it with a diagram, table or worked calculation, and state the final result with clear units.