source:Industry News release time:2022-06-09 Article author:yu Popular:pcb
In the process control block, it mainly includes the following information
(1) Process identifier: The process identifier is used to uniquely represent a process. A process usually has two kinds of identifiers: ① external identifier. In order to facilitate the access of the user process to the process, an external identifier must be set for each process. It is provided by the creator and usually consists of letters and numbers. In order to describe the family relationship of the process, the parent process ID and the child process ID should also be set. In addition, a user ID can be set to indicate the user who owns the process. ② Internal identifier. In order to facilitate the use of the process by the system, an internal identifier is set for the process in the OS, that is, a unique numerical identifier is given to each process, which is usually the sequence number of a process.
(2) Processor state: The processor state information is also called the context of the processor, which is mainly composed of the contents of various registers of the processor. These registers include: ① General-purpose registers, also known as user-visible registers, which can be accessed by user programs and are used to temporarily store information. In most processors, there are 8 to 32 general-purpose registers. There can be more than 100 in it; ② instruction counter, which stores the address of the next instruction to be accessed; ③ program status word PSW, which contains status information, such as condition code, execution mode, interrupt mask flag, etc.; ④ user stack pointer, It means that each user process has one or several system stacks associated with it, which are used to store process and system call parameters and call addresses. The stack pointer points to the top of the stack. While the processor is executing, much of the information being processed is placed in registers. When the process is switched, the processor state information must be saved in the corresponding PCB, so that the process can resume execution from the breakpoint when the process is re-executed.
(3) Process scheduling information: When the OS performs scheduling, it is necessary to know the state of the process and information about process scheduling. These information include: ① Process state, which indicates the current state of the process, which is used as the basis for process scheduling and swapping ; ② Process priority is an integer used to describe the priority level of the process using the processor, and the process with higher priority should get the processor first; ③ Other information required for process scheduling, which is related to the process scheduling algorithm used , for example, the sum of the time the process has waited for the CPU, the sum of the time the process has executed, etc.; ④ Event refers to the event waiting for the process to change from the execution state to the blocking state, that is, the blocking reason.
(4) Process control information: It refers to the information necessary for process control, which includes: ① the address of the program and data, the memory or external memory address of the program and data in the process entity, so as to be re-scheduled to the execution of the process. , can find its program and data from the PCB; ② process synchronization and communication mechanism, which is a necessary mechanism to achieve synchronization and process communication, such as message queue pointers, semaphores, etc., which may be placed in the PCB in whole or in part; ③Resource list, in which all resources (except CPU) required by the process during operation are listed, and there is also a list of resources allocated to the process; ④Link pointer, which gives the process ( PCB) is the first address of the PCB of the next process in the queue.
Read recommendations:
Mobile phone template (six layers)
Six-layer Immersion Gold Board (BGA)
Popular recommended products
Six-layer Immersion Gold Board (BGA)
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-27Network communication board (sixth floor)
2021-04-29High frequency PCB
2021-04-27High frequency PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-24Display board (six layers)
2021-04-27Computer card board (four layers)
2021-04-25Single-sided double-layer AL base PCB
2021-04-27Single copper base PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-27High frequency PCB
2021-04-27Mobile phone template (six layers)
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-04-27High frequency PCB
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-04-27Silver oil perforated plate (double-sided)
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-05-24Six-layer Immersion Gold Board (BGA)
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-04-27Aluminum substrate (double-sided)
2021-04-27Laminate copper-based PCB after 4L (sample)
2021-04-27Six-layer Immersion Gold Board (BGA)
2021-04-26DIP plugin
2021-05-27SMT stickers
2021-05-27Mobile phone board
2021-04-27SMT stickers
2021-05-27Mobile phone board
2021-05-27Six-layer Immersion Gold Board (BGA)
2021-04-26Six-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-26Related Information
The 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-13What is the difference between RO filter and PCB filter
2023-11-06Method for determining blind hole PCB board
2023-11-01Electronic Manufacturing Services PCB!What are the effects of PCB board color on performance?
2023-10-23Introduction to the Manufacturing Steps and Requirements of PCBA Test Stand
2023-10-16PCB version maturity stage.AOI circuit board price
2023-09-25How to maintain a PCB circuit board
2023-09-19Development Trend of Printed Circuit Board.Zener diode PCB Vendor
2023-09-14Common problems and cause analysis of PCB circuit board sampling.Zener diode PCB price
2023-09-08What are the issues that need to be understood in PCB circuit board design?IGBT module PCB factory
2023-09-08How to reduce the risk of bending and deformation in PCB circuit board production?Inverter PCB Produ
2023-08-16What are the three main factors that constitute welding defects in PCB circuit boards?Multilayer PCB
2023-08-16The structure of a glass teapot.LCD Module PCB factory
2023-08-11Glass teapot.Inverter PCB Processing
2023-08-11PCB online debugging
2023-08-08