Compiler and Runtime Techniques to Identify and Optimize Atomic Blocks in Parallel Programs
eBook - PDF

Compiler and Runtime Techniques to Identify and Optimize Atomic Blocks in Parallel Programs

,
  1. 184 pages
  2. English
  3. PDF
  4. Available on iOS & Android
eBook - PDF

Compiler and Runtime Techniques to Identify and Optimize Atomic Blocks in Parallel Programs

,

About this book

Atomic blocks are a programming language construct that marks sections of code that multiple threads may not execute concurrently. The implementation of the mutual exclusion is left to the compiler or the runtime system. To avoid race conditions however, developers are still responsible to detect all places in the code where atomic blocks are needed. It is of course also important that mutual exclusion is implemented efficiently.This thesis therefore pursues two goals. First, we develop a data dependence analysis that identifies potential critical sections in a parallel program, presents them to the programmer, and then adds atomic blocks to the code. Second, we enhance existing techniques - software transactional memory (STM) and lock inference - to implement atomic blocks. Our approach combines the advantages of STM and lock inference, which allows atomic blocks to be implemented more efficiently.The evaluation shows that our approach identifies atomic blocks that closely match those atomic blocks that an expert would add to the code. Compared to a pure STM or lock inference implementation, our combined approach to implement atomic blocks speeds up execution times by a factor between 1.1 and 6.3.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

Information

Year
2014
Print ISBN
9783954048403
eBook ISBN
9783736948402
Edition
1

Table of contents

  1. Abstract
  2. Kurzfassung
  3. List of Publications
  4. Contents
  5. List of Figures
  6. List of Tables
  7. Chapter 1 Introduction
  8. Chapter 2 S tate of the Art and Related Work
  9. Chapter 3 Identification of Atomic Blocks in Parallel Code
  10. Chapter 4 Foundations of Transactional Memory and Lock Inference
  11. Chapter 5 Combining Lock Inference with Lock-Based Software Transactional Memory
  12. Chapter 6 Tuning of Software Transactional Memory Locking Granularity at Runtime
  13. Chapter 7 Evaluation
  14. Chapter 8 Conclusions and Future Work
  15. Bibliography