使用单字比较交换的无锁实用Deque
Lock-Free and Practical Deques using Single-Word Compare-And-Swap
摘要:
我们提出了一个有效的和实用的无锁实现的并发双端队列,是不相交并行访问,并使用原子原语,可在现代计算机系统。先前已知的双端队列的无锁算法或者基于不可用的原子同步原语,仅实现功能的子集,或者不被设计用于不相交的访问。我们的算法是基于一个双向链表,只需要一个字的比较和交换原子原语,即使是动态内存大小。我们已经进行了实证研究,使用已知的最有效的算法无锁双端队列的完整实现。对于低并发的系统,Michael的算法表现出最好的性能。然而,由于我们的算法是专为不相交的访问,它的性能显着更好的高并发性和非均匀的内存体系结构的系统。
英文摘要:
We present an efficient and practical lock-free implementation of a concurrent deque that is disjoint-parallel accessible and uses atomic primitives which are available in modern computer systems. Previously known lock-free algorithms of deques are either based on non-available atomic synchronization primitives, only implement a subset of the functionality, or are not designed for disjoint accesses. Our algorithm is based on a doubly linked list, and only requires single-word compare-and-swap atomic primitives, even for dynamic memory sizes. We have performed an empirical study using full implementations of the most efficient algorithms of lock-free deques known. For systems with low concurrency, the algorithm by Michael shows the best performance. However, as our algorithm is designed for disjoint accesses, it performs significantly better on systems with high concurrency and non-uniform memory architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。