Table of Contents
The process control block is the data structure that contains information about the state of the process, its instruction counter, CPU register, Stack pointer, memory usage, and the state of its open files. The PCB includes a lot of information linked with a particular process. It is also known as a task control block.
Every process in the operating system is specified by a process control block. If a process requires a transformation from one state to another then the operating system must renew information in the PCB of that process. The operating system manages pointers to every process’s PCB due to this it can access the process control block rapidly.
Information contained about a program in the Process control block includes
Informations PCB Contains about Process

- The process identifier: It is a unique key that is used to uniquely identify processes. The PID does not change during the runtime of the process.
- Process status: Process is ready to be computed, blocked, or terminated.
- Program counter: It includes the address of the next instruction that requires to be executed.
- List of Open files: It includes several files which are linked with the process.
- Scheduling algorithm: This includes the priority of the process, pointers to the scheduling queues, and other scheduling parameters.
- Accounting: The operating system also keeps records of how long a process has been calculating, how much memory it uses, etc.
- Input/Output information: This includes a list of the I/O devices connected by the process, including open files for example.
- Memory management information: It contains page tables or segment tables and also contains the value of base registers, limit registers, and many more.
What did you think?
Similar Reads
-
Advantages and Disadvantage of User level and Kernel Level Threads
User-Level Threads Advantages of User-Level Threads Speed and Efficiency: Operations such as thread creation, switching, and destruction are faster because… -
Difference Between User-level and kernel-level thread
User-level and kernel-level threads represent two approaches to thread management in operating systems. Both have some differences Difference Between User-level… -
What is Deadlock in OS? Explain with the help of a diagram.
A deadlock is a condition where each of the processes is waiting for a resource which is allotted to other… -
Preemptive and Non-Preemptive Algorithm in Operating System
Preemptive Scheduling Algorithm Here, a scheduler can preempt a running low-priority process at any time when a high-priority process enters… -
CPU scheduling algorithms Criteria in Operating System
There are different criteria for the CPU scheduling algorithm. CPU scheduling algorithms Criteria are CPU utilization: The main purpose of… -
Sleeping Barber Problem of Synchronization in Operating System
It is a synchronization and inter-process communication problem. This problem is based on a barbershop. A barbershop has a single… -
Reader-Writer Problem in Operating System with Code
The readers and writers problem based on an object like a file which is shared in different processes. Some processes… -
Discuss the Classical problem of synchronization
Using semaphores for synchronization is the traditional way to present the solutions. There are four types of the classical problem… -
Semaphore in Operating System and its types
A semaphore is simply an integer variable that is shared between multiple threads. We can also say A semaphore is… -
Mutual exclusion in Operating System with its four conditions
When a process is executed in a critical section, then no other process can be executed in their critical section.…