具有淘汰和合并的自适应优先级排队
The Adaptive Priority Queue with Elimination and Combining
摘要:
优先级队列是基本的抽象数据结构,通常用于在并行编程中管理有限的资源。几个建议的并行优先级队列实现都是基于跳跃列表的,利用了add()操作的并行性。此外,已经提出了诸如平面组合(Flat Combining)的方法,以通过将由单个线程执行的多个操作合并在一起来减少争用。虽然这种技术可以减少锁切换开销和优先级队列中的removeMin()操作所需的指针更改次数,但它也会造成顺序瓶颈并限制并行性,特别是对于非冲突的add()操作。在本文中,我们描述了一种新的优先级队列设计,利用并行插入的可扩展性与批量删除的效率。此外,我们提出了一个新的消除算法适用于一个优先级队列,这进一步增加了并发平衡的工作负载与类似数量的add()和removeMin()操作。我们实现和评估我们的设计,使用各种技术,包括锁定,原子操作,硬件事务内存,以及采用自适应算法给定的工作负载。
英文摘要:
Priority queues are fundamental abstract data structures, often used to manage limited resources in parallel programming. Several proposed parallel priority queue implementations are based on skiplists, harnessing the potential for parallelism of the add() operations. In addition, methods such as Flat Combining have been proposed to reduce contention by batching together multiple operations to be executed by a single thread. While this technique can decrease lock-switching overhead and the number of pointer changes required by the removeMin() operations in the priority queue, it can also create a sequential bottleneck and limit parallelism, especially for non-conflicting add() operations. In this paper, we describe a novel priority queue design, harnessing the scalability of parallel insertions in conjunction with the efficiency of batched removals. Moreover, we present a new elimination algorithm suitable for a priority queue, which further increases concurrency on balanced workloads with similar numbers of add() and removeMin() operations. We implement and evaluate our design using a variety of techniques including locking, atomic operations, hardware transactional memory, as well as employing adaptive heuristics given the workload.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。