This document discusses virtual memory and cache memory. Virtual memory allows a computer to use disk storage like a hard drive as extra memory when RAM is full by moving rarely used data to disk. This improves performance. Cache memory stores copies of frequently used data from RAM closer to the CPU, which reduces access time compared to RAM. Both techniques improve performance by reducing memory access times, but virtual memory can slow down applications and cache memory increases costs.
This document discusses virtual memory and cache memory. Virtual memory allows a computer to use disk storage like a hard drive as extra memory when RAM is full by moving rarely used data to disk. This improves performance. Cache memory stores copies of frequently used data from RAM closer to the CPU, which reduces access time compared to RAM. Both techniques improve performance by reducing memory access times, but virtual memory can slow down applications and cache memory increases costs.
This document discusses virtual memory and cache memory. Virtual memory allows a computer to use disk storage like a hard drive as extra memory when RAM is full by moving rarely used data to disk. This improves performance. Cache memory stores copies of frequently used data from RAM closer to the CPU, which reduces access time compared to RAM. Both techniques improve performance by reducing memory access times, but virtual memory can slow down applications and cache memory increases costs.
Class-5th BCA ‘C’ Reg. No.-R1811768 Virtual Memory Virtual memory is a feature of an operating system that enables a computer to be able to compensate shortages of physical memory by transferring pages of data from random access memory to disk storage. This means that when RAM runs low, virtual memory can move data from it to a space called a paging file. Advantages & Disadvantages Advantage: The primary benefits of virtual memory include freeing applications from having to manage a shared memory space, increased security due to memory isolation, and being able to conceptually use more memory than might be physically available, using the technique of paging. Disadvantage: Applications may run slower if the system is using virtual memory. Likely takes more time to switch between applications. Offers lesser hard drive space for your use. It reduces system stability. Cache Memory Cache memory is an extremely fast memory type that acts as a buffer between RAM and the CPU. ... Cache memory is used to reduce the average time to access data from the Main memory. The cache is a smaller and faster memory which stores copies of the data from frequently used main memory locations. Advantages & Disadvantages Advantages Cache memory is faster than main memory. It consumes less access time as compared to main memory. It stores the program that can be executed within a short period of time. Disadvantages Cache memory comes at an increased marginal cost than main memory and thus can increase the cost of the overall system. Cached data is stored only so long as power is provided to the cache. Increased on-chip area required for memory system. Thank You