News for hackers. Stuff that matters.
Re:Proposed futex2 allows Linux to mimic the NT kernel for b... by bogomipz on Wednesday April 28, 2021 @12:56PM (#26971559)
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?

Re:Proposed futex2 allows Linux to mimic the NT kernel for b... by gpderetta on Wednesday April 28, 2021 @03:37PM (#26973202)
Yes, a futex is basically a waitqueue abstraction coupled with a TOCTOU guard.