Data-race and concurrent-write freedom are undecidable

  • Authors:
  • Alvaro E. Campos;Dionel A. Suazo

  • Affiliations:
  • Departamento de Ciencia de la Computación, Pontificia Universidad Católica de Chile, Casilla 306, Santiago 22, Chile;Departamento de Ciencia de la Computación, Pontificia Universidad Católica de Chile, Casilla 306, Santiago 22, Chile

  • Venue:
  • Computer Languages, Systems and Structures
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

In a distributed shared memory system, sequential consistency is often assumed as the model for the memory, because it is a natural extension from multitasking in uniprocessor systems. Weaker consistency models allow greater concurrency, but programming is harder, because programs may produce unexpected results. Data-race-free (DRF) and concurrent-write-free (CWF) programs have the same set of possible executions both under a sequentially consistent memory and under some other, weaker model, memories. They can be written for a sequential memory and run unchanged under such a weaker-model memory. Since the sets of possible executions are the same, the run will only produce results that are possible under sequential consistency. This article proves the undecidability of both classes of concurrent programs in a language with if statements, loops, barriers, dynamic process creation, dynamic storage, and recursive data structures, under many models weaker than sequential consistency. Moreover, the article also proves that methods that only add synchronization statements to programs written for sequential consistency must produce some conservatively DRF or CWF programs.