Lecture-5 Cache Memory _ Virtual Memory
Lecture-5 Cache Memory _ Virtual Memory
Page-1
Swap in
RAM=5GB Page-2
Frame-1 Page-3
Frame-2 Page-4
Frame-3 Page-5
Frame-4 Page-6
Frame-5 Swap out Page-7
Page-8
The virtual memory technique is taken place in between RAM and hard disk.
In this technique, the entire program is not loaded into the RAM at a time.
Instead of that, the program is divided into some equal size which are called
pages. The RAM is also divided into some equal size which are called
frames. Here the page size is equal to frame size. A page is loaded into a
frame which is called swap in. When a page is no more essential, it is back
to its previous location which is called swap out, This swap in and swap out
technique is called swapping. It is also called demand paging technique.
Using demand paging technique virtual memory is implemented.
Why Is Virtual Memory Important?