Abhishek parikshya
Abhishek parikshya

Reputation: 51

How shared memory IPC fits into memory layout of a process?

Where will the shared memory block of a process be present .Stack segment Heap segment or else where

Upvotes: 0

Views: 224

Answers (1)

Rocoder
Rocoder

Reputation: 1103

Shared memory objects are created in a virtual filesystem, normally mounted under /dev/shm. /dev/shm is a temporary file storage filesystem, i.e., tmpfs, that uses RAM for the backing store. It will have kernel persistence which means a shared memory object will exist until the system is shut down, or until all processes have unmapped the object and it has been deleted with shm_unlink.

Upvotes: 2

Related Questions