'; var adpushup = adpushup || {}; adpushup.que = adpushup.que || []; adpushup.que.push(function() { adpushup.triggerAd(ad_id); });
A program is a passive entity that has a set of codes and instructions required to accomplish a task. A process, on the other hand, is an active entity of a program that is started with the execution of the program. Thus, the process is started by the program, once it is executed. The instructions of the program are then executed by the process.
Read through this article to find out more about programs and processes and how they are different from each other.
A program is a set of instruction codes that has been designed to complete a certain task. It is a passive entity stored in the secondary memory of the computer system. A program is considered as a passive and static entity.
A program is like a file which contains a set of instruction codes stored on a disk in the form of an executable file. A program contains instructions written in any programming language. Programs have an unlimited span of time.
A process is an instance of a program that is being currently executed. It is a dynamic and active entity of a program. Processes are created when the programs are executing and they reside in the main memory.
A process exists only for a limited time, and hence gets terminated as soon as the task completes. A process always consists of instructions written in machine language. A process contains temporary data, data selection, etc.
The following table highlights the important differences between a program and a process −
The most significant difference that you should note here is that a program is a set of instructions that is created to accomplish a specific task, whereas a process is a subset of a program which is created when the program is in execution.