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.
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. |