Memory Hierarchy / मेमोरी हाइरार्की
A computer uses different levels of memory because no single memory technology simultaneously provides maximum speed, very large capacity and minimum cost. Memory hierarchy arranges storage according to speed, size, cost and closeness to the CPU. Registers and cache are located near the processor, while RAM and secondary storage provide progressively larger but generally slower storage.
Computer में different levels of memory का उपयोग किया जाता है क्योंकि कोई एक memory technology maximum speed, very large capacity और low cost तीनों एक साथ प्रदान नहीं करती। Memory hierarchy speed, capacity, cost और CPU से proximity के आधार पर storage को व्यवस्थित करती है।
Registers / रजिस्टर
Registers are extremely fast and very small storage locations associated with the CPU. They temporarily hold instructions, data or intermediate results that are immediately required during processing. Because registers are located within or very close to the processor, they provide some of the fastest data access in a computer.
Registers अत्यंत fast और small storage locations होते हैं जो CPU से closely associated होते हैं। Processing के दौरान तुरंत आवश्यक data, instructions या intermediate results इनमें temporarily stored होते हैं।
Cache Memory / कैश मेमोरी
Cache memory acts as a high-speed buffer between the CPU and main memory. It stores frequently used data and instructions so that the processor can access them more quickly than if it had to retrieve them repeatedly from slower RAM. The source material identifies cache as faster than RAM and commonly associates it with SRAM technology.
Cache memory CPU और main memory के बीच high-speed buffer की तरह कार्य करती है। Frequently used data और instructions इसमें stored होते हैं ताकि CPU उन्हें RAM से बार-बार retrieve करने की तुलना में अधिक तेजी से access कर सके। Source material cache को RAM से faster और SRAM से associated बताती है।
Main Memory / मुख्य मेमोरी
Main memory generally includes RAM used to hold currently active programs and data. It has greater capacity than cache but is slower. RAM is volatile and loses stored data when electrical power is removed.
Main memory में मुख्य रूप से RAM का उपयोग active programs और data को store करने के लिए होता है। इसकी capacity cache से अधिक होती है लेकिन speed कम होती है। RAM volatile होती है।
Secondary Storage / सेकेंडरी स्टोरेज
Secondary storage includes devices such as SSDs, hard disks and optical media. It provides much larger capacity and non-volatile data retention compared with primary working memory. However, access to secondary storage is generally slower than access to RAM, cache or registers.
Secondary storage में SSD, hard disk और optical media जैसे devices शामिल होते हैं। यह primary memory की तुलना में larger capacity और non-volatile storage प्रदान करती है, लेकिन access speed generally lower होती है।
Typical Hierarchy / सामान्य क्रम
A simplified hierarchy from fastest and smallest toward slower and larger storage is: Registers → Cache → Main Memory/RAM → Secondary Storage. The source material also includes a memory pyramid illustrating this relationship between speed, cost and capacity.
Fastest से comparatively slower storage तक simplified order है: Registers → Cache → Main Memory/RAM → Secondary Storage। Source material में memory pyramid भी दिया गया है जो speed और capacity के इस relation को समझाता है।
Exam Strategy / परीक्षा रणनीति
Remember that the memory closest to the processor is usually fastest and smallest. Registers are faster than cache, cache is faster than RAM and RAM is generally faster than secondary storage. Questions may test this order directly or through statements comparing different types of memory.
याद रखें कि CPU के सबसे निकट memory सामान्यतः सबसे तेज और छोटी होती है। Registers सबसे तेज, उसके बाद cache, फिर RAM और उसके बाद secondary storage आती है।