Qualcomm Interview Question
Software Engineer / Developers@lyzoridc: err..the interviewer actually meant which is the fastest IPC mechanism between Semaphores, Monitors, Message passing and Signals. He kinda gave a hint about pipes when i tried to answer the question. Shared memory is not an IPC mechanism.
Actually, shared memory can be used for IPC since it is by definition in an address space accessible by all processes. If two processes agree on the use of the shared memory (e.g. a mailbox), then communication is 'fast'.
Shared memory is without question the fastest IPC mechanism that Unix provides. By having processes map the same block of memory, information transfer is almost immediate
- ridercoder November 14, 2010