Memory Organization
Memory Organization
2. This memory contains program for 2. All programs and data are stored
processing and some program used for permanently in secondary memory.
computers own control.
3. Usually the storage capacity of the 3. The storage capacity of auxiliary
main memory is less than that of the memory is more than that of the main
auxiliary memory. memory.
5. Unit price of primary memory is more 5.Unit price of secondary memory is less
than that of secondary memory. than that of primary memory.
Differences between RAM and ROM
RAM ROM
1. Its full name is Random Access 1. Its full name is Read Only Memory.
Memory.
3. . Instruction/data is lost when power is 3. Data is not lost if power is cut off. That is ,
cut off. That is, it is volatile memory. it is non volatile memory.
5. Capacity of RAM is more than that of 5. Capacity of ROM is less than that of RAM.
ROM.
6. . Its examples are static RAM, Dynamic 6. Its examples are PROM, EPROM.
RAM etc. EEPROM etc.
Virtual Memory
• Virtual Memory:
To remove the limitations of storing data in the main
memory, the latest operation system, can use the
auxiliary memory of the computer, such as the empty
space of the hard disk as a part of the main memory.
This system is present in Mac OS and Windows
operation system. The part of the auxiliary memory
which is considered as main memory is called Virtual
Memory. The space of the hard disk used as the part
of main memory i.e. internal memory will be found
short to store data in the hard disk.
Cache Memory
• Cache Memory:
The smallest high speed and expensive memory in the computer is cache
(pronounced Cash) Memory. Cache memory is similar to RAM, except that
it is extremely fast compared to normal memory, and it is used in a
different way. The speed of processing becomes fast if the
instructions and data used much are kept in the cache memory. As
there is variation in the speed of the CPU and main memory, a kind of
memory named cache memory is used between the CPU and the main
memory whose speed is 100 times more than that of the CPU.
When a program is running and the CPU needs to read data or program
instructions from RAM, the CPU checks first to see whether the data is in
cache memory. If the data is not there, the CPU reads the data from RAM
into its registers, but it also loads a copy of the data into cache memory.
The next time the CPU needs that same data, it finds it in the cache
memory and saves the time needed to load the data from RAM. Since the
late 1980's, most PC CPU's have cache memory built into them. This CPU
resident cache is often called Level-1 (LI) cache. Today, many CPU's have
as much as 256 KB built in. In addition to the cache memory built into the
CPU is also added to the motherboard. This mother-board-resident cache
is often called Level-2 (L2) cache.
Many PC's being sold today have 512 MB or 1024 MB or 2 GB or 4 GB of
cache memory in the motherboard. In this system, when CPU required
any instruction, it firsts checks the cache memory and if not found, then
the main memory. But almost in 90% case, data or instruction can be
found in the cache memory.