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

biased locking can be faster than spinlocking, in the uncontended case

unbiasing/re-biasing a lock can be quite heavy, though. JVM did it by pausing threads (or waiting for GC to do so)



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: