How to implement lock-free skip list

前端 未结 2 1396
小蘑菇
小蘑菇 2021-01-30 05:43

I need to implement a lock-free skip list. I tried to look for papers. Unfortunatly all I found was lock-free single linked lists (in many flavors). However how to implement loc

2条回答
  •  终归单人心
    2021-01-30 06:17

    This paper presents a lock-free and wait-free skip list. It's straightforward to implement - I implemented this a few weeks ago as part of the Intel Threading Challenge 2010 (see the SkipList tab halfway down the page.)

    Java includes an implementation of a concurrent skip list, java.util.concurrent.ConcurrentSkipListMap.

提交回复
热议问题