title: How is a memory mapped file synchronized with another process writing to file?
body: <p>I am essentially trying to "tail" a file by using a memory mapped file within a reader process while a writer process is appending data to it (using stdio) at some time interval. </p>
  
  <p>My question is how does the synchronization between the memory mapped file and the writer work behind the scenes? Would I need any additional synchronization mechanisms?</p>
  
  <p>I could use inotify to find out when the file is modified but I wasn't sure if the memory mapped file is guaranteed to be updated as well. </p>
  
  <p>I am using Linux ubuntu with gcc 4.8.2.</p>