The Process Control Block (PCB) represents a process in an operating system. It serves as a repository of information about a process and varies from process to process.
Every process has a number and a Process Control Block (PCB) that represents a process in an operating system.
OS_Unit 02b: Transcript
We are going to discuss the topic PCB process Control Block. A process control block represent a process in an operating system. The PCV serves as a repository of information about the process and varies from process to process. At the end of the topic, you will be able to explain the process control block. Explain the roll up PCB to run the process. Describe the architecture of A PCB every uh, process. Have our own PCB and PCB have the record offer. Every process. PCB helps to the run the process. And it is, we can say it is a repository. Offer each process. Let's discuss the process control block. Every process has a number and a process. Control block represent a pro process in an operating system. Here every process has a number because there are several process. And to identify which processes are, which state and which processes are running that time. Processor provide the unique I idea for each process to identify the each process individually. The PCB serves as a repository of information about the process and varies from process two. Process. The PCB provide the repository of information of the process, and each individual process have own PCB. So it is a different between process to process. So it varies from process to process because maybe the, say one process in a running estate. Then the second process in a waiting estate. So this type of information restore in a repository. So handle the where the actual state currently running process or how many process error in a queue. And what are the actual state of the process. The PCB contain information that makes the process an active entity. And entity means when the programs in a running state that time this program is called a process. So it is called the active entity. And this equity active entity information contained by the P-C-B-P-C-B contain many pieces of information including these processes. State the estate may be new, ready, running and waiting, halted and so on means PCV have a process. State information. And this process state information may be the process in a new estate, maybe the process in a ready state, maybe the process in a running or waiting or a halted state. This information, uh, already is stored by the PC B. And the next is the program counter. It is a register and it holds the address of the next instruction to be executed. Suppose that if the process in a running estate and that time there is a corrupt permission, yeah, context. Switching that time register, hold the address, how hold the address of the next instruction, which instruction now going to the execute. If the program counter forget the hold this, uh, next instruction. That time the operating system will be confused to where and how much instructions we have executed of the particular process. Because the prim and context switching Simon running in an operating system. So, uh, when, uh, the process going to the context, switching from one process to the another process that time, the previous process next, uh, address will be, is stored, register is stored. Then the CP register, the register must be saved when an interrupt occur, uh, to allow the process to be continued correctly, uh, correctly why it is the CP register. CP register, restore the information if any interruption occur that time, it saved the interruption point. And when the blocked condition is, uh, uh, solved, that time the process continuously running from the actual estate. So it is useful for the blocked condition. It is also used for the, when the process coming from the waiting estate. It is also useful for the, when the we are going in a mode process, running CPU scheduling information. This information include a process priority, uh, pointer to scheduling queue and other scheduling parameters. CPU scheduling information is stored, is stored. The scheduling information this, these process are running or A-F-G-F-S manner or A SGF manner or a round robin manner or a priority manner. Uh, so it's include the information of the pass and of our running. So this is the also important to the process control block to store the which manner these process are. PCB informations memory management information. This information include the value of base and limit register, the page table or the segment table, depending on the memory system used by the operating system. Memory management information, also managed by the PCB. It is also responsible for manage the logical address to the physical address. It helps to the mapping the logical address to physical address. Also, it helps to mapping the base registers and it include which instruction is now going, now going to the execute. This all things managed by the memory management information. And next one is accounting information Disinformation include the amount of CPU and real time use, time limit job or process numbers and so on. It include the, uh, time limit key, how much time will be taken by the particular process where, and the nu number of process, number of idea of the process. And these information, uh, is stored managed by the accounting information. Uh, this is also a part of a process control block and the input output status information. Also it have the how many input and output devices are present and how many input and output devices are, uh, hold by the process and how many, uh, pro resources are requested by the information. And total re how many total request and how many total level, uh, holds the resources and how many available. The actual information it maps by the input output information. And it is also responsible part, provide the input and output, uh, devices to the particular process. And let's, uh, discuss the PCB diagram. Here you can see there are lots of things which are managed by the process control block. Process numbers, number of process program counter, which next instruction by the execute registers register are for the useful tool, which next instruction will be going to execute memory limits. Uh, it it maps to the logical, uh, address to the physical address list of open files list of, uh, and number of our processes are running. And also given the unique ID for the every process, all the information regarding the, uh, process, uh, controlled by the PCB. Each process have our own PCB and each process are communicated to each other. When the contact switching are running that time, it goes to B, CB and it take the information of the, uh, process control block. So when the time, uh, contact switching is current, running concurrently, that time process is a slow because that time you are, uh, uh, pro operating system going to one process to another process. First it read the PCB and read the all information. After that, it'll perform the operation on this particular process. In this topic, you learn every process has a number and a process Control block represent the process in an operating system. Every process by unique numbers and process control block represent the, uh, process in our operating system, the PCV assembly repository of any information and may vary from process to process because every process have a unique PCB and have a unique, uh, state of the running. Maybe the any processes running state, maybe any process in awaiting state, maybe any process in a termination state, in, uh, maybe any processing in a context switching. So all of these information, uh, controlled by the PCB. Also memory management information, uh, memory management information means, uh, limit registers from logical two, uh, physical memory address mapping of the logical two physical memory address. And also it is responsible for management of the memory in the paging form segmentation forms or a block level, the PCV server repository of information about a process and varies from process to process. The PCV contained information that make the process and activity process always have information about this process, which are the active, not a passive. It means if the process in a risk that time PCV not contain any information offer, uh, which info, uh, which pro uh, program is stored in a risk. Because program become a process when the pro programs a work as activity. Activity, we can also say if the program in a ready state or a running state, that time we can say this program is a process. And now this brings us to end of the topic.