什么是进程间通信的2 C#进程之间最简单的方法? [英] What is the simplest method of inter-process communication between 2 C# processes?

查看:178
本文介绍了什么是进程间通信的2 C#进程之间最简单的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想都写在C#中的父子进程间的通信。它应该是异步的,事件驱动的。我不希望在运行过程中的每一个线程处理非常罕见的沟通。

I want communicate between a parent and child process both written in C#. It should be asynchronous, event driven. I does not want run a thread in every process that handle the very rare communication.

什么是它的最佳解决方案?

What is the best solution for it?

推荐答案

匿名管道。

<一个href=\"http://msdn.microsoft.com/en-us/library/bb546102.aspx\">http://msdn.microsoft.com/en-us/library/bb546102.aspx

用的BeginRead / BeginWrite和使用AsyncCallback的异步操作。

Use Asynchronous operations with BeginRead/BeginWrite and AsyncCallback.

这篇关于什么是进程间通信的2 C#进程之间最简单的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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