What is the difference between cache memory and registers?
Answers
Answer:
Difference between Cache Memory and Register :
S.No. CACHE MEMORY REGISTER
1. Cache is a smaller and fastest memory component in the computer. Registers is a small amount of fast storage element into the processor.
2. Cache memory is exactly a memory unit. It is located on the CPU.
3. It is used during reading and writing processes from the disk. It is used to store and retrieve information from them.
4. It is a high-speed storage area for temporary storage. It is used to store data temporarily for processing and transfer.
5. It copied the recently used data into. It holds operands or instruction that CPU is currently processing.
6. It reduces the average memory access time. It reduces the time required to find the item stored in memory.
7. CPU accesses memory at the faster rate than register. CPU can operate on register contents at the rate of more than one operation in one clock cycle.
8. Dynamic Page Cache, Database Query Cache are example of cache. Loop counters is example of register.