Font Size: a A A

Simplified Semantics and Debugging of Concurrent Programs via Targeted Race Detection

Posted on:2012-09-03Degree:Ph.DType:Dissertation
University:University of California, Los AngelesCandidate:Marino, Daniel LukeFull Text:PDF
GTID:1458390011952342Subject:Computer Science
Abstract/Summary:
The shared memory paradigm is the de facto standard for programming parallel server and desktop applications. In this paradigm, a program is made up of a collection of threads that cooperate to perform a task and communicate by accessing a shared memory space. In order to exhibit predictable behavior, threads sharing memory must be carefully synchronized in order to avoid leaving shared memory in an inconsistent state. A data race is a common flaw in shared memory concurrent programs which occurs when multiple threads access the same memory location without synchronization.;Data races lead to insidious bugs that are difficult to find and fix. Modern optimizing compilers and hardware further complicate the situation by exposing memory models that do not guarantee sequentially consistent semantics. In such a setting, a data race can lead to behavior that is unintuitive and difficult to explain.;Precisely detecting data races at runtime could alleviate these problems. Unfortunately, precise data race detection is prohibitively expensive. This dissertation presents a variety of strategies that can be used to detect only certain races at runtime with very low overhead while still providing simple, strong guarantees to programmers of shared memory, concurrent systems.
Keywords/Search Tags:Shared memory, Race, Concurrent
Related items