Shared-memory blocks are perhaps the fastest IPC mechanism, especially for transferring large structures between processes. However, they require careful synchronization, or subtle bugs can occur in complex programs or systems. Message queues are quite useful for one-way communications between a server (say a display process) and a number of clients (data-collection processes, for example). But the practical size of queue messages may be limited (particularly on AIX) to small chunks of information.

---------------------------------------------------------------------------------------------

boost library

 

shared memory,

first time copy (500bytes), 9 uS;

non-first time copy, 1~2 uS;

 

message queue

copy(500bytes), 4~5 uS

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-12-18
  • 2022-12-23
  • 2021-08-09
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-23
  • 2021-06-08
  • 2022-12-23
  • 2021-10-10
  • 2021-09-29
  • 2021-05-26
  • 2022-12-23
相关资源
相似解决方案