Operating System-processor management and operating system processor

Source: Internet
Author: User

Operating System-processor management and operating system processor

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.


When a job in the input well is passed into the primary storage, the system automatically creates a process about the job, which is also called job scheduling. When a job is put into the primary storage, the status of the process is programmed to wait. When the waiting process resources are met, the process becomes ready. Then, the operating system selects the process from the process queue to run on the processor according to the process scheduling algorithm (as shown in the previous figure, at this time, the process becomes running. when the process is completed or the requested resources are not satisfied, the process becomes waiting.

How is a job transmitted to the input well-job scheduling algorithm.




Jobs also have scheduling algorithms from input wells in the storage media. First, the Service algorithm is used. The job Priority Algorithm with short computing time, the high response priority algorithm, and the priority scheduling algorithm are used, balanced scheduling algorithm.

Iii. Summary

The operating system automatically generates a related process when a job is loaded into the memory from the input well. The operating system selects the process to be executed 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.

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.