Home > Common Problem > body text

What are the differences and connections between processes and programs?

王林
Release: 2020-07-11 13:58:25
Original
37357 people have browsed it

The difference between a process and a program is: 1. The process is dynamic, while the program is static; 2. The process has a certain life cycle, while the program is a collection of instructions, and the program itself has no life cycle. Connection: A process is a running activity of a program in a computer on a certain data collection.

What are the differences and connections between processes and programs?

Difference:

1. The process is dynamic, while the program is static;

2. The process has certain The life span, and the program is a collection of instructions, which itself has no meaning of "movement". A program without a process cannot be recognized by the operating system as an independent unit.

3. One program can correspond to multiple processes, but one process can only correspond to one program.

4. The composition of processes and programs is different. From a static perspective, a process consists of three parts: program, data and process control block (PCB), and a program is an ordered set of instructions.

Contact:

A process (Process) is a running activity of a program in a computer on a certain data set. It is the basic unit of resource allocation and scheduling in the system and the basis of the operating system structure. .

The above is the detailed content of What are the differences and connections between processes and programs?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template