File access is a resource-intensive operation. Accessing a file from the disk for an application is a time-consuming operation, and accessing data from the primary memory is always faster. So, what if ...
// Mapping a file into memory effectively allows for file I/O on any thread. // The accessing thread could be paused while data from the file is paged // into memory ...