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

C11内存模型释放-获取变体的一致性测试复杂性

Complexity of Consistency Testing for the Release-Acquire Semantics

The Institute of Mathematical Sciences(马哈拉施特拉数学科学研究所);Homi Bhabha National Institute(霍米·巴巴国立学院);CNRS, ReLaX, IRL 2000(法国国家科学研究中心,ReLaX,IRL 2000);IIT Bombay(孟买印度理工学院);Chennai Mathematical Institute(金奈数学研究所)

R. Govind, S. Krishna, Sanchari Sil, B. Srivathsan

AI总结:

研究C11内存模型释放-获取变体的一致性测试复杂性,证明在每个内存位置最多被一个线程写入时可多项式时间内完成,同时证明当两个线程可写同一位置时问题NP难,允许三个写者则排除特定算法。

摘要:

在 seminal 工作中,Gibbons 和 Korach 研究了决定多线程程序观测到的读写序列是否允许顺序一致交错的复杂性。他们证明该问题在强语法限制下仍为NP难。最近,Chakraborty 等人考虑了弱内存模型的问题,证明即使线程数、内存位置数和值域均受限,NP难性仍保持。本文重新审视C11内存模型释放-获取变体的一致性测试问题。我们的主要积极结果是当每个内存位置最多被一个线程写入(允许多个读者)时,一致性测试可在多项式时间内完成。值得注意的是,这种限制在顺序一致性下已为NP难。我们用紧硬度结果补充此上界:当两个线程可写同一位置时问题NP难,允许三个写者则排除2^{o(k)}.n^{O(1)}算法,假设指数时间假设成立,其中k为线程数,n为内存操作数。

英文摘要:

In a seminal work, Gibbons and Korach studied the complexity of deciding whether an observed sequence of reads and writes of a multi-threaded program admits a sequentially consistent interleaving. They showed the problem to be NP-hard even under strong syntactic restrictions. More recently, Chakraborty et al. considered the problem for weak memory models and proved that NP-hardness remains even when the number of threads, the number of memory locations, and the value domain are all bounded. In this paper we revisit the problem for the release-acquire variants of the C11 memory model. Our main positive result is that consistency testing can be done in polynomial-time when each memory location is written by at most one thread (multiple readers are allowed). Notably, this restriction is already NP-hard for sequential consistency. We complement this upper bound with tight hardness results: the problem is NP-hard when two threads may write to the same location, and allowing three writers per location rules out 2^{o(k)}.n^{O(1)} algorithms under the Exponential Time Hypothesis, where k denotes the number of threads, and n the number of memory operations.

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

↑