←back to thread

257 points keepamovin | 2 comments | | HN request time: 0.546s | source
Show context
lukeh ◴[] No.44350352[source]
Does modern Linux have anything close to Doors? I’ve an embedded application where two processes exchange small amounts of data which are latency sensitive, and I’m wondering if there’s anything better than AF_UNIX.
replies(3): >>44351021 #>>44351080 #>>44351861 #
1. the8472 ◴[] No.44351021[source]
shared memory provides the lowest latency, but you still need to deal with task wakeup, which is usually done via futexs. Google was working on a FUTEX_SWAP call for linux which would have allowed direct handover from one task to another, not sure what happened to that.
replies(1): >>44353090 #
2. Galanwe ◴[] No.44353090[source]
If you really want low latency, then you should be OK to trade power/CPU for it, and you can just spin instead of being woken up.