IPC方法的选择 [英] Choice of IPC method

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

问题描述

我有几个数学的dll,有的则是为x64平台,一些 - 用于x86。我还需要几个COM接口进行通信(尤其是64位版本的Matlab和国家统计的)。所以要解决问题,混合的dll我分裂我的软件分为3个独立的程序 - 其中2个是32位和1 - 64位。所有的程序都与彼此并还连接到互SQL数据库进行通信。此外,它是可能的,即一个节目将工作在客户端计算机上,另一个将工作服务器计算机上。

I have several mathematical dlls, some of them are for x64 platform, some - for x86. I also need to communicate with several COM interfaces (in particular, 64-bit versions of Matlab and STATISTICA). So to solve problem with mixed dlls i splitted my software into 3 independent programs - 2 of them are 32-bit and 1 - 64-bit. All programs have to communicate with each other and also connected to mutual SQL database. Moreover, it is possible, that one program will work on client computer and another one will work on server computer.

什么是最好的技术(在性能方面)连接过程?我需要真正快速发送数据的阵列从86计划,64,进行计算,并将其送回。使用网络的能力并不重要,实际上。

What is the best technology (in terms of performance) to connect processes? I need to really quickly send arrays of data from x86 program to x64, perform calculations and send them back. The ability to use network is not important, in fact.

我只是没有太多的时间基准不同的方法(管道,WCF等),要专心学习一门技术。

I just don't have much time to benchmark different methods (pipelines, WCF, etc.) and want to concentrate on studying one technology.

推荐答案

在非托管code,COM可以用于这一目的(查找出的进程服务器,又名本地服务器)。内部COM使用RPC的,但比RPC更方便,因为客户端使用的对象,就像它们是在客户端进程的自己的地址空间(而它们在服务器进程的地址空间)。 COM也可用于跨计算机进行通信,查找DCOM。

In unmanaged code, COM can be used for that purpose (look up out-of-process servers, aka local servers). Internally COM uses RPC, but is more convenient than RPC because the client uses objects as though they were in the client process's own address space (whereas they are in the server process's address space). COM can also be used to communicate across computers, look up DCOM.

有.NET中类似的事情,WCF是其中之一,但我不知道他们的效率有多高。 WCF特别是似乎使用基于文本的协议,这可能是效率较低的比COM的RPC。

There are similar things in .NET, WCF being one of them, but I'm not sure how efficient they are. WCF in particular seems to use text-based protocols, which is probably less efficient than COM's RPC.

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

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