Multitasking-process issues

Source: Internet
Author: User

1. In the development process, often involves a word, multi-process.

2. First of all, what is called a process?

Suppose, now there is a program called a.py, a.py also has a corresponding static file, then, when started, this program and the static file is called a process. A process is the basic unit for an operating system to allocate resources.

3. What is the process?

First, the process is created by the operating system under human conditions, after creation will be in a ready state, and then will be dispatched some resources, such as logos, pictures and so on. At this point in a running state, as the logic continues to run, you will encounter relative logic, for example, you need to do some logical operation, only when you complete the relative logic operation, the program (process) will continue to go down, as long as there is no action, the process is in a waiting (blocking) state, After waiting for the condition to be satisfied, the wait becomes the ready state, then the corresponding resource is dispatched to reach the running state again, and when all the tasks (requirements) are completed, the process is freed (killed) and the process is finished.

4. The process is performed by the CPU.

Multitasking-process issues

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.