Shared memory between 2 processes (applications)

前端 未结 5 861
深忆病人
深忆病人 2020-11-28 12:44

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

5条回答
  •  春和景丽
    2020-11-28 13:17

    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.

提交回复
热议问题