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

The vast majority of STMs use lock-based transaction management. There are lock-free designs, but these tend to perform worse due to creating a lot of memory bus traffic. Unfortunately lock-free algorithms can easily perform worse than their lock-based counterparts. There are often simpler alternatives to reduce lock contention pitfalls on hot paths (like map reads), while still taking advantage of locking (like map writes).


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

Search: