Fastest technique to pass messages between processes on Linux?

前端 未结 7 1529
心在旅途
心在旅途 2020-12-12 13:28

What is the fastest technology to send messages between C++ application processes, on Linux? I am vaguely aware that the following techniques are on the table:

7条回答
  •  盖世英雄少女心
    2020-12-12 13:58

    I would suggest looking at this also: How to use shared memory with Linux in C.

    Basically, I'd drop network protocols such as TCP and UDP when doing IPC on a single machine. These have packeting overhead and are bound to even more resources (e.g. ports, loopback interface).

提交回复
热议问题