Chapter 13. Concurrent Hashing and Natural Parallelism
Introduction
In earlier chapters, we studied how to extract parallelism from data structures like queues, stacks, and counters, that seemed to provide few opportunities for parallelism. In this chapter we take the opposite approach. We study concurrent hashing, a problem that seems to be “naturally parallelizable” or, using a more technical term, disjoint–access–parallel, meaning that concurrent method calls are likely to access disjoint locations, implying that there is little need for synchronization.
Hashing is a technique commonly used in sequential Set
implementations to ensure that contains()
, add()
, and remove()
calls take constant average time. The concurrent Set
implementations studied ...
Get The Art of Multiprocessor Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.