IEEE Transactions on Software Engineering · 2006 · 171 citations · 25 references
ComputingComputer ScienceComputer SystemsFormal MethodsOperating SystemsProgramming LanguagesConcurrency AnalysisConcurrency ControlConcurrent ProgrammingConcurrent System VerificationRace Condition VulnerabilitiesAtomicityAtomicity ViolationsConcurrent ComputationData Race AnalysisEscape AnalysisExecution Trace AnalysisRuntime AnalysisTransaction Atomicity
Atomicity is a correctness condition for concurrent systems. Informally, atomicity is the property that every concurrent execution of a set of transactions is equivalent to some serial execution of the same transactions. In multithreaded programs, executions of procedures (or methods) can be regarded as transactions. Correctness in the presence of concurrency typically requires atomicity of these transactions. Tools that automatically detect atomicity violations can uncover subtle errors that are hard to find with traditional debugging and testing techniques. This paper describes two algorithms for runtime detection of atomicity violations and compares their cost and effectiveness. The reduction-based algorithm checks atomicity based on commutativity properties of events in a trace; the block-based algorithm efficiently represents the relevant information about a trace as a set of blocks (i.e., pairs of events plus associated synchronizations) and checks atomicity by comparing each block with other blocks. To improve the efficiency and accuracy of both algorithms, we incorporate a multilockset algorithm for checking data races, dynamic escape analysis, and happen-before analysis. Experiments show that both algorithms are effective in finding atomicity violations. The block-based algorithm is more accurate but more expensive than the reduction-based algorithm.
25
Stefan Savage, Michael T. Burrows, Greg Nelson et al. · ACM Transactions on Computer Systems · 1997 · 1.6K citations · Full text
Virtual Time and Global States of Distributed Systems
Friedemann Mattern · 2002 · 1.3K citations
Ownership types for safe programming
Chandrasekhar Boyapati, Robert Lee, Martin Rinard · 2002 · 571 citations
Richard J. Lipton · Communications of the ACM · 1975 · 459 citations · Full text