Logo image
A Deadlock-Free Synchronization Synthesizer for Must-Happen-Before Relations in Parallel Programs
Thesis

A Deadlock-Free Synchronization Synthesizer for Must-Happen-Before Relations in Parallel Programs

Lu, Yi-Shan
Masters, 國立清華大學, 資訊工程學系
2010

Abstract

必然先序關係 同步動作 合成 Must-Happen-Before Relations Synchronization Synthesis
In order to ensure atomicity and dependency of parallel programs, programmers are required to adopt synchronization schemes, but manual implementation is quite tedious and error-prone. Incorrect or unintended behaviors often result in concurrency bugs, e.g., deadlock. To resolve dependency among threads, this paper proposes SyncMHB, the first synchronization synthesizer for Must-Happen-Before (MHB) relations. According to the user-specified MHB relations, our SyncMHB can automatically identify deadlocks and then synthesizes corresponding implementation with low-level synchronization primitives, e.g., POSIX library. The experimental results show that our synthesized codes perform as well as those professionally hand-coded.

Metrics

1 Record Views

Details

Logo image