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

证明高并发遍历的正确性

Proving Highly-Concurrent Traversals Correct

Yotam M. Y. Feldman, Artem Khyzha, Constantin Enea, Adam Morrison, Aleksandar Nanevski, Noam Rinetzky, Sharon Shoham

AI总结:

本文提出一种通用证明技术,仅依赖遍历的顺序属性和写操作修改数据结构的简单条件,显著简化了无同步高并发遍历的线性化证明,并成功应用于多种此前难以证明的并发二叉搜索树。

摘要:

现代高并发搜索数据结构(如搜索树)通过让操作在无任何同步的情况下遍历数据结构,来获得多核可扩展性和性能。然而,这使得这些算法的线性化证明极其困难,因为线性化要求找出遍历结果正确的某一时间点。问题在于,在数据结构被修改的同时进行遍历会导致复杂的行为,需要对遍历的读操作与修改数据结构的写操作的所有交错执行进行复杂的推理。在本文中,我们提出了一种通用的证明技术,与典型的并发推理和先前的证明技术相比,它能以显著更简单的方式证明无同步遍历的正确性。我们的框架仅依赖于遍历的顺序属性,以及关于算法写操作如何修改数据结构的一个概念上简单且广泛适用的条件。证明目标数据结构满足我们的条件只需简单的并发推理,而无需考虑读写之间的交互。使用我们的框架还可以进一步简化这种推理。为了展示我们的技术,我们将其应用于证明几种有趣且具挑战性的并发二叉搜索树:logical-ordering AVL tree、Citrus tree 和 full contention-friendly tree。logical-ordering tree 和 full contention-friendly tree 都超出了以往旨在简化线性化证明的方法的适用范围。

英文摘要:

Modern highly-concurrent search data structures, such as search trees, obtain multi-core scalability and performance by having operations traverse the data structure without any synchronization. As a result, however, these algorithms are notoriously difficult to prove linearizable, which requires identifying a point in time in which the traversal's result is correct. The problem is that traversing the data structure as it undergoes modifications leads to complex behaviors, necessitating intricate reasoning about all interleavings of reads by traversals and writes mutating the data structure. In this paper, we present a general proof technique for proving unsynchronized traversals correct in a significantly simpler manner, compared to typical concurrent reasoning and prior proof techniques. Our framework relies only on sequential properties} of traversals and on a conceptually simple and widely-applicable condition about the ways an algorithm's writes mutate the data structure. Establishing that a target data structure satisfies our condition requires only simple concurrent reasoning, without considering interactions of writes and reads. This reasoning can be further simplified by using our framework. To demonstrate our technique, we apply it to prove several interesting and challenging concurrent binary search trees: the logical-ordering AVL tree, the Citrus tree, and the full contention-friendly tree. Both the logical-ordering tree and the full contention-friendly tree are beyond the reach of previous approaches targeted at simplifying linearizability proofs.

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

↑