Introduction to Process

Filter Course


Introduction to Process

Published by: Zaya

Published date: 22 Jun 2021

Introduction to Process Photo

Introduction to Process

Program

A program is a piece of code that may be a single line or millions of lines. A computer program is usually written by a computer programmer in a programming language. A computer program is a collection of instructions that performs a specific task when executed by a computer. When we compare a program with a process, we can conclude that a process is a dynamic instance of a computer program.

Process

A process is an instance of a program in execution. A program becomes a process when an executable file is loaded in the main memory. A process is defined as an entity that represents the basic unit of work to be implemented in the system. Each process has its own address space and process control block (PCB).

The difference between Program and Process are:

Program Process
1.Program is a set of instruction 1. Program is a set of instruction
2. It is Passive in nature. 2. It is Active in nature
3. Its lifespan is longer. 3. Its lifespan is Limited.
4. Program is stored on disk in some file
and does not require any other resources
4. Program is stored on disk in some file
and does not require any other resources