4 ms·
Ah Interesting. So is the concept of futex() similar to how a process in kernel mode will yield the CPU by putting itself on a wait_queue and call the schedule(
by bogomipz 6y ago
Ah Interesting. So is the concept of futex() similar to how a process in kernel mode will yield the CPU by putting itself on a wait_queue and call the schedule() function before it issues an I/O request then?
I realize that one is userspace and the other kernel but would the above be the right mental model?
- gpderetta 6y agoYes, a futex is basically a waitqueue abstraction coupled with a TOCTOU guard.