0
0

Memory Management Basics

Introduction

Memory Management एक Operating System की सबसे महत्वपूर्ण जिम्मेदारियों में से एक है। यह सुनिश्चित करता है कि programs को smoothly चलने के लिए आवश्यक memory मिले और वे एक-दूसरे की memory में interfere न करें।

Competitive exams में basic memory concepts पर अक्सर प्रश्न पूछे जाते हैं, ताकि यह जांचा जा सके कि उम्मीदवार समझते हैं या नहीं कि OS limited memory resources को efficiently कैसे handle करता है।

Pattern: Memory Management Basics

Pattern

Memory management एक operating system का वह function है जो running programs के लिए main memory (RAM) के allocation, use, और release को control करता है।

Step-by-Step Example

Question

Operating system का कौन-सा function अलग-अलग programs को RAM allocate करने के लिए responsible होता है?

Options:
A. Process management
B. File management
C. Memory management
D. Device management

Solution

  1. Step 1: Mentioned resource पहचानें

    प्रश्न में साफ़ तौर पर RAM का उल्लेख है, जो computer की main memory होती है।
  2. Step 2: Resource को OS function से match करें

    RAM का allocation और deallocation operating system के memory management function द्वारा किया जाता है।
  3. Final Answer:

    Memory management → Option C
  4. Quick Check:

    Memory allocation के बिना programs run नहीं कर सकते → memory management confirmed ✅

Quick Variations

1. प्रश्न पूछ सकते हैं कि कौन-सा OS function programs के बीच memory conflicts को prevent करता है।

2. कभी-कभी प्रश्न virtual memory concepts पर आधारित होते हैं।

3. paging vs segmentation पर basic comparison questions आम हैं।

Trick to Always Use

  • Step 1 → अगर प्रश्न में RAM या main memory का ज़िक्र हो, तो Memory Management सोचें।
  • Step 2 → Allocation, deallocation, और protection हमेशा इसी function से जुड़े होते हैं।

Summary

Summary

  • Memory management यह control करता है कि RAM कैसे allocate और use की जाए।
  • यह सुनिश्चित करता है कि programs एक-दूसरे की memory में interfere न करें।
  • Virtual memory और paging, memory management के extensions हैं।
  • यह एक medium-level लेकिन frequently tested OS concept है।

Practice

(1/5)
1. Which operating system function ensures that different programs do not overwrite each other’s memory space?
easy
A. Memory management
B. Process management
C. File management
D. Device management

Solution

  1. Step 1: Identify the problem mentioned

    The question talks about preventing programs from interfering with each other’s memory.
  2. Step 2: Match with OS responsibility

    Memory protection and isolation are handled by memory management.
  3. Final Answer:

    Memory management → Option A
  4. Quick Check:

    Preventing memory conflicts is a core memory management task ✅
Hint: Memory protection always comes under memory management.
Common Mistakes: Choosing process management instead of memory management.
2. Which concept allows a computer to use hard disk space as an extension of RAM?
easy
A. Paging
B. Virtual memory
C. Segmentation
D. Cache memory

Solution

  1. Step 1: Identify the key idea

    The question mentions using disk space like RAM.
  2. Step 2: Match with the correct concept

    Virtual memory allows secondary storage to act as additional main memory.
  3. Final Answer:

    Virtual memory → Option B
  4. Quick Check:

    Disk used as memory extension = Virtual memory ✅
Hint: Disk acting like RAM always points to virtual memory.
Common Mistakes: Confusing virtual memory with cache memory.
3. Which memory management technique divides memory into fixed-size blocks?
easy
A. Segmentation
B. Virtual memory
C. Paging
D. Swapping

Solution

  1. Step 1: Identify the memory division method

    The question specifies fixed-size blocks.
  2. Step 2: Match with the correct technique

    Paging divides memory into fixed-size pages.
  3. Final Answer:

    Paging → Option C
  4. Quick Check:

    Fixed-size blocks always indicate paging ✅
Hint: Fixed size = Paging, variable size = Segmentation.
Common Mistakes: Mixing up paging and segmentation.
4. Which memory management activity decides how much memory each running program receives?
medium
A. Memory allocation
B. Memory protection
C. Swapping
D. Segmentation

Solution

  1. Step 1: Identify the decision-making task

    The question refers to deciding memory size for programs.
  2. Step 2: Match with OS activity

    Allocating memory to programs is called memory allocation.
  3. Final Answer:

    Memory allocation → Option A
  4. Quick Check:

    Giving memory to programs = Memory allocation ✅
Hint: Allocation means deciding who gets how much memory.
Common Mistakes: Confusing allocation with protection.
5. Which memory management technique divides memory according to logical parts of a program?
medium
A. Paging
B. Virtual memory
C. Swapping
D. Segmentation

Solution

  1. Step 1: Focus on logical division

    The question highlights division based on program logic.
  2. Step 2: Identify the technique

    Segmentation divides memory into logical segments like code, data, and stack.
  3. Final Answer:

    Segmentation → Option D
  4. Quick Check:

    Logical parts of a program = Segmentation ✅
Hint: Logical division always indicates segmentation.
Common Mistakes: Selecting paging when logical structure is mentioned.

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