I can\'t find any useful answer for this question, although it has been asked in a different way several times.
I want to share a memory between two processes (two d
Use a named pipe.
It's a mechanism that allows one process to write sequential data into a stream, from which the other process can read.
Note that named pipe only allow sequential read. If you need to use more elaborated queries, you might want to use client-server architecture. In this case, the reader process queries the other process for information using network sockets.