OSMediumMemory Management
Explain Virtual Memory and Paging
đ Problem
Explain what virtual memory is and how paging helps implement it.
đ§ Approach
Virtual memory lets a program use more memory than physically available RAM, by using disk space as an extension. Paging divides both the program's memory (into 'pages') and physical RAM (into 'frames') of equal fixed size. A page table maps each virtual page to a physical frame â pages not currently needed can be swapped out to disk, and brought back in (a 'page fault') when accessed again.