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 20: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 OriginalGriff 495
1 Maciej Los 205
2 Suvendu Shekhar Giri 159
3 Richard Deeming 140
4 Kornfeld Eliyahu Peter 133
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 8,895
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,333
4 Maciej Los 2,561


Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 18 Nov 2012
Copyright © CodeProject, 1999-2015
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