Skip to main navigation Skip to search Skip to main content

On the cost of composing shared-memory algorithms

  • ENAC-IIC-GEL
  • Deutsche Telekom

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Decades of research in distributed computing have led to a variety of perspectives on what it means for a concurrent algorithm to be efficient, depending on model assumptions, progress guarantees, and complexity metrics. It is therefore natural to ask whether one could compose algorithms that perform efficiently under different conditions, so that the composition preserves the performance of the original components when their conditions are met. In this paper, we evaluate the cost of composing shared-memory algorithms. First, we formally define the notion of safely composable algorithms and we show that every sequential type has a safely composable implementation, as long as enough state is transferred between modules. Since such generic implementations are inherently expensive, we present a more general light-weight specification that allows the designer to transfer very little state between modules, by taking advantage of the semantics of the implemented object. Using this framework, we implement a composed longlived test-and-set object, with the property that each of its modules is asymptotically optimal with respect to the progress condition it ensures, while the entire implementation only uses objects with consensus number at most two. Thus, we show that the overhead of composition can be negligible in the case of some important shared-memory abstractions.

Original languageEnglish
Title of host publicationSPAA'12 - Proceedings of the 24th ACM Symposium on Parallelism in Algorithms and Architectures
Pages298-307
Number of pages10
DOIs
Publication statusPublished - 27 Jul 2012
Externally publishedYes
Event24th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA'12 - Pittsburgh, PA, United States
Duration: 25 Jun 201227 Jun 2012

Publication series

NameAnnual ACM Symposium on Parallelism in Algorithms and Architectures

Conference

Conference24th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA'12
Country/TerritoryUnited States
CityPittsburgh, PA
Period25/06/1227/06/12

Keywords

  • Complexity
  • Composition
  • Consensus
  • Modularity
  • Test-and-set

Fingerprint

Dive into the research topics of 'On the cost of composing shared-memory algorithms'. Together they form a unique fingerprint.

Cite this