Shared Memory
Fast IPC.
Fast IPC With Shared Memory
Shared memory lets multiple processes map the same region of physical memory into their address spaces. It is the fastest form of IPC because data is not copied through the kernel.
Why It Is Fast
Pipes and sockets copy data from one process to the kernel and back. Shared memory skips this: once mapped, processes read and write the same bytes directly, with no copy per message.
All lessons in this course
- Pipes
- Shared Memory
- Message Queues
- Signals