实施IPC的方法 [英] way to implement IPC

查看:76
本文介绍了实施IPC的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上实现IPC的首选方法是什么?

what is the preferred way to implement IPC over windows ?

我知道几个类似的东西:命名管道,共享内存,信号量? ,也许是COM(尽管我不确定如何)...

i know of several like : named pipe, shared memory, semaphors ? , maybe COM (though i'm not sure how)...

我想知道什么是最可靠,最快速,最不易出错且易于维护/理解的东西.

i wanted to know what's considered the most robust,fast,least error prone and easy to maintain/understand.

推荐答案

看看 boost :: interprocess .

通常,共享内存可能是最快的,但是有点容易出错,并且仅限于本地进程.

Shared memory is probably the fastest in general, but somewhat error-prone and limited to local processes.

COM已完全版本化,并自动支持远程IPC,但显然它是特定于平台的.

COM is fully versioned and automatically supports remote IPC, but obviously it's platform-specific.

对于大型应用程序,您可能需要考虑类似 ActiveMQ

For a large-scale application you might want to consider something like ActiveMQ or OpenMQ.

这篇关于实施IPC的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆