Windows IPC最佳做法 [英] Windows IPC best practice

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

问题描述

在Windows中,

在主流程和它处理的许多子流程之间执行IPC的最佳实践是什么?

问题涉及需要高频呼叫的情况,并且服务器在每个进程中的loooong计算时间长度内都在充分利用其CPU的操作

综上所述,需要的是 稳定性 性能


非常感谢,
Edo

In Windows,

what''s the best practice to perform IPC between a main process and many sub processes it handles?

The question regards a situation which requires high frequency calls, and the server is operating in full usage of it''s CPU for the length of the loooong calculation in each process

To sum up, what is needed is stability and performance


Many thanks,
Edo

推荐答案

使用共享内存:这是最快的IPC.在共享内存中初始化信号量,并尽可能避免在内核上运行.
Use shared memory : it''s the fastest IPC. Initialize a semaphore in the shared memory and avoid running on kernel as much as possible.


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

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