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

一个简单实用的可达并发无阻塞无界图

A Simple and Practical Concurrent Non-blocking Unbounded Graph with Reachability Queries

Bapi Chatterjee, Sathya Peri, Muktikanta Sa, Nandini Singhal

摘要:

应用于许多应用(包括社交网络、通信网络、VLSI设计、图形和若干其它应用)中的图形算法需要动态修改--在图形中添加和移除顶点和/或边。本文提出了一种新的并发无阻塞算法,用于在共享内存机器上实现动态无界有向图。顶点和边的添加和删除操作是无锁的。对于有限大小的图,查找操作是无等待的。该算法的最重要的组成部分是并发图中的可达性查询。在我们的算法中的可达性查询是无障碍的,从而施加最小的额外同步成本超过其他操作。我们证明了每个数据结构操作都是可线性化的。我们广泛评估的样本C/C++实现的算法,通过一些微基准。实验结果表明,该算法的规模以及线程的数量,平均提供了5至7倍的性能提高并发图实现使用粗粒度锁定。

英文摘要:

Graph algorithms applied in many applications, including social networks, communication networks, VLSI design, graphics, and several others, require dynamic modifications -- addition and removal of vertices and/or edges -- in the graph. This paper presents a novel concurrent non-blocking algorithm to implement a dynamic unbounded directed graph in a shared-memory machine. The addition and removal operations of vertices and edges are lock-free. For a finite sized graph, the lookup operations are wait-free. Most significant component of the presented algorithm is the reachability query in a concurrent graph. The reachability queries in our algorithm are obstruction-free and thus impose minimal additional synchronization cost over other operations. We prove that each of the data structure operations are linearizable. We extensively evaluate a sample C/C++ implementation of the algorithm through a number of micro-benchmarks. The experimental results show that the proposed algorithm scales well with the number of threads and on an average provides 5 to 7x performance improvement over a concurrent graph implementation using coarse-grained locking.

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

↑