Lock-free Linearizable 1-Dimensional Range Queries
Author:
Open Access
- 5 January 2017
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-10
Abstract
Efficient concurrent data structures that support range queries are highly sought-after in a number of application areas. For example, the contemporary big-data processing platforms employ them as in-memory index structures for fast and scalable real-time updates and analytics, where analytics utilizes the range queries. In this paper, we present a generic algorithm to perform linearizable range queries in lock-free ordered 1-dimensional data structures. The algorithm requires single-word atomic compare-and-swap (CAS) primitives. Our method generalizes the lock-free data structure snapshot of Petrank et al. [25]. Fundamentally, we utilize a partial snapshot object derived from the snapshot object of Jayanti [20]. We experimentally evaluate the proposed algorithm in a lock-free linked-list, skip-list and binary search tree (BST). The experiments demonstrate that our algorithm is scalable even in the presence of high percentage of concurrent modify operations and outperforms an existing range search algorithm in lock-free k-ary trees in several scenarios.Keywords
This publication has 25 references indexed in Scilit:
- Lock-Free Data-Structure Iterators2013
- Range Queries in Non-blocking k-ary Search Trees2012
- Help when needed, but no more: Efficient read/write partial snapshotJournal of Parallel and Distributed Computing, 2012
- BigtableACM Transactions on Computer Systems, 2008
- 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
- A Pragmatic Implementation of Non-blocking Linked-lists2001
- Atomic snapshots of shared memoryJournal of the ACM, 1993
- Wait-free synchronizationACM Transactions on Programming Languages and Systems, 1991
- Linearizability: a correctness condition for concurrent objectsACM Transactions on Programming Languages and Systems, 1990