0
0

Process vs Program

Introduction

One of the most common and tricky concepts in Operating Systems is understanding the difference between a Program and a Process. Competitive exams often test this concept because both terms sound similar but have very different meanings.

These questions are usually simple one-liners but can easily confuse learners if the core idea is not clear.

Pattern: Process vs Program

Pattern

A Program is a passive set of instructions stored on disk, whereas a Process is an active program that is currently under execution.

Step-by-Step Example

Question

Which of the following correctly differentiates a program from a process?

Options:
A. Program is active, Process is passive
B. Program is stored on disk, Process is in execution
C. Program requires CPU, Process does not
D. Program is temporary, Process is permanent

Solution

  1. Step 1: Recall the basic definitions

    A program is a set of instructions written to perform a task, while a process is the execution of those instructions.
  2. Step 2: Identify active vs passive state

    A program remains stored on disk and does nothing by itself, whereas a process is active and uses CPU and memory resources.
  3. Final Answer:

    Program is stored on disk, Process is in execution → Option B
  4. Quick Check:

    Same program can create multiple processes when executed multiple times ✅

Quick Variations

1. Questions may ask which one is active and which is passive.

2. Sometimes framed as identifying which one consumes CPU and memory.

3. Match-the-following questions between program and process characteristics are common.

Trick to Always Use

  • Step 1 → If it is just written code, think Program.
  • Step 2 → If it is running and using resources, think Process.

Summary

Summary

  • A Program is a passive set of instructions stored on disk.
  • A Process is an active instance of a program in execution.
  • Multiple processes can be created from the same program.
  • This is a simple but frequently asked conceptual exam pattern.

Practice

(1/5)
1. Which of the following best defines a program in an operating system?
easy
A. A set of instructions stored on disk
B. A task currently using CPU
C. A running application in memory
D. An active execution unit

Solution

  1. Step 1: Recall the definition of a program

    A program is written code that exists before execution.
  2. Step 2: Identify the passive state

    It is stored on disk and does not use CPU until executed.
  3. Final Answer:

    A set of instructions stored on disk → Option A
  4. Quick Check:

    Without execution, a program remains inactive ✅
Hint: Stored code without execution = Program.
Common Mistakes: Treating a stored program as an active process.
2. Which term refers to a program that is currently being executed by the CPU?
easy
A. Program file
B. Process
C. Instruction set
D. Source code

Solution

  1. Step 1: Focus on execution state

    The question highlights a program that is running.
  2. Step 2: Match with correct term

    A running instance of a program is called a process.
  3. Final Answer:

    Process → Option B
  4. Quick Check:

    Execution + CPU usage always indicates a process ✅
Hint: Running program = Process.
Common Mistakes: Confusing source code with a running process.
3. Which of the following correctly describes the nature of a process?
easy
A. Permanent and passive
B. Stored and inactive
C. Active and consuming system resources
D. Written once and never changes

Solution

  1. Step 1: Identify process characteristics

    A process exists only during execution.
  2. Step 2: Check resource usage

    It actively uses CPU, memory, and other resources.
  3. Final Answer:

    Active and consuming system resources → Option C
  4. Quick Check:

    Only active tasks consume resources → process confirmed ✅
Hint: If it uses CPU and memory, it is a process.
Common Mistakes: Assuming a process is permanent like a program.
4. Which statement is TRUE regarding programs and processes?
medium
A. A program cannot create more than one process
B. A process exists even without a program
C. A program uses CPU directly
D. Multiple processes can be created from the same program

Solution

  1. Step 1: Recall execution behavior

    Each time a program runs, it creates a process.
  2. Step 2: Consider repeated execution

    Running the same program multiple times creates multiple processes.
  3. Final Answer:

    Multiple processes can be created from the same program → Option D
  4. Quick Check:

    Opening the same app twice creates two processes ✅
Hint: One program can generate many processes.
Common Mistakes: Thinking one program equals only one process.
5. Which of the following is NOT a difference between a program and a process?
medium
A. Program is passive, process is active
B. Program is stored on disk, process is in memory
C. Program does not require CPU, process requires CPU
D. Program executes instructions while process stores them

Solution

  1. Step 1: Recall core definitions

    A program is a passive set of instructions, while a process is an active execution of those instructions.
  2. Step 2: Evaluate each option

    Options A, B, and C correctly describe real differences between a program and a process.
  3. Step 3: Identify the incorrect statement

    Option D is incorrect because a program stores instructions, whereas a process executes them-not the other way around.
  4. Final Answer:

    Program executes instructions while process stores them → Option D
  5. Quick Check:

    Execution is always performed by a process, not by a program ✅
Hint: If execution and storage roles are reversed, the statement is incorrect.
Common Mistakes: Mixing up which entity executes instructions and which one stores them.

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes