A lock-free algorithm for concurrent bags

  • Authors:
  • Håkan Sundell;Anders Gidenstam;Marina Papatriantafilou;Philippas Tsigas

  • Affiliations:
  • University of Borås, Borås, Sweden;University of Borås, Borås, Sweden;Chalmers University of Technology, Göteborg, Sweden;Chalmers University of Technology, Göteborg, Sweden

  • Venue:
  • Proceedings of the twenty-third annual ACM symposium on Parallelism in algorithms and architectures
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

A lock-free bag data structure supporting unordered buffering is presented in this paper. The algorithm supports multiple producers and multiple consumers, as well as dynamic collection sizes. To handle concurrency efficiently, the algorithm was designed to thrive for disjoint-access-parallelism for the supported semantics. Therefore, the algorithm exploits a distributed design combined with novel techniques for handling concurrent modifications of linked lists using double marks, detection of total emptiness, and efficient memory management with hazard pointer handover. Experiments on a 24-way multi-core platform show significantly better performance for the new algorithm compared to previous algorithms of relevance.