Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape

Cache Memory

Cache Memory

Cache Memory एक बहुत fast memory है जो CPU के बहुत close होती है। इसका उपयोग frequently या recently used data और instructions को temporarily store करने के लिए किया जाता है, ताकि CPU उन्हें जल्दी access कर सके।

Simple words में, Cache Memory CPU और RAM के बीच fast working memory की तरह काम करती है।

Cache Memory का काम

CPU बहुत fast होता है, जबकि RAM की access latency CPU से अधिक होती है। Cache Memory frequently needed information को CPU के पास रखकर इस difference को कम करने में मदद करती है।

Basic Flow:

CPU → Cache → RAM → Storage

अगर CPU को required data cache में मिल जाता है, तो इसे Cache Hit कहते हैं।

अगर data cache में नहीं मिलता और RAM से लाना पड़ता है, तो इसे Cache Miss कहते हैं।

1. Fast Access

Cache Memory RAM की तुलना में बहुत fast access provide करती है।

इससे CPU frequently used data और instructions को जल्दी access कर सकता है।

2. Temporary Storage

Cache में data permanently store नहीं होता। यह current processing needs के अनुसार data को temporarily hold करती है।

3. CPU के Close

Cache CPU के बहुत close integrated होती है। Modern processors में L1 और L2 cache आमतौर पर individual CPU cores के बहुत close होती हैं।

4. Performance Improve करना

Cache Memory CPU को frequently used data जल्दी उपलब्ध कराने में मदद करती है, जिससे overall processing performance improve हो सकती है।

Cache Memory के Levels

Modern CPUs में cache को commonly तीन levels में समझा जाता है:

See also  Introduction of Computer Hardware

1. L1 Cache

L1 (Level 1) Cache CPU core के सबसे close और generally सबसे fast cache होती है।

  • Very fast
  • Small capacity
  • Frequently used instructions/data के लिए

2. L2 Cache

L2 (Level 2) Cache L1 से बड़ी होती है, लेकिन generally L1 से slower होती है।

यह CPU को additional fast storage provide करती है।

3. L3 Cache

L3 (Level 3) Cache L2 से बड़ी होती है। कई modern multi-core processors में L3 cache multiple cores के बीच shared हो सकती है।

यह L1 और L2 की तुलना में generally slower होती है, लेकिन RAM से faster access दे सकती है।

Cache Memory और RAM में अंतर

Cache MemoryRAM
बहुत fastCache से slower
CPU के बहुत closeMain system memory
Capacity छोटीCapacity बड़ी
Frequently used data/instructionsRunning programs और data
Expensive per GBComparatively lower cost per GB

Cache Memory और Storage में अंतर

Cache: CPU processing को accelerate करने वाली very fast temporary memory।

RAM: Running programs और data की main working memory।

SSD/HDD: Long-term persistent storage।

Example

मान लीजिए CPU किसी program में एक ही data को बार-बार use कर रहा है।

अगर data cache में मौजूद है:

CPU → Cache → Data

तो CPU को RAM से data fetch करने की जरूरत कम हो सकती है।

अगर data cache में नहीं है:

CPU → RAM → Data

यह situation Cache Miss कहलाती है।

Cache Memory की Characteristics

  • Very high speed
  • Small capacity
  • CPU के close
  • Temporary storage
  • Frequently used data/instructions
  • Performance optimization में important
See also  Control Unit (CU)

Quick Revision

Cache Memory = Small + Very Fast + CPU के Close

Levels:

L1 → Fastest & Smallest
L2 → Larger, generally slower than L1
L3 → Larger, often shared, generally slower than L2

Cache Memory CPU के पास मौजूद high-speed memory है, जो frequently used data और instructions को temporarily रखकर CPU को faster access देने में मदद करती है।

Firmware

  • 29/08/2026

Leave a Reply

Your email address will not be published. Required fields are marked *