Cache memory increases the accessing speed of CPU. It is not a technique its a memory unit means a storage device. in cache memory, Recently used data are copied. Whenever the program is ready to executed it is fetched from main memory and copied to the cache memory if its copy is already present in cache memory than the program is directly executed.
Virtual Memory increases the capacity of main memory. Virtual memory is not a storage unit, its a technique. In virtual memory, The program which size is larger than main memory are executed means, if the size of the program is greater than the size of main memory then it is allowed to execute.
Difference between Virtual memory and Cache memory:
|S.NO||Virtual Memory||Cache Memory|
|1.||Virtual memory increases the capacity of main memory.||While cache memory increase the accessing speed of CPU.|
|2.||Virtual memory is not a memory unit, its a technique.||Cache memory is exactly a memory unit.|
|3.||The size of virtual memory is greater than the cache memory.||While the size of cache memory is less than the virtual memory.|
|4.||Operating System manages the Virtual memory.||On the other hand hardware manages the cache memory.|
|5.||In virtual memory, The program which size is larger than main memory are executed.||While in cache memory, Recently used data are copied.|
- Difference between Random Access Memory (RAM) and Content Addressable Memory (CAM)
- Computer Organization | Cache Memory
- Difference between Byte Addressable Memory and Word Addressable Memory
- Virtual Memory | Questions
- Virtual Memory | Operating System
- Operating System | Memory management - mapping virtual address to physical addresses
- Difference between Uniform Memory Access (UMA) and Non-uniform Memory Access (NUMA)
- Difference between Volatile Memory and Non-Volatile Memory
- Introduction to memory and memory units
- Difference between Simultaneous and Hierarchical Access Memory Organisations
- What's difference between CPU Cache and TLB?
- Difference between Cache and Cookies
- IPC through shared memory
- Secondary Memory
- 2D and 2.5D Memory organization
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.