Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Spinlocks outside the kernel are a bad idea in almost all cases, except dedicated nonpreemptable cases; use a hybrid mutex

Yeah, pure spinlocks in user-space programs is a big no-no in my book. If you're on the happy path then it costs you nothing extra in terms of performance, and if you for some reason slide off the happy path you have a sensible fall-back.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: