Patents
US 7,549,150 B2#2738532 Most CitedExpiredUnited States (USPTO)Utility

Method and system for detecting potential races in multithreaded programs

27Forward Citations (#2738532 Global)
1.6/yrCitation Velocity (#3175927 Global)
2.85Citation PageRank (#8212577 Global)
8Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A dynamic race detection system and method overcomes drawbacks of previous lockset approaches, which may produce many false positives, particularly in the context of thread fork/join and asynchronous calls. For each shared memory location, a set of locks that are protecting the location and a set of concurrent thread segments that are accessing the location are maintained. To maintain these sets, each thread maintains a set of locks it is currently holding and a set of thread segments ordered before its current thread segment. Each thread also maintains a virtual clock that is incremented when it forks a second thread. A thread segment is a pair comprising a thread identifier and a virtual clock value. A data race is reported when the lockset for a particular shared memory location is empty and the cardinality of the set of concurrent threads for that memory location is greater than one.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 27.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A system for dynamically detecting potential race conditions in a program having at least one thread and one or more shared memory locations, the system comprising: a processor, wherein the processor is adapted to: initialize a virtual clock (C_t) respectively for each of the at least one thread; initialize a set of candidate locks for each of at least one shared memory location (S_x); initialize a set of locks (S_t) held for each of at least one thread; initialize a set of concurrent thread segments (T_x) accessing each of the at least one shared memory location; initialize an ordered set of

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • A Comparative Analysis of Fine-Grain Threads Packages G. Price and D. Lowenthal Journal of Parallel and Distributed Computing May 30, 2001.
  • Choi et al. Efficient and Precise Datarace Detection for Multithreaded Object-Oriented Programs. ACM SIGPLAN Notices, vol. 37, No. 5, pp. 258-269. New York: ACM Press, May 2002.
  • Dinning et al. Detecting Access Anomalies in Programs with Critical Sections. In Proceedings of the 1991 ACM/ONR Workshop on Parallel and Distributed Debugging, pp. 85-96. New York: ACM Press, 1991.
  • Engler et al. RacerX: Effective, Static Detection of Race Conditions and Deadlocks. In Proceedings of the 19th ACM Symposium on Operating Systems Principles, pp. 237-252. New York: ACM Press, 2003.
  • Lamport, Time, Clocks, and the Ordering of Events in a Distributed System. Communications of the ACM, vol. 21, No. 7, pp. 558-565. New York: ACM Press, Jul. 1978.