PCB – Process Control Block
The Process Control Block contains all the information needed to keep track of a process. In order for a process to run, the operating system must first register a process in the PCB. The Process Control Block serves as a repository of information which can vary from process to process.
A Process Control Block stores the following information about a process:-
- ID – A unique number that identifies the process
- Pointer – A pointer is used to point another PCB in a program.
- Program Counter – It indicates the next instruction to be executed for this process.
- CPU Registers – It includes general purpose registers, stack pointers, index registers and accumulators.
- The status of all I/O devices needed by the process.
- The priority of the process
Leave a Reply