arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1404.3272cs.DC
收藏

高效的无锁二叉查找树

Efficient Lock-free Binary Search Trees

Bapi Chatterjee, Nhan Nguyen, Philippas Tsigas

摘要:

本文提出了一种新的无锁并发内部二叉查找树算法,并在此基础上实现了一种集合抽象数据类型。我们表明,在所提出的无锁BST算法的每个集合操作- { \sc添加},{ \sc删除}和{ \sc包含} -的摊销步骤复杂度是$O(H(n) + c)$,其中,$H(n)$是BST的高度与$n$的节点数和$c$是在执行过程中的竞争。我们的算法适应竞争措施,根据读写负载。如果情况是读取繁重的,则操作避免在遍历期间帮助挂起的并发{ \sc Remove}操作,并且适应间隔争用。但是,对于写操作较多的情况,我们让一个操作帮助挂起{ \sc Remove},即使它没有被阻塞,因此适应更严格的点争用。它使用单字比较和交换(\texttt{CAS})操作。我们表明,我们的算法相比,现有的类似算法,提高了不相交访问并行。我们证明了该算法是线性化的。据我们所知,这是第一个算法的任何并发树数据结构,其中的修改操作执行的竞争措施的附加条款。

英文摘要:

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 - {\sc Add}, {\sc Remove} and {\sc Contains} - is $O(H(n) + c)$, where, $H(n)$ is the height of 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 pending concurrent {\sc Remove} operations during traversal, and, adapt to interval contention. However, for write-heavy situations we let an operation help pending {\sc Remove}, even though it is not obstructed, and so adapt to tighter point contention. It uses single-word compare-and-swap (\texttt{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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑