Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jart
on Oct 2, 2024
|
parent
|
context
|
favorite
| on:
The Fastest Mutexes
On x86 you can. When xchg is used with a memory parameter it locks the bus. This is true even in the absence of a lock prefix. I included a spinlock implementation in the blog post. If you see any errors with it, then please let me know!
loeg
on Oct 2, 2024
[–]
Oh, sure, your 1-bit spinlock with no other state works.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: