Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ww520
on Feb 10, 2022
|
parent
|
context
|
favorite
| on:
Landing a new syscall, part 1: What is futex?
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: