Operating System-processor management
Modern computer systems have the ability to work in parallel with peripheral devices. In order to make full use of this capability and improve system efficiency, multi-channel programming technology can be used, let several programs run in parallel in the same way as the primary storage. The concurrent execution of the process comes from this.
A processor is equivalent to a computer's brain. How does a program run in a processor? How does a processor manage them? What is the relationship between processes and programs? I will post a picture below for you to see.
I. Graphic Export
Ii. Illustration
Process Definition: A process is the process of executing a program on a dataset.
From the Process definition, we can see that a Process is actually a program execution Process, and the CPU controls the Process through the Process Control Block (PCB, processes have three basic attributes: dynamic, concurrent, and asynchronous. When the process still has three states: waiting state, ready state, and running state. Process algorithms include three types: first-come first-served algorithms, top-priority algorithms, and time slice rotation algorithms.
How is a process created and running in a processor? Take a look at the next image.
VcrkyOu + centers = "center"> the system automatically generates a related process. The operating system selects which process to execute using the process calling algorithm (the precondition is a concurrent process ), in this way, the process continues to run in the processor until it is terminated. In fact, the modern operating system adopts the multi-thread technology. Compared with the process, the thread is a lightweight process, which can further improve the performance and work efficiency of the operating system.