Hi all,
I am not quite clear about the example of LockFreeList in Chapter 9.
In pages 217-218, this line snip = curr.next.attemptMark(succ, true) will be replaced by snip = curr.next.compareAndSet(succ, succ, false, true)
Can anyone please explain (semantically) why the use of attemptMark() is not suitable here?
Many thanks,
Truc