请帮我! ! !如何连接2个进程 [英] Please help me! ! ! How connecting 2 process
本文介绍了请帮我! ! !如何连接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
推荐答案
根据建议,使用IPC
)。
如果你在Windows
平台上进行开发,那么这里是你的文档:进程间通信(Windows) [ ^ ]。
你可以在Linux
平台上找到IPC
的类似文档。
As suggested, useIPC
).
If you are developing on theWindows
platform then here you are the documentation: Interprocess Communications (Windows)[^].
You may find similar documentation available forIPC
on theLinux
platform.
这篇关于请帮我! ! !如何连接2个进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文