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

动态有序集合的一种实现与实验比较

An Implementation and Experimental Comparison of Dynamic Ordered Sets

Jordan Malek

AI总结:

本文针对多核系统性能提升需求,实现了支持多种操作的Ko氏无锁二叉前缀树,创新设计防重插无锁链表,实验验证其在大键域、少删除、低并发场景下性能更优。

摘要:

由于物理限制,提升计算机上单个进程(线程)的性能正变得愈发困难。现代系统采用多核处理器,可让多个进程(线程)并发运行。无锁数据结构无需互斥机制即可让这些进程相互通信,还能增加进程并行执行而非顺序执行的工作量,从而提升系统整体性能。本文实现了Ko's Lock-Free Binary Trie(柯氏无锁二叉前缀树),用于存储来自有序全域的动态键集合,支持插入、删除、搜索和前驱操作。该实现的一个创新组件是无锁链表,允许多个进程尝试插入同一节点,但能防止节点被从链表中删除后被重新插入。本文最后部分将该实现与其他实现了相同抽象数据类型(ADT)的数据结构进行了实验对比。实验分析表明,当键的全域较大、删除操作较少且并发执行操作的进程数量较低时,Ko's Trie的实现性能优于该ADT的现有理论实现。

英文摘要:

It is becoming increasingly difficult to improve the performance of a a single process (thread) on a computer due to physical limitations. Modern systems use multi-core processors in which multiple processes (threads) may run concurrently. A lock-free data structure can allow these processes to communicate with each other without requiring mutual exclusion, and may increase the amount of work they may perform in parallel rather than sequentially, thus improving the performance of the system as a whole. This paper contains an implementation of Ko's Lock-Free Binary Trie, which stores a dynamic set of keys from an ordered universe. It supports insert, remove, search and predecessor operations. One novel component of this implementation is a lock-free linked list which allows multiple processes to attempt to insert the same node, but which prevents a node from being reinserted once it has been removed from the list. The final section of this paper contains an experimental comparison of this implementation against other data structures which implement the same abstract data type (ADT) as the lock-free trie. Analysis of these experiments reveal that the implementation of Ko's Trie performs better than existing theoretical implementations of this ADT when the universe of keys is large, when removes are rare and when the number of processes performing operations concurrently is low.

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

↑