Sign in to follow this  

lock free deque implementation

This topic is 2662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 2662 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this