ACM Home Page
Please provide us with feedback. Feedback
A theory of memory models
Full text PdfPdf (238 KB)
Source
Principles and Practice of Parallel Programming archive
Proceedings of the 12th ACM SIGPLAN symposium on Principles and practice of parallel programming table of contents
San Jose, California, USA
SESSION: Memory models and concurrency analysis table of contents
Pages: 161 - 172  
Year of Publication: 2007
ISBN:978-1-59593-602-8
Authors
Vijay A. Saraswat  IBM T.J. Watson Research Center, New York, NY
Radha Jagadeesan  DePaul University, Chicago, IL
Maged Michael  IBM T.J. Watson Research Center, New York, NY
Christoph von Praun  IBM T.J. Watson Research Center, New York, NY
Sponsors
ACM: Association for Computing Machinery
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 27,   Downloads (12 Months): 154,   Citation Count: 4
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1229428.1229469
What is a DOI?

ABSTRACT

A memory model for a concurrent imperative programming language specifies which writes to shared variables may be seen by reads performed by other threads. We present a simple mathematical framework for relaxed memory models for programming languages. To instantiate this framework for a specific language, the designer must choose the notion of atomic steps supported by the language (e.g. 32-bit reads and writes) and specify how a composite step may be broken into a sequence of atomic steps (the decomposition rule). This rule determines which sequence of intermediate writes (if any) are visible to concurrent reads by other threads. Different choices of the rule lead to models which permit a read to return any value if there is a concurrent write (race), or models which satisfy a "No Thin Air Read"property. The former is suitable for languages such as C++(programs with races have undefined behavior), and the latter for Java. Other intermediate models are possible, useful and interesting.

We establish that all models in the framework satisfy the Fundamental Property of relaxed memory models: programs whose sequentially consistent (SC) executions have no races must have have only SC executions. We show how to define synchronization constructs (such as volatiles of various kinds) in the framework, and discuss the causality test cases from the Java Memory Model.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
2
3
 
4
5
 
6
 
7
J. Hoeflinger and B. de Supinsky. The OpenMP memory model. June 2005.
 
8
L. Lamport. How to make a multiprocessor computer that correctly executes multiprocess programs. IEEE Transactions on Computers, 28(9), 1979.
 
9
D. Lea. Alternatives to SC. Message to C++ threads standardization list, Thu Jan 11 2007.
10
11
 
12
W. Pugh. Java Memory Model Causality Test Cases. Technical report, U Maryland, 2004. On www.cs.umd.edu, as~pugh/java/memoryModel/.
 
13
V. Saraswat. Concurrent Constraint-Based Memory Machines: A Framework for Java Memory Models. In ASIAN, pages 494--508, 2004.
 
14
15
16
 
17
 
18
C. Wallace, G. Tremblay, and J. Amaral. The Tamability of the Location Consistency Memory Model, 2002.
 
19
K. Yelick, D. Bonachea, and C. Wallace. A Proposal for a UPC Memory Consistency Model, v1.1. Technical Report LBNL Technical Report (draft), 2004.


Collaborative Colleagues:
Vijay A. Saraswat: colleagues
Radha Jagadeesan: colleagues
Maged Michael: colleagues
Christoph von Praun: colleagues