0
0

Multitasking, Multiprocessing & Multithreading

Introduction

Questions onMultitasking, Multiprocessing, மற்றும் Multithreading குறித்த கேள்விகள் PO-level மற்றும் mains தேர்வுகளில் மிகவும் பொதுவாக கேட்கப்படுகின்றன. இந்த சொற்கள் ஒரே மாதிரி தோன்றினாலும், அவை முழுமையாக வேறுபட்ட execution conceptsஐ குறிக்கின்றன.

தேர்வாளர்கள் சரியாக அடையாளம் காண்கிறார்களா என்பதை பரீட்சகர்கள் அடிக்கடி சோதிப்பார்கள் - ஒரே நேரத்தில் என்ன execute செய்யப்படுகிறது என்பதை: tasks, processors, அல்லது threads.

Pattern: Multitasking, Multiprocessing & Multithreading

Pattern

Multitasking என்பது ஒரு single CPUயில் பல tasks ஓடுவதை குறிக்கும், Multiprocessing என்பது parallel executionக்காக பல CPUகளை பயன்படுத்துவதை குறிக்கும், மற்றும் Multithreading என்பது ஒரு single 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 எண்ணிக்கையை கண்டறியுங்கள்

    கேள்வியில் தெளிவாக single CPU என்று குறிப்பிடப்பட்டுள்ளது.
  2. Step 2: ஒரே நேரத்தில் என்ன ஓடுகிறது என்பதை கண்டறியுங்கள்

    பல applications அல்லது tasks ஒரே நேரத்தில் இயங்குகின்றன.
  3. Final Answer:

    Multitasking → Option C
  4. Quick Check:

    One CPU + many tasks = Multitasking

Quick Variations

1. சில கேள்விகள் multiple CPUs சம்பந்தமான concept எது என்று கேட்கலாம்.

2. சில நேரங்களில் ஒரு processக்குள் உள்ள threads பற்றி கேள்வி அமைக்கப்படும்.

3. execution concept மற்றும் அதன் definitionஐ match செய்யும் கேள்விகள் பொதுவாக வரும்.

Trick to Always Use

  • Step 1 → எது multiply செய்யப்படுகிறது என்பதை கண்டறியுங்கள்: tasks, processors, அல்லது threads.
  • Step 2 → நேரடியாக match செய்யுங்கள்: Tasks → Multitasking, CPUs → Multiprocessing, Threads → Multithreading.

Summary

Summary

  • Multitasking ஒரு single CPUயில் பல tasksஐ இயக்க அனுமதிக்கிறது.
  • Multiprocessing parallel executionக்காக பல CPUகளை பயன்படுத்துகிறது.
  • Multithreading ஒரு single processக்குள் பல threadsஐ இயக்குகிறது.
  • இது அடிக்கடி கேட்கப்படும், குழப்பம் தரக்கூடிய, ஆனால் 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