To begin with, let us learn about the process.
Process
A process is a program in execution and it is more than a program code called a textsection and this concept works under all the operating systems because all the tasksperformed by the operating system needs a process to perform the task.
A process also known as one type of activity and it is used in the computer for aparticular purpose and a number of states involved in this concept.
A process is one type of state and the state of a process is defined in part by the help ofdifferent activity and a process has different types of a state.
A process includes the process stack which contains the following −
Temporary data like function parameters, return address, local variables.
Data section contains global variables.
Heap which is a memory dynamically allocated during process runtime.
The process is represented below −
Stack |
- - - |
Heap |
Data |
text |
Max
Program
A program by itself is not a process. A program is a passive entity such as a file whichcontains a list of instructions stored on a disk often called an executable file.
A process is an active entity with a program counter specifying the next instruction toexecute and a set of associated resources.
A program becomes a process when an executable file is loaded into memory.
Differences
The major differences between program and process in the form a table are as follows −
Program | Process | |
---|---|---|
Consists of | Instructions in any programming language | Instructions in machine code |
FS | Static object | Dynamic object |
Resides in | Secondary storage | Main memory |
Span of time | Unlimited | Limited |
Entity | Passive | Active |
Updated on: 29-Nov-2021
989 Views
Related Articles
- Difference Between Program and Process
- Difference between Process and Thread
- Difference Between Product and Process
- Difference between Business Process Management and Business Process Reengineering
- Difference between Job, Task and Process
- Difference between process builder and flows
- What is the relationship between process states and the machine cycle?
- Difference between Product and Process in Software development
- What is Host, and what is the difference between Nutrients and Nutrition?
- What is the difference between JavaScript and C++?
- What is the difference between time.clock() and time.time()?
- What is the difference between decodeURIComponent and decodeURI?
- What is the difference between == and === in JavaScript?
- What is the difference between session and cookies?
- What is the difference between assonance and consonance?
Advertisem*nts