Y
Hacker News
new
|
ask
|
show
|
jobs
by
Giefo6ah
19 days 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.
1 comments
LoganDark
19 days ago
That induces disk I/O overhead (even if it somehow doesn't impact IPC performance)
link
drdexebtjl
19 days ago
The file doesn’t have to be disk-backed.
link
LoganDark
19 days ago
Don't you need something mounted for that?
link
yxhuvud
19 days ago
No, you can use a memfd.
link
tankenmate
19 days ago
And `/dev/shm/` (which postgres uses by default on most Unix platforms)
link
outpost_mystic2
19 days ago
It doesnt. Processes can share memory
link