Question on Chapter 9, LockFreeList Example

114 views
Skip to first unread message

Truc Nguyen Lam

unread,
Mar 21, 2016, 6:18:43 AM3/21/16
to Art of Multiprocessor Programming

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

Reply all
Reply to author
Forward
0 new messages