Click here to Skip to main content
12,761,248 members (32,231 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ C# Windows IPC
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,
Posted 17-Nov-12 20:16pm
Joezer BH38.8K
Sergey Alexandrovich Kryukov 18-Nov-12 12:34pm
I appreciate your desire for stability and performance. Nevertheless, it does not make a valid question, because "best" per se is not a correct criterion, as it also requires a definition of "better", which in turn cannot be defined without "better for what?". You did not explain your ultimate goals, the scenarios, etc. Look at this in this way: none IPC is really bad for stability and performance. Diffeerent IPC facilities just do different things; not that ones are "better" than others.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Use shared memory : it's the fastest IPC. Initialize a semaphore in the shared memory and avoid running on kernel as much as possible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 18 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100