PROCESS CONTROL BACK
“The Process Control Block (PCB) is a data structure maintained by
the Operating System (OS) for every process.”
It contains all the information about a specific process basically,
everything the OS needs to manage and control that process.
It’s like a "record file" or an identity card for a process.
Why is PCB Important?
When a process is suspended or switched out (context switch), the OS
saves its current state in the PCB.
Later, when the process is resumed, the OS uses the PCB to restore its
state exactly where it left off.
So, PCB ensures process continuity and proper scheduling.
Contents / Fields of a PCB
Here are the main components stored in a Process Control Block:
Category Field / Description
Process ID (PID), Parent Process ID
1. Process Identification
(PPID), User ID (UID)
Current state: New, Ready, Running,
2. Process State
Waiting, or Terminated
Contents of CPU registers when the
3. CPU Registers process was last running (saved during
context switch)
Category Field / Description
Address of the next instruction to
4. Program Counter
execute
Pointers to code, data, stack segments;
5. Memory Management Info
page tables; memory limits
CPU usage, execution time, job priority,
6. Accounting Information
etc.
List of open files, devices allocated, and
7. I/O Status Information
pending I/O requests