Memory-Mapped Files

Back to Virtual Memory

Mapping a file’s contents directly into the process’s virtual address space using mmap(). The OS handles paging data in and out of physical memory on demand, providing efficient random access to large files without explicit read/write system calls.

memory-models virtual-memory mmap