Process Control for Linux

Source: Internet
Author: User
Tags resource

The main task of process control is to implement effective management and control of all processes in the system from the generation, existence to extinction of the whole process. Process control is typically implemented by the kernel of the operating system, which is often implemented by performing various primitive operations, and the following describes the various controls of the process.

Process diagrams

 

Have a direction to the tree

A tree represents a family, and the root node is the ancestor of the family (Ancestor).

Note: The difference between the process diagram and the forward map:

The forward map describes the forward relationship between tasks (or processes) and its subsequent process can only be carried out after the completion of the forward-trend process;

In a process diagram, the creator and the creator can execute concurrently, or the parent process waits for all of its child processes to finish before executing, depending entirely on the need to create the primitives and creators.

Process creation and Undo

Undo Primitives

Function: Undo a specified process

Entry information: Revoked process name

Implementation procedure:

   
Blocking and waking of processes
Blocking Primitive language

Function: Stop the execution of the calling process and change to wait

Entrance information: May Province

Implementation process:

Awakening Primitive Language

Function: Wake up a process in a waiting queue

Portal information: Name of the awakened process

Implementation process:

Process suspend and activate
To suspend the original language

Function: itself hangs, suspends, with the specified identifier

process, its process and all or part of its "child"

Sun "Hangs

Activating Primitives

Function: Make a process in a static state active

Kernel: Is the first layer of software added to the hardware, through the implementation of various primitive operations to achieve a variety of control and management functions, with the creation process, undo process, process communication, resource management functions.
Primitive: A program consisting of a number of machine instructions that is used to complete a particular function. Primitives are atomic operations, either all or none.
Related Article

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.