logoalt Hacker News

dupontcyborgyesterday at 12:01 AM2 repliesview on HN

i may be missing context, but shared memory across processes, without ipc?


Replies

Giefo6ahyesterday at 12:20 AM

There's nothing special about threads vs processes in Linux. mmap works the same, the challenge is to map the same file. You can share a path, pass a file descriptor via fork or unix domain socket, among other techniques.

show 1 reply
frollogastonyesterday at 12:29 AM

Being really pedantic here, shared memory is considered IPC, but not the kind you're thinking of. Shared address space, no overhead.

show 2 replies