Rely-Guarantee Protocols

Abstract

The use of shared mutable state, commonly seen in object-oriented systems, is often problematic due to the potential conflicting interactions between aliases to the same state. We present a substructural type system outfitted with a novel lightweight interference control mechanism, rely-guarantee protocols, that enables controlled aliasing of shared resources. By assigning each alias separate roles, encoded in a novel protocol abstraction in the spirit of rely-guarantee reasoning our type system ensures that challenging uses of shared state will never interfere in an unsafe fashion. In particular, rely-guarantee protocols ensure that each alias will never observe an unexpected value, or type, when inspecting shared memory regardless of how the changes to that shared state (originating from potentially unknown program contexts) are interleaved at run-time.

Open PDF

Document Details

Document Type
Technical Report
Publication Date
May 01, 2014
Accession Number
ADA605817

Entities

People

  • Filipe Militao
  • Jonathan Erik Aldrich
  • Luis Caires

Organizations

  • Carnegie Mellon University

Tags

Communities of Interest

  • Materials and Manufacturing Processes

DTIC Thesaurus Topics

  • Abstracts
  • Air Force
  • Air Force Research Laboratories
  • Birds
  • Cells
  • Compressors
  • Computer Science
  • Computers
  • Consumers
  • Environment
  • Guarantees
  • Language
  • Lightweight
  • Notation
  • Object Oriented Programming
  • Reasoning
  • Standards

Fields of Study

  • Computer science

Readers

  • Database Systems and Applications
  • Strategic Security Studies
  • Systems Analysis and Design