Department of Computer Science
Atomicity Checking for Task Parallel Programs
- Publication Date: 2016-03-01
- Journal Volume: 2016 International Conference on Code Generation and Optimization (CGO-2016)
- Conference Location: Barcelona, Spain
- Link to Content 1: Atomicity Checking for Task Parallel Programs
- Abstract:
Task based programming models (e.g., Cilk, Intel TBB, X10, Java Fork-Join tasks) simplify multicore programming in contrast to programming with threads. In a task based model, the programmer specifies parallel tasks and the runtime maps these tasks to hardware threads. The runtime automatically balances the load using work-stealing and provides performance portability. However, interference between parallel tasks can result in concurrency errors.
This paper proposes a dynamic analysis technique to detect atomicity violations in task parallel programs, which could occur in different schedules for a given input without performing interleaving exploration. Our technique leverages the series-parallel dynamic execution structure of a task parallel program to identify parallel accesses. It also maintains access history metadata with each shared memory location to identify parallel accesses that can cause atomicity violations in different schedules. To streamline metadata management, the access history metadata is split into global metadata that is shared by all tasks and local metadata that is specific to each task. The global metadata tracks a fixed number of access histories for each shared memory location that capture all possible access patterns necessary for an atomicity violation. Our prototype tool for Intel Threading Building Blocks (TBB) detects atomicity violations that can potentially occur in different interleavings for a given input with performance overheads similar to Velodrome atomicity checker for thread based programs.
Upcoming Events
| 06 May 2026; - 03:30PM - 04:30PM Towards Universal and Interactive Medical Image Segmentation |
| 12 May 2026; - 02:30PM - 04:30PM Enhancing Consistency Models for Multi-Agent Trajectory Prediction |
| 15 May 2026; - 01:00PM - 03:00PM Towards Compliant Human Trajectory Prediction: From Environment-Aware Generation to Multi-Agent Joint Alignment |







