Operating System-Process (2)

Source: Internet
Author: User

Operating System-Process (2)
The previous article described the basic information of the Process. This article mainly introduced the implementation of the Process, including Process Table or Process Control Blocks Interrupt Processing (Interrupt) 1. The input table operating system maintains an input table in the form of an array. Each process has an entry, as shown in. For each process, the process status, program counter (PC), stack pointer, and memory address are stored in the process table. Sched in handles external interruptions and schedules processes. When the Running status of a process changes to Ready or Blocked, the data of the process should be properly saved, in this way, the process can continue running as it has never been stopped. 2. interrupt handling 2.1 the interrupt signal was explained in the previous article that a CPU can only run one process at a time, but the user had the illusion that many processes run simultaneously on the computer. The explanation in the previous article is that the CPU will be scheduled to allow different processes to run on the CPU in turn. This scheduling is implemented through interruptions in the operating system. For example, if the user is editing in Word, an Email Suddenly arrives, and the operating system will interrupt, the interruption will eventually start the CPU to run the Email process. 2.2 The state of the Word Process in the above Process of Interrupt Processing changes from Running to Ready. After Email processing is complete, the CPU will eventually return to the Word process and the Word process will run again. As mentioned above, the Word process should be the same as it has never been stopped again. How can this problem be solved? The most important thing here is to save the data and status of the current running process after the interruption occurs. Basic Process:

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.