3 ms·
What about mutexes living in shared memory, and each process having a different address mapping?
by gsliepen 6mo ago
What about mutexes living in shared memory, and each process having a different address mapping?
- loeg 6mo agoAll bets go out the window with adversarial multi-process shared memory mutexes. The other process may not even be running the same locking code.
- gsliepen 6mo agoThat's an easy answer, but multi-process mutexes are supported on Linux (and perhaps other OSes as well), and it would be nice if this could also be safely handled by something like Surelock. If it would, then it couldn't rely on VM addresses to order locks.