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

通用的比较和交换及无限到达模型中的空间高效通用构造

Generalized Compare-and-Swap and Space-Efficient Universal Constructions for the Infinite-Arrival Model

Vassos Hadzilacos, Myles Thiessen, Sam Toueg

AI总结:

本文提出GCAS,一种比较和交换对象的自然推广,通过将CAS中的固定等式测试替换为从{<, =, >}中选择的参数比较器。针对未知且可能无限的参与进程数(无限到达模型),作者展示了两种空间高效的无锁通用构造。第一种空间复杂度与已参与进程数成线性关系,第二种则与点竞争成线性关系但假设了有界并发。这些是目前在无限到达模型中实现此类空间复杂度的第一个无锁通用构造。

摘要:

我们引入GCAS,一种比较和交换(CAS)对象的自然推广。直观上,GCAS只是将CAS中的固定等式测试替换为从{<, =, >}中选择的参数比较器。为了展示GCAS的实用性,我们为参与进程数未知且可能无限(无限到达模型)的系统提出了两种空间高效的无锁通用构造。第一种的空间复杂度与已参与进程数成线性关系,而第二种的空间复杂度与点竞争成线性关系但假设了有界并发。据我们所知,这些是目前在无限到达模型中实现此类空间复杂度的第一个无锁通用构造。为了实现与点竞争成线性关系的空间复杂度,我们的第二种通用构造使用了一种新的内存回收方案,该方案在具有有界并发的无限到达模型中有效。这种回收方案背后的思想可能有更广泛的应用。

英文摘要:

We introduce GCAS, a natural generalization of the well-known compare-and-swap (CAS) object. Intuitively, GCAS just replaces the fixed equality test of CAS with a parametrized comparator chosen from $\{<, =, >\}$. To showcase the utility of GCAS, we present two space-efficient wait-free universal constructions for systems where the number of participating processes is unknown and may be infinite (the infinite-arrival model). The first has space-complexity linear in the number of processes that have participated so far, while the second has space-complexity linear in the point contention but assumes bounded concurrency. To the best of our knowledge, these are the first wait-free universal constructions that achieve this space complexity in the infinite-arrival model. To achieve space complexity linear in the point contention, our second universal construction uses a novel memory recycling scheme that works in the infinite-arrival model with bounded concurrency. The ideas behind this recycling scheme could be of more general use.

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

↑