Efficient lock-free binary search trees
Open Access
- 15 July 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 322-331
Abstract
In this paper we present a novel algorithm for concurrent lock-free internal binary search trees (BST) and implement a Set abstract data type (ADT) based on that. We show that in the presented lock-free BST algorithm the amortized step complexity of each set operation - Add, Remove and Contains - is O(H(n) + c), where H(n) is the height of the BST with n number of nodes and c is the contention during the execution. Our algorithm adapts to contention measures according to read-write load. If the situation is read-heavy, the operations avoid helping the concurrent Remove operations during traversal, and adapt to interval contention. However, for the write-heavy situations we let an operation help a concurrent Remove, even though it is not obstructed. In that case, an operation adapts to point contention. It uses single-word compare-and-swap (CAS) operations. We show that our algorithm has improved disjoint-access-parallelism compared to similar existing algorithms. We prove that the presented algorithm is linearizable. To the best of our knowledge, this is the first algorithm for any concurrent tree data-structure in which the modify operations are performed with an additive term of contention measure.Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- The SkipTrie2013
- A non-blocking internal binary search tree2012
- A speculation-friendly binary search tree2012
- Wait-Free Linked-Lists2012
- Lock-Free and Practical Doubly Linked List-Based Deques Using Single-Word Compare-and-Swap2005
- Fast and lock-free concurrent priority queues for multi-thread systemsJournal of Parallel and Distributed Computing, 2005
- Algorithms adapting to point contentionJournal of the ACM, 2003
- Long lived adaptive splitter and applicationsDistributed Computing, 2002
- Linearizability: a correctness condition for concurrent objectsACM Transactions on Programming Languages and Systems, 1990
- Symbol manipulation by threaded listsCommunications of the ACM, 1960