The cost of concurrent, low-contention Read&Modify&Write

  • Authors:
  • Costas Busch;Marios Mavronicolas;Paul Spirakis

  • Affiliations:
  • Department of Computer Science, Rensselaer Polytechnic Institute, Troy, NY and Department of Computer Science, University of Cyprus;Department of Computer Science, University of Cyprus, Nicosia, Cyprus and Faculty of Computer Science, Electrical Engineering and Mathematics, University of Paderborn;Department of Computer Engineering and Informatics, University of Patras, Rion, Patras, Greece and Research and Academic Computer Technology Institute, Patras, Greece

  • Venue:
  • Theoretical Computer Science - Foundations of software science and computation structures
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

This work addresses the possibility or impossibility, and the corresponding costs, of devising concurrent, low-contention implementations of atomic Read&Modify&Write (or RMW) operations in a distributed system. A natural class of monotone RMW operations associated with monotone groups, a certain class of algebraic groups introduced here, is considered. The popular Fetch&Add and Fetch&Multiply operations are examples from the class.A Monotone Linearizability Lemma is proved and employed as a chief combinatorial instrument in this work; it establishes inherent ordering constraints of linearizability for a certain class of executions of any distributed system implementing a monotone RMW operation.The end results of this work specifically apply to implementations of (monotone) RMW operations that are based on switching networks, a recent class of concurrent, low-contention data structures that generalize counting networks (J. ACM 41(5) (1994) 1020-1048) (which implemented the traditional Fetch&Increment operation). These results are negative; they are shown through the Monotone Linearizability Lemma. In particular, the first lower bounds on size (the number of switches in the network) for any (non-trivial) switching network implementing a monotone RMW operation are derived. It is proven that if the network incurs low contention, then its size must be infinite, no matter whether the number of states of each switch is finite or infinite. Since Fetch&Increment is implementable with counting networks of finite-size (J. ACM 41(5) (1994) 1020-1048), these lower bounds imply a space complexity separation between Fetch&Increment and any monotone RMW operation in the model of switching networks.The presented lower bounds provide a mathematical explanation for the observed inability of researchers over the last thirteen years to extend counting networks, while keeping their finite-size, high-concurrency and low-contention, in order to perform tasks more complex than Fetch&Increment but yet as simple as Fetch&Add.