Enhanced thread stepping
Abstract
Embodiments of the invention provide debugging techniques for multithreaded programs. For example, a debugger may reduce the time required to release inactive threads that hold resources needed by an active thread. For example, if a timer expires before a line of code finishes executing, the debugger assumes that the active thread requires a resource locked by an inactive thread and releases other threads. During subsequent execution of the line of code, the debugger reduces the timer length of the timer. In doing so, inactive threads are released sooner, thereby reducing the wait time a user experiences when debugging lines of code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for debugging a multithreaded program, comprising: receiving a first request to execute a current line of code for a first thread of the multithreaded program actively being debugged by a debugging application, wherein executing the current line of code requires access, by the first thread, to a shared resource shared by a plurality of threads of the multithreaded program, and wherein an execution of a second one of the plurality of threads is suspended by the debugging application; upon determining that a first debug timer did not expire during a previous executi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (25)
Non-Patent Literature (5)
- Agarwal et al., "Runtime Detection of Potential Deadlocks for Programs with Locks, Semaphores, and Condition Variables", 2006 ACM, pp. 51-59; .
- Agarwal et al., "Runtime Detection of Potential Deadlocks for Programs with Locks, Semaphores, and Condition Variables", 2006 ACM, pp. 51-59; <http://dl.acm.org/citation.cfm?id=1147403.1147413&coll=DL&dl=GUIDE&CFID=97596523&CFTOKEN=81085112>.
- Li et al., "MKtrace-An innovative debugging tool for multi-threaded programs on multiprocessor systems", 2007 IEEE, pp. 510-517; .
- Li et al., "MKtrace—An innovative debugging tool for multi-threaded programs on multiprocessor systems", 2007 IEEE, pp. 510-517; <http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4425894>.
- Shameem Akhter, "Multithreaded Debugging Techniques", Apr. 23, 2007, excerpted from "Multi-Core Programming", Intel Corporation, pp. 1-10; .