Shared memory access control mechanism for processes created by MPI
问题 I have a shared memory used by multiple processes, these processes are created using MPI . Now I need a mechanism to control the access of this shared memory. I know that named semaphore and flock mechanisms can be used to do this but just wanted to know if MPI provides any special locking mechanism for shared memory usage ? I am working on C under Linux. 回答1: MPI actually does provide support for shared memory now (as of version 3.0). You might try looking at the One-sided communication