codescracker


operating system os

OS Memory Mapped Files



« Previous Tutorial Next Tutorial »


As many computer programmers feel that accessing the files is cumbersome and inconvenient mainly when compared to accessing ordinary memory.

Therefore, for all above reason, some OSs have provided a way to map the files into the address space of a running process.

Conceptually, we can imagine the existence of the following two new system calls:

From the above two new imagined system calls, the map gives a file name and a virtual address that causes the OS to map the file into the address space at the virtual address.

For those type of computer system that supports segmentation, file mapping works best there.

File mapping introduces the following three problems:


« Previous Tutorial Next Tutorial »




Tools
Calculator

Quick Links
Signup - Login - Give Online Test