How can interacting processes interact with futex?
Let's say I have unrelated processes, one of which is, say, an apache subprocess with my module, the other, for example, a background script.
I would like to set a condition variable with mutex in between using futex in order to benefit from fast code for user space code.
It seems to me that the memory in which the mutex is stored may be in the mmap file if this memory is mapped, for example. mlock 'd both processes could theoretically issue futex calls against the same address.
Alternatively, perhaps futex can be transferred from one process to another using FUTEX_FD .
Representations of low-level, high-level and dynamic languages (C, C ++, Python, etc.) are presented. The robust futex API must also be supported.
Literature:
source share