On 09/06/2020 19:04, Vinay Sharma wrote:
The main reason why I requested this enhancement was to ensure that multiple processes can read/write a shared memory segment without corrupting that data in it.
To ensure the same shared semaphores came to mind. Each shared memory segment, can have a corresponding shared semaphore.
Yes, that's a perfectly good plan.
I don't think using named pipes would be a good way to ensure the same. Although, if you think otherwise please suggest so.
I understand, I was asking people in general if separately from your particular use case we might want to consider other shared primatives. I can think of other use cases where cross-process pipes, mutexes and so on could be useful.