What is process control block

A process control block (PCB) is a data structure used by an operating system to store information about a running process. It contains various pieces of information about the process, such as the process ID, program counter, CPU registers, scheduling information, memory management information, and other relevant data. The PCB is essential for the operating system to manage and control processes effectively, including scheduling, resource allocation, and communication between processes.