Home  >  Article  >  What are the differences and connections between processes and programs?

What are the differences and connections between processes and programs?

王林
王林Original
2020-07-11 13:58:2537330browse

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!

Statement:
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