V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
gaoyadianta
V2EX  ›  Linux

用 C++实现进程间通信除了 boost::interprocess 还有什么其他比较好的方式吗

  •  
  •   gaoyadianta · May 7, 2019 · 4767 views
    This topic created in 2552 days ago, the information mentioned may be changed or developed.
    C 的话,知道可以用 POSIX 或者 SystemV 的一些库函数,C++不太熟,请教下版上大神:我们需要用 C++实现共享内存、mutex 等等这些东西,除了 boost::interprocess 库,还有其他实现方式吗?如果没有,boost::interprocess 这个库有坑吗?
    4 replies    2019-05-14 09:33:16 +08:00
    gaoyadianta
        1
    gaoyadianta  
    OP
       May 7, 2019 via Android
    有人可以指导下吗
    sailing0505
        3
    sailing0505  
       May 14, 2019 via Android
    进城间通信有几种方式,管道,共享内存,域套接字。如果本机建议使用命名管道
    gaoyadianta
        4
    gaoyadianta  
    OP
       May 14, 2019
    @sailing0505 明白,我想问的是在 C++下的实现,是不是 boost::interprocess 是最好的选择呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2474 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:01 · PVG 16:01 · LAX 01:01 · JFK 04:01
    ♥ Do have faith in what you're doing.