Legal claims defining the scope of protection, as filed with the USPTO.
1. A computer implemented method for deadlock detection of parallel programs, comprising: identifying a set of locations where the lock of the parallel programs may be finally used in the running procedure of the parallel programs; adding marks in the vicinity of locations that the lock of the parallel programs may be finally used, wherein the marks are used to trigger, in the running procedure of the parallel programs, event notifications that the lock of the parallel programs may no longer be used; in response to receiving all event notifications that the lock of the parallel programs may no longer be used as triggered by the marks, determining, by the computer, that a lock of the parallel programs is no longer used in a running procedure of the parallel programs; deleting, by the computer, a node corresponding to the lock that is no longer used, and edges relating to the lock that is no longer used, from a lock graph corresponding to the running procedure of the parallel programs to acquire an updated lock graph, wherein the lock graph is constructed according to lock operations of the parallel programs; and performing deadlock detection on the updated lock graph by the computer.
2. The computer implemented method according to claim 1 , wherein determining that a lock of the parallel programs is no longer used in the running procedure of the parallel programs further comprising: in response to receiving an event notification that a lock of the parallel programs is no longer used, determining that a lock of the parallel programs is no longer used.
3. The computer implemented method according to claim 2 , wherein determining a lock of the parallel programs is no longer used in the running procedure of the parallel programs further comprising: analyzing a lifecycle of the lock of the parallel programs by scanning code of the parallel programs.
4. The computer implemented method according to claim 3 , wherein analyzing the lifecycle of the lock of the parallel programs further comprising: in response to detecting that there is a function call in the parallel programs that destroys a lock, identifying a location where the lock of the parallel programs is finally used in the running procedure of the parallel programs.
5. The computer implemented method according to claim 4 , further comprising: adding marks in the vicinity of the location where the lock of the parallel programs is finally used, wherein the marks are used to trigger, in the running procedure of the parallel programs, event notifications that the lock of the parallel programs is no longer used.
6. The computer implemented method according to claim 1 , wherein identifying the set of locations where the lock of the parallel programs may be finally used in the running procedure of the parallel programs further comprising: in response to detecting that there is no function call in the parallel programs that destroys a lock, analyzing a data stream of the parallel programs, determining a location where the lock of the parallel programs is defined and used in order to identify the set of locations where the lock of the parallel programs may be finally used in the running procedure of the parallel programs.
7. The computer implemented method according to claim 1 , wherein determining that the lock of the parallel programs is no longer used in the running procedure of the parallel programs further comprising: in response to detecting that the lock of the parallel programs is reclaimed by a garbage collection process in the running procedure of the parallel programs, identifying that the lock of the parallel programs is no longer used.
Unknown
February 25, 2014
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.