0
0

Multitasking, Multiprocessing & Multithreading

Introduction

Questions onMultitasking, Multiprocessing, और Multithreading पर आधारित प्रश्न PO-level और mains examinations में बहुत आम हैं। ये शब्द देखने में समान लगते हैं, लेकिन ये पूरी तरह अलग execution concepts को दर्शाते हैं।

परीक्षक अक्सर यह जांचते हैं कि उम्मीदवार सही तरीके से पहचान पाते हैं या नहीं कि एक साथ क्या execute हो रहा है-tasks, processors, या threads।

Pattern: Multitasking, Multiprocessing & Multithreading

Pattern

Multitasking का मतलब है एक single CPU पर कई tasks को चलाना, Multiprocessing का मतलब है parallel execution के लिए कई CPU का उपयोग, और Multithreading का मतलब है एक ही process के भीतर कई threads को execute करना।

Step-by-Step Example

Question

एक computer system एक single CPU का उपयोग करके एक साथ कई applications चलाता है। यह कौन-सा concept दर्शाता है?

Options:
A. Multiprocessing
B. Multithreading
C. Multitasking
D. Distributed processing

Solution

  1. Step 1: CPU की संख्या पहचानें

    प्रश्न में साफ़ लिखा है कि system में single CPU है।
  2. Step 2: क्या एक साथ चल रहा है, यह पहचानें

    कई applications या tasks एक ही समय पर चल रहे हैं।
  3. Final Answer:

    Multitasking → Option C
  4. Quick Check:

    One CPU + many tasks = Multitasking

Quick Variations

1. प्रश्न पूछ सकते हैं कि कौन-सा concept multiple CPU से जुड़ा है।

2. कभी-कभी प्रश्न एक process के भीतर threads पर आधारित होते हैं।

3. execution concept और उसकी definition के बीच match-the-following भी आम है।

Trick to Always Use

  • Step 1 → पहचानें कि क्या multiply हो रहा है: tasks, processors, या threads।
  • Step 2 → सीधे match करें: Tasks → Multitasking, CPUMultiprocessing, Threads → Multithreading

Summary

Summary

  • Multitasking एक single CPU पर कई tasks को चलाने की अनुमति देता है।
  • Multiprocessing parallel execution के लिए कई CPU का उपयोग करता है।
  • Multithreading एक ही process के भीतर कई threads को चलाता है।
  • यह एक high-frequency, confusion-prone लेकिन scoring exam pattern है।

Practice

(1/5)
1. Which concept refers to the ability of a system to execute more than one program by rapidly switching the CPU between them?
easy
A. Multitasking
B. Multiprocessing
C. Multithreading
D. Distributed processing

Solution

  1. Step 1: Identify the execution method

    The system switches CPU time between programs.
  2. Step 2: Match with the correct concept

    Rapid switching of tasks on a CPU is multitasking.
  3. Final Answer:

    Multitasking → Option A
  4. Quick Check:

    Task switching without multiple CPUs = Multitasking ✅
Hint: CPU switching between tasks indicates multitasking.
Common Mistakes: Confusing task switching with multiple CPUs.
2. Which execution concept allows a single application to perform multiple tasks simultaneously using smaller execution units?
easy
A. Multithreading
B. Multiprocessing
C. Multitasking
D. Batch processing

Solution

  1. Step 1: Focus on a single application

    The question specifies one application performing multiple tasks.
  2. Step 2: Identify the execution units

    Smaller execution units within a process are threads.
  3. Final Answer:

    Multithreading → Option A
  4. Quick Check:

    Multiple threads inside one process = Multithreading ✅
Hint: One program, many threads → Multithreading.
Common Mistakes: Assuming multitasking applies within a single program.
3. Which concept is used when a computer system uses more than one CPU to execute programs in parallel?
easy
A. Multitasking
B. Multiprocessing
C. Multithreading
D. Time sharing

Solution

  1. Step 1: Identify hardware involvement

    The question clearly mentions more than one CPU.
  2. Step 2: Match with execution concept

    Using multiple CPUs for parallel work is multiprocessing.
  3. Final Answer:

    Multiprocessing → Option B
  4. Quick Check:

    Parallel execution using multiple CPUs = Multiprocessing ✅
Hint: Multiple CPUs always indicate multiprocessing.
Common Mistakes: Mixing multiprocessing with multitasking.
4. Which concept improves application responsiveness by dividing a process into independent execution paths?
medium
A. Multitasking
B. Multiprocessing
C. Multithreading
D. Batch processing

Solution

  1. Step 1: Focus on application-level improvement

    The question mentions improving responsiveness within an application.
  2. Step 2: Identify execution paths

    Independent execution paths within a process are threads.
  3. Final Answer:

    Multithreading → Option C
  4. Quick Check:

    Threads running independently enhance responsiveness ✅
Hint: Better responsiveness inside one app → Multithreading.
Common Mistakes: Choosing multitasking instead of multithreading.
5. Which execution concept focuses on handling multiple independent tasks by allocating CPU time slices?
medium
A. Multiprocessing
B. Multithreading
C. Distributed computing
D. Multitasking

Solution

  1. Step 1: Identify scheduling method

    The question highlights CPU time slicing.
  2. Step 2: Match with execution concept

    Time-sliced execution of multiple tasks is multitasking.
  3. Final Answer:

    Multitasking → Option D
  4. Quick Check:

    CPU time slices shared among tasks = Multitasking ✅
Hint: Time slicing of tasks indicates multitasking.
Common Mistakes: Selecting multithreading for task-level scheduling.

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