When should I use mmap for file access?

POSIX environments provide at least two ways of accessing files. There’s the standard system calls open(), read(), write(), and friends, but there’s also the option of using mmap() to map the file into virtual memory.

When is it preferable to use one over the other? What’re their individual advantages that merit including two interfaces?

6 Answers
6

Leave a Comment