Advertisement

Splitting Atoms with Rely/Guarantee Conditions Coupled with Data Reification

  • Cliff B. Jones
  • Ken G. Pierce
Part of the Lecture Notes in Computer Science book series (LNCS, volume 5238)

Abstract

This paper presents a novel formal development of a non-trivial parallel program: Simpson’s implementation of asynchronous communication mechanisms (ACMs). Although the correctness of the “4-slot algorithm” has been shown elsewhere, earlier developments are by no means intuitive. The aims of this paper include both the presentation of an understandable (yet formal) design history and the establishment of another way of “splitting (software) atoms”. Using the “fiction of atomicity” as an aid to understanding the initial steps of development, the top-level specification is developed to code. The rely-guarantee approach is, here, combined with notions of read/write frames and “phased” specifications; the atomicity assumptions implied by rely/guarantee conditions are realised by clever choice of data representation. The development method herein is compared with other approaches –in a spirit of cooperation– as the authors believe that constructive comparison elucidates many of the finer points in the “4-slot” specification/development and of parallel programs in general.

Keywords

Parallel Program Read Operation Proof Obligation Asynchronous Communication Separation Logic 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. [Abr96]
    Abrial, J.-R.: The B-Book: Assigning programs to meanings. Cambridge University Press, Cambridge (1996)MATHGoogle Scholar
  2. [AC05]
    Abrial, J.-R., Cansell, D.: Formal construction of a non-blocking concurrent queue algorithm. Journal of Universal Computer Science 11(5), 744–770 (2005)Google Scholar
  3. [AC08]
    Abrial, J.-R., Cansell, D.: Development of a comcurrent program (2008) (private communication)Google Scholar
  4. [BA08]
    Bornat, R., Amjad, H.: Inter-process buffers in separation logic with rely-guarantee. Formal Aspects of Computing (private communication) (submitted, 2008 ) Google Scholar
  5. [dR01]
    de Roever, W.P.: Concurrency Verification: Introduction to Compositional and Noncompositional Methods. Cambridge University Press, Cambridge (2001)MATHGoogle Scholar
  6. [dRE99]
    de Roever, W.P., Engelhardt, K.: Data Refinement: Model-Oriented Proof Methods and Their Comparison. Cambridge University Press, Cambridge (1999)Google Scholar
  7. [Hen04]
    Henderson, N.: Formal Modelling and Analysis of an Asynchronous Communication Mechanism. PhD thesis, University of Newcastle upon Tyne (2004)Google Scholar
  8. [HP02]
    Henderson, N., Paynter, S.E.: The formal classification and verification of Simpson’s 4-slot asynchronous communication mechanism. In: Eriksson, L.-H., Lindsay, P.A. (eds.) FME 2002. LNCS, vol. 2391, pp. 350–369. Springer, Heidelberg (2002)CrossRefGoogle Scholar
  9. [Jon81]
    Jones, C.B.: Development Methods for Computer Programs including a Notion of Interference. PhD thesis, Oxford University (June 1981); Printed as: Programming Research Group, Technical Monograph 25Google Scholar
  10. [Jon83a]
    Jones, C.B.: Specification and design of (parallel) programs. In: Proceedings of IFIP 1983, pp. 321–332. North-Holland, Amsterdam (1983)Google Scholar
  11. [Jon83b]
    Jones, C.B.: Tentative steps toward a development method for interfering programs. Transactions on Programming Languages and System 5(4), 596–619 (1983)MATHCrossRefGoogle Scholar
  12. [Jon89]
    Jones, C.B.: Data reification. In: McDermid, J.A. (ed.) The Theory and Practice of Refinement, pp. 79–89. Butterworths (1989)Google Scholar
  13. [Jon90]
    Jones, C.B.: Systematic Software Development using VDM, 2nd edn. Prentice Hall International, Englewood Cliffs (1990)MATHGoogle Scholar
  14. [Jon96]
    Jones, C.B.: Accommodating interference in the formal design of concurrent object-based programs. Formal Methods in System Design 8(2), 105–122 (1996)CrossRefGoogle Scholar
  15. [Jon03]
    Jones, C.B.: Wanted: a compositional approach to concurrency. In: McIver, A., Morgan, C. (eds.) Programming Methodology, pp. 1–15. Springer, Heidelberg (2003)Google Scholar
  16. [Jon07]
    Jones, C.B.: Splitting atoms safely. Theoretical Computer Science 357, 109–119 (2007)CrossRefGoogle Scholar
  17. [Nip86]
    Nipkow, T.: Non-deterministic data types: Models and implementations. Acta Informatica 22, 629–661 (1986)MATHCrossRefMathSciNetGoogle Scholar
  18. [Nip87]
    Nipkow, T.: Behavioural Implementation Concepts for Nondeterministic Data Types. PhD thesis, University of Manchester (May 1987)Google Scholar
  19. [PHA04]
    Paynter, S.E., Henderson, N., Armstrong, J.M.: Ramifications of meta-stability in bit variables explored via Simpson’s 4-slot mechanism. Formal Aspects of Computing 16(4), 332–351 (2004)MATHCrossRefGoogle Scholar
  20. [Rod08]
    Rodin.: Rodin tools can be downloaded from SourceForge (2008), http://sourceforge.net/projects/rodin-b-sharp/
  21. [Sim97]
    Simpson, H.R.: New algorithms for asynchronous communication. IEE, Proceedings of Computer Digital Technology 144(4), 227–231 (1997)CrossRefGoogle Scholar
  22. [Stø90]
    Stølen, K.: Development of Parallel Programs on Shared Data-Structures. PhD thesis, Manchester University (1990), Available as UMCS-91-1-1Google Scholar
  23. [Vaf07]
    Vafeiadis, V.: Modular fine-grained concurrency verification. PhD thesis, University of Cambridge (2007)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • Cliff B. Jones
    • 1
  • Ken G. Pierce
    • 1
  1. 1.School of Computing ScienceNewcastle UniversityUK

Personalised recommendations