concurrent linked list

后端 未结 5 1262
既然无缘
既然无缘 2021-02-05 20:45

I am trying to design a linked list in c++ that allows concurrent access. Clearly using a single lock for this list is grossly inefficient since disjoint areas may be updated in

5条回答
  •  暖寄归人
    2021-02-05 21:31

    It's possible to implement a non-blocking singly linked list using interlocked functions:

    Interlocked Singly Linked Lists

    I don't think it's possible to implement a non-blocking doubly linked list without interlocked compare-and-swap (CAS), which isn't widely available.

提交回复
热议问题