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

A hash table that many threads read and grow at once, beyond the book. More...

Files

file  ADS/concurrent/ConcurrentFlatTable.h
 A hash table that many threads read and grow at once, beyond the book: open addressing with linear probing on a vector of atomic words of 64 bits, the folklore table that Maier, Sanders and Dementiev found the fastest to read, made to grow while the threads work and to keep its pairs where they are.

Concepts

concept  ADS::FlatClear
 a policy of clear() of ConcurrentFlatTable

Classes

struct  ADS::ZeroingClear
 the clear() of ConcurrentFlatTable that writes 0 to every place, in time linear in its capacity; the default More...
struct  ADS::EpochClear< S >
 the clear() of ConcurrentFlatTable in \( O( 1 ) \) by epochs: a stamp of the unsigned type \( S \) per group of 8 places, the group in use only if its stamp is the epoch that clear() raises More...
class  ADS::ConcurrentFlatTable< K, V, H, Eq, C >
 a DICTIONARY shared by threads, by linear probing on atomic words, that grows while they work and never removes; cleared in \( O( 1 ) \) by the policy EpochClear More...

Detailed description

A hash table that many threads read and grow at once, beyond the book.

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