News for hackers. Stuff that matters.
Re:Lockless Algorithms for Mere Mortals by NovaX on Thursday July 30, 2020 @02:13AM (#23995188)
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).

There are no comments on this comment yet.