Y
Hacker News
new
|
ask
|
show
|
jobs
by
adrr
139 days ago
OS kernel runqueue is using a spinlock to schedule everything. So it works. Should you ever use a spinlock in application code? No. Let the OS via the synchronization primitives in whatever language your app is in.