News for hackers. Stuff that matters.
Re:Landing a new syscall, part 1: What is futex? by ww520 on Wednesday February 09, 2022 @08:28PM (#30281344)
You are right. XCHG can do the job to acquire the lock. At least on x86, XCHG does lock the cache line on the address of the variable, so it should be ok.

There are no comments on this comment yet.