Is an IPC mechanism using shared memory and semaphores for synchronization simplex like pipes or duplex like message queues?
Re: Shared Memory and Semaphores
duplexipcsemaphoreshared-memory
duplexipcsemaphoreshared-memory
Is an IPC mechanism using shared memory and semaphores for synchronization simplex like pipes or duplex like message queues?
Best Answer
If my understanding of your question is correct, it is duplex.
With shared memory, both processes could communicate both ways, not just with one as the reader and one as the writer. Pipes only allow either reading or writing, but you can overcome this by using two pipes (although message queues are a better option).