lock free deque implementation

Started by
3 comments, last by Zweistein2 13 years, 7 months ago
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
Advertisement
it should be in c/c++.
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.

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

An MPMC implementation.
Thanks.
I found another one, which seems very good. many different techniques implemented: http://sourceforge.net/projects/libcds/

lg

This topic is closed to new replies.

Advertisement