请帮我! ! !如何连接2个进程 [英] Please help me! ! ! How connecting 2 process

查看:74
本文介绍了请帮我! ! !如何连接2个进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如我们想要从1个进程获取数字然后发送其他进程来计算平均值



我尝试过:



i知道我们可以使用发送消息并获取消息方法

但不知道怎么写

for example we want get numbers from 1 process then send it other process for counting avg

What I have tried:

i know we can use send message and get message method
but dont know how write

推荐答案

根据建议,使用 Google ,搜索进程间通信( IPC )。

如果你在 Windows 平台上进行开发,那么这里是你的文档:进程间通信(Windows) [ ^ ]。



你可以在 Linux 平台上找到 IPC 的类似文档。
As suggested, use Google, search for Inter Process Communication (IPC).
If you are developing on the Windows platform then here you are the documentation: Interprocess Communications (Windows)[^].

You may find similar documentation available for IPC on the Linux platform.


这篇关于请帮我! ! !如何连接2个进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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