Disadvantages of Memory Mapped Files
- In some cases, memory mapped file I/O may be substantially slower as compared to standard file I/O.
- Only hardware architecture that has MMU (Memory Management Unit) supports memory mapped files.
- In memory mapped files , expanding the size of a file is not easy.
Memory Mapped Files in OS
We can use standard system calls like read(), seek(), open(), and so on to perform a sequential read of a file present on the disk. Thus, to access a file from the disk we need system calls and disk access. Memory mapping is a technique that allows a part of the virtual address space to be associated with a file logically. This technique of memory mapping leads to a significant increase in performance.
Contact Us