Difference Between Program and Process in Operating System (OS)

Program vs process

Program Vs Process in Operating System

 
program is a system activity which uses a set of instruction to perform a designated task.
A process is an executing instance of a program.

Program

program is a system activity which uses a set of instruction to perform a designated task. It is considered as a passive entity as it resides on secondary memory. The resource requirement is less as it only requires memory for storage. The program performs tasks that are directly related to the operations of a user. For example, notepad.exe is an executable file having a set of instructions which help users to print and edit text files. When the user executes the program, it converts into the process.

 

Program execution

Process

A process is an executing instance of a program. A process is entirely dependent on the program. It is considered as an active entity as it resides on the primary memory. It requires resources like processing, memory address, CPU, input and output resources to perform the task. For example, a user can run multiple instances of Microsoft Word program.

Difference between Program and Process

ProcessProgram
A process is a program in executionA program is a set of instructions
A process is an active/dynamic entityA program is a passive/static entity
A process has a limited life span. It is created when execution starts and terminates when execution is finishedA program has a longer life span. It is stored on the hard disk in the computer.
A process contains memory address which is called address spaceA program requires memory space on disk to store all instructions