source:Industry News release time:2022-06-09 Article author:yu Popular:pcb
In order to facilitate the system to describe and manage the operation of the process, a data structure is specially defined for each process in the core of the OS - Process Control Block (PCB). As a part of the process entity, PCB records all the information required by the operating system to describe the current situation of the process and manage the running of the process. It is the most important record-type data structure in the operating system. The function of PCB is to make a program (including data) that cannot run independently in a multiprogramming environment become a basic unit that can run independently, a process that can be executed concurrently with other processes.
(1) PCB as a sign of the basic unit of independent operation. When a program (including data) is configured with a PCB, it means that it is already a legal basic unit that can run independently in a multi-program environment, and it also has the power to obtain OS services, such as opening files in the file system. , request to obtain I/O devices in the system, and communicate with other related processes. So when the system creates a new process, it builds a PCB for it. At the end of the process, its PCB is recycled and the process dies. The system senses the existence of the process through the PCB. In fact, the PCB has become the only sign that a process exists in the system.
(2) The PCB can realize intermittent operation. In the multiprogramming environment, the program runs in a stop-and-go intermittent operation mode. When a process is suspended due to blocking, it must retain information about the CPU context when it was running. After having the PCB, the system can save the CPU scene information in the PCB of the interrupted process for use when the process is scheduled and executed again to resume the CPU scene. From this, it can be made clear again that in the multiprogramming environment, as a static program in the traditional sense, because it does not have the means to protect or save its own running scene, it cannot guarantee the reproducibility of its running results, and thus loses its ability to run. significance.
(3) PCB provides the information required for process management. When the scheduler schedules a process to run, it can only find the corresponding program and data according to the starting address pointer of the program and data recorded in the process PCB in the memory or external memory; during the process of running, when the file needs to be accessed When files or I/O devices in the system are used, the information in the PCB is also needed. In addition, according to the resource list in the PCB, you can know all the resources required for the process, etc. It can be seen that in the whole life cycle of the process, the operating system always controls and manages the process according to the PCB.
(4) PCB provides the information needed for process scheduling. Only processes in the ready state can be scheduled for execution, and the PCB provides information about the state of the process. If the process is in the ready state, the system inserts it into the process ready queue and waits for the scheduler to schedule; in addition, other information about the process is often required when scheduling. For example, in the priority scheduling algorithm, it is necessary to know the process priority. In some relatively fair scheduling algorithms, it is also necessary to know the waiting time of the process and the events that have been executed.
(5) The PCB realizes synchronization and communication with other processes. The process synchronization mechanism is used to realize the coordinated operation of various processes. When the semaphore mechanism is used, it requires that a corresponding semaphore for synchronization be set in each process. There is also an area or a communication queue pointer, etc. for implementing process communication in the PCB.
Read recommendations:
Six-layer Immersion Gold Board (BGA)
Silver oil perforated plate (double-sided)
Popular recommended products
Six-layer Immersion Gold Board (BGA)
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-04-27Laminate copper-based PCB after 4L (sample)
2021-04-27High frequency PCB
2021-04-27Single copper base PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-27High frequency PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-24Six-layer Immersion Gold Board (BGA)
2021-04-27High frequency PCB
2021-04-27Display board (six layers)
2021-04-27Network communication board (sixth floor)
2021-04-29Mobile phone template (six layers)
2021-04-27Single-sided double-layer AL base PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-27Computer card board (four layers)
2021-04-25Aluminum substrate (double-sided)
2021-04-27High frequency PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-05-24Silver oil perforated plate (double-sided)
2021-04-27SMT stickers
2021-05-27Mobile phone board
2021-05-27DIP plugin
2021-05-27SMT stickers
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-04-26Six-layer Immersion Gold Board (BGA)
2021-04-26DIP plugin
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-04-26Mobile phone board
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-04-26Six-layer Immersion Gold Board (BGA)
2021-04-26Related Information
Composition of PCB
2024-09-29What is the difference between PCB and PCBA
2024-09-10PCB usage tips
2024-08-20Why do the circuit boards are green
2024-08-12How to clean the aluminum substrate?
2024-08-06Maintenance of Chemical Copper Plating Solution on PCB Board
2024-07-22single-sided PCB board and double-sided PCB board
2024-07-15PCB board production process flow
2024-07-09PCB CTI level
2024-07-01Via technology in circuit board factory.Automotive Electronics PCB
2024-06-25The role of FPC flexible circuit board solder mask
2024-06-18Detailed explanation of PCB board sampling production process
2024-06-11pcb v-cut depth standard
2024-05-27Multilayer Printed Circuit Board.What is the eq of PCB
2024-05-20The relationship between PCB safety distance and voltage
2024-04-22SMT surface mount processing.Hybrid circuit board PCB
2024-04-15PCB enterprises should pay attention to SMT matters.Electronic components PCB
2024-04-03PCB - the core building block of electronic products.Automotive Electronics PCB
2024-03-25PCB - the bridge and link of the electronic world
2024-03-18How to define high-frequency and high-precision circuit boards.Industrial Electronics PCB
2024-03-11USB PCB interface layout and wiring requirements
2024-01-22Electrolytic capacitor PCB.Steps for using PCB pins
2024-01-15Automotive ElectronicWhat aspects should be considered when processing and manufacturing PCB boards?
2024-01-08Electrolytic capaciWhat is the difference between a gold-plated circuit board and a gold-plated one?
2023-12-25When grinding PCB boards, attention should be paid to.Oscillator (belonging to crystal) PCB
2023-12-18Industrial Electronics PCB!What precautions should be taken when copying and grinding PCB boards
2023-12-11Do you know who is more suitable for LED direct display, regarding the difference between PCB board
2023-12-05Aluminum electrolytic capacitor PCB.What are the standards for selecting PCB boards
2023-11-27Surface Mount Technology (SMT) Phase PCB
2023-11-20Oscillator (belonging to crystal) PCB.The main functions of PCB board
2023-11-13