Re:Lock-free Data Structures Part 1 – Introduction
by jacquesm on Tuesday May 06, 2014 @06:54AM
(#7703670)
For the curious, that's from here:
http://www.drdobbs.com/cpp/lock-free-code-a-false-sense-of-s...
Re:Lock-free Data Structures Part 1 – Introduction
by mamcx on Tuesday May 06, 2014 @10:05AM
(#7704491)
So if not C++, then C? Exist a good library of lock-free?
Let me cite Herb Sutter: "Second, it's hard even for experts. It's easy to write lock-free code that appears to work, but it's very difficult to write lock-free code that is correct and performs well. Even good magazines and refereed journals have published a substantial amount of lock-free code that was actually broken in subtle ways and needed correction.
To illustrate, let's dissect some peer-reviewed lock-free code that was published here in DDJ just two months ago [2]. The author, Petru Marginean, has graciously allowed me to dissect it here so that we can see what's wrong and why, what lessons we should learn, and how to write the code correctly. That someone as knowledgable as Petru, who has published many good and solid articles, can get this stuff wrong should be warning enough that lock-free coding requires great care."