ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
MultiQueue.h

A relaxed priority queue shared by threads, beyond the book. More...

Files

file  ADS/concurrent/MultiQueue.h
 A relaxed priority queue shared by threads, beyond the book: the MultiQueue of Rihani, Sanders and Dementiev, with the stickiness and the buffers of Williams, Sanders and Dementiev.

Classes

class  ADS::MultiQueue< K, T, Less, H >
 a relaxed PRIORITY QUEUE shared by threads: \( n \) queues under locks, the pop from the better of two, each queue an H behind two buffers More...
class  ADS::MultiQueue< K, T, Less, H >::Handle
 the access of one thread to a MultiQueue: its draws and the two queues it keeps More...

Typedefs

template<class E, class C>
using ADS::MultiQueueHeap = DaryHeap< E , C , 8 >
 the inner queue of a MultiQueue by default, the 8-ary heap

Detailed description

A relaxed priority queue shared by threads, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of concurrency.

Typedef documentation

◆ MultiQueueHeap

template<class E, class C>
using ADS::MultiQueueHeap = DaryHeap< E , C , 8 >

the inner queue of a MultiQueue by default, the 8-ary heap