Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Giefo6ah
· 4mo ago · 0 comments
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.
Comments
[–]
LoganDark
4mo ago
That induces disk I/O overhead (even if it somehow doesn't impact IPC performance)
[–]
drdexebtjl
4mo ago
The file doesn’t have to be disk-backed.
[–]
LoganDark
4mo ago
Don't you need something mounted for that?
[–]
yxhuvud
4mo ago
No, you can use a memfd.
[–]
outpost_mystic2
4mo ago
It doesnt. Processes can share memory