Different STORAGES used in Computers
Memory Hierarchy
-
Register: Smallest unit of storage. It is a part of CPU itself.
- A register may hold an instruction, a storage address, or any data (such as bit sequence or individual characters).
- Registers are a type of computer memory used to quickly accept, store, and transfer data and instructions that are being used immediately by the CPU.
-
Cache: Additional memory system that temporarily stores frequently used instructions and data for quicker processing by the CPU.
-
Main Memory:
RAM
. - Secondary Memory: Storage media, on which computer can store data & programs.
Comparison ðĪš
-
Cost:
- Primary storages are costly.
- Registers are most expensive due to expensive semiconductors & labour.
- Secondary storages are cheaper than primary.
-
Access Speed:
- Primary has higher access speed than secondary memory.
- Registers has highest access speed, then comes cache, then main memory.
-
Storage size:
- Secondary has more space.
-
Volatility:
- Primary memory is volatile.
(Data is lost when power is turned off.)
- Secondary is non-volatile.
(Data is retained even when power is turned off.)
- Primary memory is volatile.