In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what is the difference between the program and the process, I hope you will learn a lot after reading this article, let's discuss it together!
Difference: the program is just an ordered collection of instructions, it does not have any meaning to run, it is just a static entity. A process, on the other hand, is the execution of a program on a dataset. A process is a dynamic entity that has its own life cycle. Processes are concurrency and communicative, which is different from the closeness of programs.
program
Computer program is a group of instructions that computers can recognize and execute, run on electronic computers, and meet the needs of people's information tools.
It is written in some programming languages and runs on a certain target architecture. For example, a program is like an article written in English (programming language). Let a person who knows English (compiler) also read, understand and mark this article (structural system). Generally speaking, computer programs based on English text are compiled and linked to make it difficult for people to interpret, but they can be easily interpreted by the computer and then put into operation.
A program is a sequence of instructions.
Process
Process is a running activity of a program in a computer on a certain data set, the basic unit of resource allocation and scheduling of the system, and the basis of the structure of the operating system. In the early process-oriented computer architecture, the process is the basic execution entity of the program; in the contemporary thread-oriented computer architecture, the process is the container of threads. A program is a description of instructions, data and its organizational form, and a process is the entity of a program.
The difference and connection between program and process
1), the program is just an ordered collection of instructions, it does not have any meaning to run, it is just a static entity. A process, on the other hand, is the execution of a program on a dataset. A process is a dynamic entity that has its own life cycle. It is created because it is created, runs because it is scheduled, waits for resources or events, and is undone for completing tasks. The process reflects the whole dynamic process of a program running on a certain data set.
2) processes and programs do not correspond to each other one by one. A program executes on different data sets and becomes a different process. Each process can be uniquely identified by a process control block. This is exactly what the program cannot do, because the program does not have a direct connection with the data, even if it is a program that executes different data, the set of their instructions is still the same. so it is impossible to uniquely identify these programs that run on different data sets. Generally speaking, a process must have a corresponding program, and there is only one. A program may not have a corresponding process (because it is not executed), or there may be multiple processes corresponding to it (running on several different datasets).
3) the process also has concurrency and communication, which is different from the closeness of the program.
After reading this article, I believe you have a certain understanding of the difference between procedures and processes. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.