22 Oct
2015
22 Oct
'15
8:18 a.m.
On 22 Oct 2015 9:04 a.m., "Gavin Lambert"
On 22/10/2015 20:57, Giovanni Piero Deretta wrote:
It seems to me then it is not really lock free then, right?
There's a difference between "lock free" and "wait free" (though I
haven't examined the code to see which most correctly applies here).
Wait-free is better than lock-free, of course, but it's also incredibly
hard to achieve in an MPMC problem.
Lock free still requires at least one thread to make progress in any situation. If this were the case yield wouldn't be necessary. As I t is I do not think it qualifies even as obstruction-free.