6 ms·
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 descr
by Giefo6ah 2mo ago
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.
- LoganDark 2mo agoThat induces disk I/O overhead (even if it somehow doesn't impact IPC performance)
- drdexebtjl 2mo agoThe file doesn’t have to be disk-backed.
- LoganDark 2mo agoDon't you need something mounted for that?
- yxhuvud 2mo agoNo, you can use a memfd.
- tankenmate 2mo agoAnd `/dev/shm/` (which postgres uses by default on most Unix platforms)
- outpost_mystic2 2mo agoIt doesnt. Processes can share memory