COOKIES: By using this website you agree that we can place Google Analytics Cookies on your device for performance monitoring. |
University of Cambridge > Talks.cam > Computer Laboratory Automated Reasoning Group Lunches > A Simple and Efficient Memory Model for Concurrent Programming Languages
A Simple and Efficient Memory Model for Concurrent Programming LanguagesAdd to your list(s) Download to your calendar using vCal
If you have a question about this talk, please contact Thomas Tuerk. The most intuitive memory model for shared-memory multithreaded programming is sequential consistency (SC), but it disallows the use of many compiler and hardware optimizations thereby impacting performance. Data-race-free (DRF) models, such as the proposed C++0x memory model, guarantee SC execution for data-race-free programs. But these models provide no guarantee at all for racy programs, compromising the safety and debuggability of such programs. To address the safety issue, the Java memory model, which is also based on the DRF model, provides a weak semantics for racy executions. However, this semantics is subtle and complex, making it difficult for programmers to reason about their programs and for compiler writers to ensure the correctness of compiler optimizations. We present the DRFx memory model, which is simple for programmers to understand and use while still supporting many common optimizations. We introduce a memory model (MM) exception which can be signaled to halt execution. If a program executes without throwing this exception, then DRFx guarantees that the execution is SC. If a program throws an MM exception during an execution, then DRFx guarantees that the program has a data race. We observe that SC violations can be detected in hardware through a lightweight form of conflict detection. Furthermore, our model safely allows aggressive compiler and hardware optimizations within compiler-designated program regions. In ongoing work we are simplifying the required hardware support and exploring techniques to automatically recover from MM exceptions. Joint work with Dan Marino (UCLA), Abhayendra Singh and Satish Narayanasamy (University of Michigan, Ann Arbor), and Madan Musuvathi (Microsoft Research Redmond). This talk is part of the Computer Laboratory Automated Reasoning Group Lunches series. This talk is included in these lists:
Note that ex-directory lists are not shown. |
Other listsSoft Condensed MatterTermly Meeting Stokes Society, Pembroke College Assessment PrinciplesOther talksCambridge-Lausanne Workshop 2018 - Day 1 Climate Change: Engaging Youth On Classical Tractability of Quantum Schur Sampling Ramble through my greenhouse and Automation Towns, Cities and the Tilting of Britain's Political Axis Brest-Litovsk and the Making of Modern Ukraine and Russia Café Synthetique: Graduate Talks! mTORC1 signaling coordinates different POMC neurons subpopulations to regulate feeding Immigration and Freedom Sneks long balus Planning for sustainable urbanisation in China: a community perspective |