title: How can you mmap in parallel for faster file reading?
body: <p>I am working through <a href="https://stackoverflow.com/questions/20460670/reading-a-file-to-string-with-mmap">this code</a> and have the <code>mmap</code> working now, but I am wondering if I can use <code>mmap</code> in parallel and if so, how to accomplish it. Suppose I have my data on a parallel file system (<code>GPFS</code>, <code>RAID0</code>, whatever) and I want to read it using <code>n</code> processes. </p>
  
  <p>How could I, for example, have each processor read <code>1/nth</code> contiguous block of the data into memory? Or, alternatively, read every <code>nth</code> memory block (1 B, 1 MB, 100 MB, 1 GB, whatever I choose for optimization) into memory?</p>
  
  <p>I am assuming a <code>posix</code> file system here.</p>