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

缓存感知无锁并发哈希尝试

Cache-Aware Lock-Free Concurrent Hash Tries

Aleksandar Prokopec, Phil Bagwell, Martin Odersky

摘要:

本报告描述了一个基于单字比较和交换指令的非阻塞并发共享内存哈希trie的实现。插入、查找和移除操作修改哈希trie的不同部分,可以彼此独立地运行,并且不竞争。删除操作确保释放不需要的内存,并使trie保持紧凑。这些操作的伪代码,并给出了正确性的证明-我们表明,实现是线性和无锁的。最后,基准比较并发哈希trie操作对其他并发数据结构的相应操作,显示其性能和可扩展性。

英文摘要:

This report describes an implementation of a non-blocking concurrent shared-memory hash trie based on single-word compare-and-swap instructions. Insert, lookup and remove operations modifying different parts of the hash trie can be run independent of each other and do not contend. Remove operations ensure that the unneeded memory is freed and that the trie is kept compact. A pseudocode for these operations is presented and a proof of correctness is given -- we show that the implementation is linearizable and lock-free. Finally, benchmarks are presented which compare concurrent hash trie operations against the corresponding operations on other concurrent data structures, showing their performance and scalability.

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

↑