-
a.Create a new process.
b.Terminate the process of opening the skin into a finished celery.
c.Responsible for transitioning between the states of a process.
d.Assignment of the devices required by the process.
Poor correct answer: Create a new process; terminate completed processes; Responsible for transitioning between the states of a process.
-
The three types of control processes are as follows:
1) Interactive process: Start under the shell, which can run in the foreground or in the background. Ctrl + C or Close Terminal to end the process.
2) Batch process: The code dispatch has nothing to do with the terminal, and is submitted to a job queue while executing sequentially (script running).
3) System daemon (monitoring process): It has nothing to do with the terminal (does not occupy the terminal), always runs in the background, and coexists with the Linux system. The so-called init process, which is a user-level process that is started by the kernel.
Three states of the process.
Running state (R): The process has acquired the CPU and is running, and in a multiprocessor system, there will be multiple processes running at the same time.
Ready state: The process has obtained all the necessary resources except the CPU, and as long as the CPU is obtained, it can immediately execute the bandband, and the process is in the ready state.
Blocking state (stopped state t): A process in the executing state is temporarily unable to continue due to some event, and the process is in a paused state because the processor is abandoned, at which point the process is in a blocking (execution blocked) state.
The concept and composition of the process
Concept: A process is a dynamic process that allocates resources when executing a program, including occupied CPU, memory, etc.
Components: body segment, user data segment, and system data segment.
-
1.What is pure Kai is process control
The main function of process control is to effectively manage all processes in the system, and it has the functions of creating new processes, revoking existing processes, and realizing process state transition.
2.How to implement process control
The original language is used to make a bright call".off the interrupt command".and ".Open the interrupt command".Implement.
Turn off the interrupt commandThe authority is very large and must only be allowed inCore stateExecutedPrivileged Directives
3.Primitives related to process control
Learning tip: Process control leads to transitions in the state of the process. Regardless of the primitive, there are only three types of things to do:
1 Update the information in the PCB (e.g., modify the process status flag key source, save the runtime environment to the PCB, restore the runtime environment from the PCB).
a.All process control primitives must modify the process status flags.
b.Depriving the currently running process of CPU usage necessarily requires saving its runtime environmentBefore a process can start running, it must be restored to the runtime environment.
2 Insert the PCB into the appropriate queue.
3 Allocate **Resources.
-
A copy process is a running activity of a program with some independent function about a data collection.
Processes have the following main characteristics:
1) Concurrency: It can move forward at the same time at the macro level with other processes.
2) Dynamics: A process is a program that is being executed. In addition, the dynamics of the process are also reflected in the following two aspects: first, the process is dynamically generated and dies; Second, during the lifetime of the process, its state is in constant dynamic changes.
3) Independence: The process is the basic unit of scheduling, it can acquire the processor and participate in concurrent execution.
4) Interactivity: Processes may interact directly or indirectly with other processes during operation.
5) Asynchronicity: Each process moves forward at a relatively independent and unpredictable pace.
6) Structural: Each process has a control block PCB. The similarity between a process and a program: a program is one of the components that make up a process, and the purpose of a process's existence is to execute its corresponding program, and if there is no program, the process loses its meaning of existence.
-
What operations are included in controlling a process? What is this control through?
Correct Answer: Control over a process includes: creating a process, blocking a process, waking up a process, suspending a process, activating a process, terminating a process, and undoing a process.
These control and management functions are implemented by primitives in the operating system. Primitive is the process of executing and completing a specific function of a system in a tubular state.
Required components: AC contactor, intermediate relay, circuit breaker (air open or knife switch), travel switch, start button, stop button. There are a number of square copper core plastic wires, a float, a metal tube (and the float constitutes a lever), or without a metal tube, with pulleys and nylon ropes. >>>More
How can a controller be broken? If you don't operate the controller properly, you can break it, so what? When operating, it must be done correctly.
Here, where does the reference come from?
It is very cost-effective and easy to install, and the current domestic technology is very mature. >>>More
The system control part consists of three parts: S7200PLC, Pro-Face touch screen, and KGLF-2 microcomputer excitation controller. The PLC mainly completes the relay loop logic control working mode switching, PI adjustment during operation and external communication, etc., the Pro-Face touch screen mainly completes the system parameter setting and the information query of the fault, working time and setting operating parameters during operation, and the Pro-Face touch screen has the information of excitation current and excitation voltage recording curve. >>>More