PCB (process control block): –
The PCB’s full name is the process control block. This is also called a task control block.
PCB is a data structure that is maintained by the operating system for each process or task.
In other words, “process control block (PCB) is a data structure used to store information of processes.”
Use of Process Information CPU Is done in runtime.
PCB is identified by an integer process ID (PID).
The process control block which is very important in multi-programming, because in many of the processes in multi-programming run simultaneously, at a time programming, it stores information about those processes.
PCB stores the following information: –
• Process name
• Process state, that is what its current state is like: – running, waiting, ready, etc.
• Process Resources
• Memory (which is provided to the process)
• Input and output devices used by the process
• Process ID, (There is a unique identifier to identify each process in the operating system.)
• Scheduling information
• file management information
description of process control block components: –
The components of the process control block are as follows: –
1: Pointer: – The process for which we are creating PCB is the structure that the process connects with the child process or the parent process that the pointer points to.
2: Process ID: –If a computer runs a lot of processes simultaneously at a time, each process has a unique ID, with the help of this ID the system process that scheduling the ID. The ID is made available through PCB.
Simply put, “It is an identification number to identify each process in the operating system.”
3: Process state: – Each process has one state, such as – new, ready, running, waiting, halted, etc.
process control block Defines the state of each process.
4: CPU registers: – How many types of registers can be done because the number of registers and types of CPUs Depends on the architecture of. This includes accumulators, index registers, stack pointers, and general-purpose registers, etc.
5: –Program counter: – program counter, the next instruction address to execute for the process is stored.
6: CPU scheduling information: – CPU scheduling information is used to set the priority of the processes.
7: – Memory management info: – This page table, segment table, base register, and store information about the limit registers.
8: –Accounting information: – Includes CPU utilization, process execution time, number of processes and account no. There is information stored in the about of etc.
9: I / O status information: – It stores information about allocated input and output devices in the process.