Hey,
I saw some people trying to implement a lock-free deque, which didn t worked so well i think. I saw some papers about that but i couldn t find any implementations that work. Can anyone share some?
lg
lock free deque implementation
If you're going to venture into the world of lock-free algorithms, it pays to understand the papers themselves and why lock-free methods work. If you don't, you're begging for subtle and extremely nasty bugs, which will be incredibly hard to reproduce and have very unpredictably bad results.
Once you understand the papers, writing your own implementation is generally trivial, at least in my experience, provided you have sufficient understanding of lock-free primitive operations like compare-and-swap and how they are implemented on various hardware platforms.
Once you understand the papers, writing your own implementation is generally trivial, at least in my experience, provided you have sufficient understanding of lock-free primitive operations like compare-and-swap and how they are implemented on various hardware platforms.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement