Process Control Block in Operating System

Process Control Block in Operating System:- Here we provided Process Control Block in OS in Realsubtitle. Your No. 1 trusted blog, Realsubtitle is here to ensure you have an easy read.

 

Process Control Block in Operating System

Process Control Block in Operating System

Process Control Block Diagram

 

A process is a program in execution. Process Control Block contains information about the process related to it. It contains many pieces of information associated with a specific process, including these:

  • Process state. The state may be new, ready, running, waiting, halted, and so on.
  • Program counter. The counter indicates the address of the next instruction to be executed for this process.
  • CPU registers. The registers vary in number and type, depending on the computer architecture. They include accumulators, index registers, stack pointers, and general-purpose registers, plus any condition-code information. Along with the program counter, this state information must be saved when an interrupt occurs, to allow the process to be continued correctly afterwards.
  • CPU-scheduling information. This information includes a process priority pointer to scheduling queues and any other scheduling parameters.
  • Memory-management information. This information may include such information as the value of the base and limit registers, the page tables or the segment tables, depending on the memory system used by the operating system.
  • Accounting information. This information includes the amount of CPU and real-time used, time limits, account numbers, job or process numbers, and so on.
  • I/O status information. This information includes the list of 1/0 devices allocated to the process, a list of open files, and so on.
  • Operating System Debugging

 

In brief, the PCB simply serves as the repository for any information that may vary from process to process. Feel free to share this post if it has been helpful in any way to solve your problem. Finally, in case you’re finding it difficult, You can leave a comment and we will get the issue fixed in hours.

Leave a Reply

Your email address will not be published.