DIZNR INTERNATIONAL

Day 01Part 03- Operating System Difference between programs and processes.

Day 01Part 03- Operating System Difference between programs and processes.

https://www.gyanodhan.com/video/7B7.%20GATE%20CSEIT/Operating%20System/447.%20Day%2001Part%2003-%20Operating%20System%20%20%20Difference%20between%20programs%20and%20processes.mp4

 Difference Between Programs and Processes in Operating Systems

In an Operating System (OS), the terms Program and Process are often confused, but they are quite different. Let’s break it down!

 What is a Program?

A program is a passive entity that contains a set of instructions written in a programming language (like C, Java, Python) that tells the computer what to do. It is stored on disk or memory but does not execute by itself.

Example: A .exe file on your computer is a program.

Key Characteristics:
Stored as a file (not executing).
Does not consume CPU or memory until executed.

Static in nature.

 What is a Process?

A process is an active entity that represents a running instance of a program. When a program is executed, the OS loads it into memory (RAM), assigns system resources, and creates a process.

Example: When you open Google Chrome, the program file (chrome.exe) runs as multiple processes to handle different tabs.

Key Characteristics:
Requires CPU and memory.
Dynamic in nature (changes during execution).
Has a Process ID (PID) assigned by the OS.

 Key Differences Between Program and Process

Feature Program Process
Definition A passive set of instructions. An active execution of a program.
State Static (stored in disk). Dynamic (runs in memory).
Resource Consumption Does not use CPU/memory. Uses CPU, memory, I/O.
Execution Needs to be executed. Already running.
Example MS Word.exe file in disk. Opened instance of MS Word running in RAM.

 Summary:

Would you like more details on Process States or Process Scheduling in OS?

Here’s a clear explanation of “Day 01 – Part 03: Difference between Programs and Processes” in the context of an Operating System, useful for beginners, B.Tech students, and GATE aspirants:


Difference Between Program and Process

(ऑपरेटिंग सिस्टम – Operating System)

Aspect Program Process
Definition A passive set of instructions. An active instance of a program in execution.
State Static (non-living; stored on disk) Dynamic (running in memory; alive)
Stored In Hard disk or any secondary storage RAM (main memory)
Execution Not executing by itself Executing — needs CPU and resources
Lifespan Permanent until deleted Temporary — lives during execution only
Type Code or file (e.g., .exe, .py, .c) Active job/task (e.g., running a browser)
Multiple Copies One program can have multiple processes Each process is an instance of a program
Managed By Stored and managed by the file system Managed by the Operating System (OS)

Simple Explanation (in Easy Language)


Example:

एक ही Program के multiple processes हो सकते हैं
जैसे आप दो बार Chrome खोलें → दो separate processes बनती हैं


Why is this important in OS?


Quick Revision Points:


Bonus:

Would you like:

Just let me know — I can prepare that for you!

Day 01Part 03- Operating System Difference between programs and processes.