title: How to use Shared Memory between two separate applications in C
body: <p>Having done research, there isn't a good stack overflow post on how to share memory between two separate applications in C++, that comes with code.</p>
  
  <p>One solution can be found here: <a href="https://stackoverflow.com/questions/5656530/how-to-use-shared-memory-with-linux-in-c">How to use shared memory with Linux in C</a></p>
  
  <p>But it requires a process to be forked so that memory <code>mmap</code>'s to the same location. It doesn't work for two separate applications.</p>
  
  <p>Whats the most efficient way to write two applications that share data using a memory space?</p>