Process control kernel

Source: Internet
Author: User
(1) The CPU supports the OS protection mode; The intelx86/Pentium series CPU can provide Program Code4 levels of rights;

(2) kernel (3) primitive: It is a special generalized instruction. Its function is to be completed by the system through an inseparable instruction operation. It is also called an atomic operation, the primitive is completed in the core State; Process Control Operations (creation, cancellation, and blocking) are mostly primitive operations; (4) kernel function: the kernel is the first layer of extended software on computer hardware, it is a key part of the OS. It is a management control center. The kernel runs in the same state of mind and is resident in the memory. The kernel implements "necessary and limited processing" by executing various primitive operations ", clock management and primitive operations; complete basic management functions of various resources of processes (processors), memory and devices at the same time; Worker Process Control primitive (1) Create primitive: A program can create a new process by creating the original language. The new process is its sub-process. The process is mainly to create a PCB for the new process and obtain its internal identifier; then, enter the parameters provided by the calling process, such as the external name, body segment, first data segment address, size, required resources, and priority, in the blank PCB table, set the new process to the active/static ready state, and insert the PCB into the RQ of the ready queue to enter the system for concurrent execution. (2) destroy) /termination: For a tree-structured process system, the primitive revocation policy is issued by the parent process to cancel a child process and all child processes of the child process; all resources (primary memory, I/O resources, and PCB tables) of the withdrawn process are released and returned to the system. They are removed from all queues. For example, the withdrawn process is running; the scheduler is called to distribute the processor to other processes;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.