arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.17795cs.PL
收藏

高效线性一致性监控

Efficient Linearizability Monitoring

Uppsala University(乌普萨拉大学);Mälardalen University(马拉尔伦大学)

Parosh Aziz Abdulla, Samuel Grahn, Bengt Jonsson, Shankaranarayanan Krishna, Om Swostik Mishra

AI总结:

本文针对并发栈、队列、集合和多重集合的线性一致性监控问题,提出了复杂度分别为$\mathcal{O}(n^2)$、$\mathcal{O}(n\\\\; log\\\\, n)$和$\mathcal{O}(n)$的监控算法,在LiMo中实现并评估,结果优于现有工具Violin。

摘要:

本文重新探讨了监控并发栈、队列、集合和多重集合线性一致性的基本问题。给定实现这些抽象数据类型之一的库的历史记录,监控问题旨在判断该历史记录是否具有线性一致性。针对栈、队列以及(多重)集合,我们分别提出了复杂度为$\mathcal{O}(n^2)$、$\mathcal{O}(n\\\\; log\\\\, n)$和$\mathcal{O}(n)$的监控算法,其中$n$为输入历史中的操作数。对于栈和队列,我们的结果在标准的数据独立性假设下成立,即库的行为不依赖于数据结构中存储的实际值。以往解决相同问题的工作存在立方时间复杂度问题,且更严重的是存在正确性问题:它们要么缺乏正确性证明,要么建议的正确性证明有误(我们给出了反例),要么算法本身不正确。我们改进的复杂度结果依赖于完全不同的算法,我们为这些算法提供了详细的正确性证明。我们在LiMo(线性一致性监控器)中实现了栈和队列的算法。我们对LiMo进行了评估,并与最先进的工具Violin进行了比较——我们发现其正确性证明存在错误——该工具用于检查线性一致性违规。我们的实验评估证实,LiMo在效率和可扩展性方面均优于Violin。

英文摘要:

This paper revisits the fundamental problem of monitoring the linearizability of concurrent stacks, queues, sets, and multisets. Given a history of a library implementing one of these abstract data types, the monitoring problem is to answer whether the given history is linearizable. For stacks, queues, and (multi)sets, we present monitoring algorithms with complexities $\mathcal{O}(n^2)$, $\mathcal{O}(n\; log\, n)$, and $\mathcal{O}{(n)}$, respectively, where $n$ is the number of operations in the input history. For stacks and queues, our results hold under the standard assumption of {\it data-independence}, i.e., the behavior of the library is not sensitive to the actual values stored in the data structure. Past works to solve the same problems have cubic time complexity and (more seriously) have correctness issues: they either (i) lack correctness proofs or (ii) the suggested correctness proofs are erroneous (we present counter-examples), or (iii) have incorrect algorithms. Our improved complexity results rely on substantially different algorithms for which we provide detailed proofs of correctness. We have implemented our stack and queue algorithms in LiMo (Linearizability Monitor). We evaluate LiMo and compare it with the state-of-the-art tool Violin -- whose correctness proofs we have found errors in -- which checks for linearizability violations. Our experimental evaluation confirms that LiMo outperforms Violin regarding both efficiency and scalability.

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

↑