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.
One solution can be found here: How to use shared memory with Linux in C
But it requires a process to be forked so that memory mmap
's to the same location. It doesn't work for two separate applications.
Whats the most efficient way to write two applications that share data using a memory space?