Click here to Skip to main content
Rate this: bad
good
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,
Edo
Posted 17-Nov-12 19:16pm
Comments
Sergey Alexandrovich Kryukov at 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.
--SA

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 339
1 Nirav Prabtani 248
2 OriginalGriff 234
3 _Amy 165
4 Maciej Los 145
0 OriginalGriff 7,744
1 Sergey Alexandrovich Kryukov 6,956
2 Maciej Los 3,994
3 Peter Leow 3,708
4 CHill60 2,742


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 18 Nov 2012
Copyright © CodeProject, 1999-2014
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