Shared Memory Segment in Operating System
Where is shared memory belongs to ? Which means it is owned by each individual process like stack and heap. So, other program cannot able to access the stack of some other program. Or it is a common segment of memory which is used by any number of process. The below figure shows my question diagramatically. Figure 1: ----------------- ----------------- ----------------- | stack | | stack | | stack | | | | | | | | Shared m/y | --->| Shared m/y |<--- | Shared m/y | | | | | | | | | | heap | | | Heap | | | Heap | | | | | | | | | | Data segment | | | Data segment | | | Data segment | | | | | | | |