What is the difference between process and program?

What is the difference between process and program?

The difference between process and program is

Programming is a process of taking an algorithm and encoding into notation but Process is the running program of the system.

a program is a group of instructions to carry out a specified task whereas the process is a program in execution.

Both are the same beast with the different name or when this beast is sleeping (not executing) it is called program and when it is executing becomes a process.

A program is a static object whereas a process is a dynamic object.

A program resides in secondary storage whereas a process resides in main memory.

The span time of a program is unlimited but the span time of a process is limited.

A process is an ‘active’ entity whereas a program is a ‘passive’ entity.

A program is an algorithm expressed in programming language whereas a process is expressed in assembly language or machine language.

A program is a definite group of ordered operations that are to be performed and an instance of a program being executed is a process.

The program is stored on disk in some file and does not require any other resources, but Process holds resources such as CPU, memory address, disk, I/O etc.


Leave a comment

Your email address will not be published. Required fields are marked *