← BYTES
Unix IPC·Starter·Ref: 15.1.85

What does POSIX shared memory (via shm_open()) basically provide?

Have a question about this video? Mention reference 15.1.85 when you contact us.

a.A named region of memory that multiple separate processes can each map into their own address space and access directly, without the kernel needing to copy data between them on every access
b.A way to permanently delete memory from a running process
c.A compressed archive format for backing up files
d.A mechanism exclusively for communicating with GPU hardware
POSIX shared memory gives multiple processes a way to directly access the SAME underlying physical memory, each mapping it into their own address space -- the fastest form of IPC for raw data transfer, since no per-access copying through the kernel is needed, though (as covered in later questions) accessing it safely across processes still needs its own synchronization.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES15185#UnixIPC