Shared memory: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
mmap link |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Shared memory is a form of Interprocess Communication ([[IPC]]). It allows memory regions of one [[process]] to be shared with another [[process]]. A simple way to achieve this is to mmap(2) an anonymous memory region and fork(), this memory is now shared between the parent and child. Unassociated processes can also do shared memory. There is two common methods for this SYSV shared memory or POSIX shared memory. | Shared memory is a form of Interprocess Communication ([[IPC]]). It allows memory regions of one [[process]] to be shared with another [[process]]. A simple way to achieve this is to [[mmap]](2) an anonymous memory region and [[fork]](), this memory is now shared between the parent and child. Unassociated processes can also do shared memory. There is two common methods for this SYSV shared memory or POSIX shared memory. |
Latest revision as of 08:51, 28 March 2013
Shared memory is a form of Interprocess Communication (IPC). It allows memory regions of one process to be shared with another process. A simple way to achieve this is to mmap(2) an anonymous memory region and fork(), this memory is now shared between the parent and child. Unassociated processes can also do shared memory. There is two common methods for this SYSV shared memory or POSIX shared memory.