I know that this is (somewhat) variable based on implementation and platform, but in general, what is the fastest method of inter-process communication in the following 2 areas: 1) Alerting other processes 2) Sharing data among processes
For alerting other processes, i tested boost::interprocess semaphores and c-style interrupts, using SIGUSR1 and SIGUSR2. What i found surprising was that c-style interrupts were actually slower than the boost semaphores. Not sure if there is a better way to do it, i seem to be getting times in the 35usec range for semaphores and the 78usec range for interrupts. I can post the code i used to test this if this is a surprising result.
For sharing data among processes, i was using boost::interprocess:shared_memory_objects. Seems reasonable fast, but not sure if there is anything better out there. I'm not looking for a definitive answer so much as a direction in which to go test and look.
Oh, and i am primarily looking for linux-answers; if a method doesnt work on windows, thats fine by me.