Relative Content

Tag Archive for c++boostshared-memory

Shared memory among forked processes c++

I am writing a c++ program and I want a program where there are two processes (running with fork()) and they both share a common list and an interprocess mutex is there to guard the shared list modifications from each process. How can I declare the list and the mutex so that they are shared among processes?