发明名称 |
METHOD AND SYSTEM FOR DETECTING POTENTIAL DEADLOCKS IN COMPUTER PROGRAMS |
摘要 |
A system and method for detecting potential deadlocks during the run-time execution of a multithreaded computer program. Requests for access to shared resources are tracked and evaluated to determine whether a present request could prove cyclical with a previous set of requests. As each request is mad e, the identity of any previously requested and unreleased resources is recorde d in a data element associated with the currently requested resource. Data elemen ts associated with the previously requested and unreleased resources are read t o assess whether they identify the currently requested resource in previously executed lock sequences, thereby indicating a potential cycle and, thus, a deadlock. In an embodiment related to locking of mutually exclusive resource s, a request is a request to lock the resource, and the resource is released by unlocking.
|
申请公布号 |
CA2459123(C) |
申请公布日期 |
2008.10.28 |
申请号 |
CA20042459123 |
申请日期 |
2004.02.26 |
申请人 |
RESEARCH IN MOTION LIMITED |
发明人 |
DAHMS, JOHN F.A.;DUNK, CRAIG |
分类号 |
G06F9/52;G06F9/46;G06F11/00 |
主分类号 |
G06F9/52 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|