-
Notifications
You must be signed in to change notification settings - Fork 7
concurrent linked list insertion #60
Comments
Succeeded |
Thank you...!! |
@jeehoonkang in this case, if ThreadA succeeded, the Y.next will be changed from Z to new of ThreadA, then threadB executes, but we still keep the condition Y.next.compare_and_set(Z, new). I am supposing that threadB will always fail because Y.next is now new-of-threadA, not Z anymore. Is this correct? |
@luulinh90s I forget the context of this.. I assume two threads concurrently try to insert a node, right? Then yes, if thread A succeeded in CAS, then thread B will not be able to succeed in CAS too. |
Then in the case of insertion, we will not try again at all, right? |
Hi...
I don't know what the letters in the red square are.
I'm sorry... I didn't concentrate in a lecture...
Thanks
The text was updated successfully, but these errors were encountered: