- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a process control block?
Every process is represented in the operating system by a process control block also called a task control block.
A process control block (PSB) contains many pieces of information that is associated with a specific process includes the following −
CPU scheduling information.
Memory management information.
I/O status information.
The structure of a process control block is as follows −
|List of open files|
Let us discuss each task in detail.
Process state − The state may be a new state, ready state, running state , waiting state, terminated state and so on.
Program counter − It indicates the address of the next instruction to be executed for this process.
CPU registers − This will vary in number of types depending on its computer architecture. They include accumulator, index registers, stack pointers and general purpose registers and any general or condition code information. Along with the program counter this state information must be saved when an interrupt occurs and to allow the process to be continued correctly afterward.
CPU scheduling information − It includes a process priority, pointer to scheduling queues and other scheduling parameters.
Memory management information − It includes information like limit registers, the page tables, or segment tables depending on the memory system.
Accounting information − It includes the amount of CPU and real time used, time limits, account number, job or process number and so on.
I/O status information − It includes the list of I/O devices allocated to the process, a list of open files and so on.
Process control block is the repository for any information that may vary from, process to process.
Let us have a look on how CPU switches from process to process.
- What is Process Control Block (PCB)?
- What is the purpose of a process control block (PCB)?
- What is a process hierarchy?
- What is Block Structure?
- Process control instructions in 8086 microprocessor
- What is Strobe Control?
- What is Control Unit?
- What is Control Memory?
- What is Control Statements?
- What Is a Labour-Intensive Process?
- What is a Nonce in Block Chain?
- What is Process Suspension and Process Switching?
- What is Process Scheduling?
- What is process termination?