News for hackers. Stuff that matters.
Re:Landing a new syscall, part 1: What is futex? by mockery on Wednesday February 09, 2022 @10:24AM (#30273663)
Not GP, but the code in the article passes 'unsigned int mutex' by-value, and then operates on its address (which will potentially be at a different stack address on each invocation, and will certainly be different for different threads.) It won't serve its purpose at all.

To my eye, the code is fundamentally broken in a way that's surprising for an article trying to teach threading, and it's likely confuse someone unfamiliar with these concepts.

There are no comments on this comment yet.