Click here to Skip to main content
15,888,022 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
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
Comments
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.
--SA

1 solution

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900