Virtual memory is an address mapping technique that maps virtual addresses used by programs to physical addresses in memory. It allows programs to behave as if they have more memory than is physically installed on the system. The memory management unit (MMU) performs this mapping and handles memory protection and paging. When a program accesses memory using a virtual address, the MMU translates it to the corresponding physical address. If the page is not in memory, a page fault occurs and the OS loads the page from disk before resuming execution. The translation lookaside buffer (TLB) caches recent translations to improve performance.
Related topics: