Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
saagarjha
on June 18, 2023
|
parent
|
context
|
favorite
| on:
A single line of code made a 24-core server slower...
Pure spin locks will always win for uncontended locks.
NobodyNada
on June 18, 2023
[–]
Without any contention at all, a spinlock and a mutex are identical: a single compare-and-swap.
gpderetta
on June 18, 2023
|
parent
[–]
Technically you can use a release-store on a spinlock unlock path, but you need a CAS for a mutex.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: