Skip to main content

Splitting Atoms with Rely/Guarantee Conditions Coupled with Data Reification

  • Conference paper
Abstract State Machines, B and Z (ABZ 2008)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 5238))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Abrial, J.-R.: The B-Book: Assigning programs to meanings. Cambridge University Press, Cambridge (1996)

    MATH  Google Scholar 

  2. 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. Abrial, J.-R., Cansell, D.: Development of a comcurrent program (2008) (private communication)

    Google Scholar 

  4. Bornat, R., Amjad, H.: Inter-process buffers in separation logic with rely-guarantee. Formal Aspects of Computing (private communication) (submitted, 2008 )

    Google Scholar 

  5. de Roever, W.P.: Concurrency Verification: Introduction to Compositional and Noncompositional Methods. Cambridge University Press, Cambridge (2001)

    MATH  Google Scholar 

  6. de Roever, W.P., Engelhardt, K.: Data Refinement: Model-Oriented Proof Methods and Their Comparison. Cambridge University Press, Cambridge (1999)

    Google Scholar 

  7. Henderson, N.: Formal Modelling and Analysis of an Asynchronous Communication Mechanism. PhD thesis, University of Newcastle upon Tyne (2004)

    Google Scholar 

  8. 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)

    Chapter  Google Scholar 

  9. 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 25

    Google Scholar 

  10. Jones, C.B.: Specification and design of (parallel) programs. In: Proceedings of IFIP 1983, pp. 321–332. North-Holland, Amsterdam (1983)

    Google Scholar 

  11. Jones, C.B.: Tentative steps toward a development method for interfering programs. Transactions on Programming Languages and System 5(4), 596–619 (1983)

    Article  MATH  Google Scholar 

  12. Jones, C.B.: Data reification. In: McDermid, J.A. (ed.) The Theory and Practice of Refinement, pp. 79–89. Butterworths (1989)

    Google Scholar 

  13. Jones, C.B.: Systematic Software Development using VDM, 2nd edn. Prentice Hall International, Englewood Cliffs (1990)

    MATH  Google Scholar 

  14. Jones, C.B.: Accommodating interference in the formal design of concurrent object-based programs. Formal Methods in System Design 8(2), 105–122 (1996)

    Article  Google Scholar 

  15. 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. Jones, C.B.: Splitting atoms safely. Theoretical Computer Science 357, 109–119 (2007)

    Article  Google Scholar 

  17. Nipkow, T.: Non-deterministic data types: Models and implementations. Acta Informatica 22, 629–661 (1986)

    Article  MATH  MathSciNet  Google Scholar 

  18. Nipkow, T.: Behavioural Implementation Concepts for Nondeterministic Data Types. PhD thesis, University of Manchester (May 1987)

    Google Scholar 

  19. 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)

    Article  MATH  Google Scholar 

  20. Rodin.: Rodin tools can be downloaded from SourceForge (2008), http://sourceforge.net/projects/rodin-b-sharp/

  21. Simpson, H.R.: New algorithms for asynchronous communication. IEE, Proceedings of Computer Digital Technology 144(4), 227–231 (1997)

    Article  Google Scholar 

  22. Stølen, K.: Development of Parallel Programs on Shared Data-Structures. PhD thesis, Manchester University (1990), Available as UMCS-91-1-1

    Google Scholar 

  23. Vafeiadis, V.: Modular fine-grained concurrency verification. PhD thesis, University of Cambridge (2007)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Egon Börger Michael Butler Jonathan P. Bowen Paul Boca

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Jones, C.B., Pierce, K.G. (2008). Splitting Atoms with Rely/Guarantee Conditions Coupled with Data Reification. In: Börger, E., Butler, M., Bowen, J.P., Boca, P. (eds) Abstract State Machines, B and Z. ABZ 2008. Lecture Notes in Computer Science, vol 5238. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-87603-8_47

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-87603-8_47

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-87602-1

  • Online ISBN: 978-3-540-87603-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics