US5845117A
Expired / Lapsed
US
⏱️ 0.0 years remaining
Deadlock detecting device
Assignee: Fujitsu Ltd
•
Filing: 1996-09-25
•
Granted: 1998-12-01
•
Expires: 2016-09-25
Abstract
Abstract Start, commit and abort of transactions in a computer system are managed by a task manager. When a certain transaction locks a certain resource, this information is registered in a lock manager. Accordingly, when a transaction requests for gaining a resource, the lock manager can determine that the resource is already locked, if any, by another transaction. In such a case, the transaction should wait for the termination of the other transaction, so that this information is registered in a wait-for-graph table. A deadlock detector determines whether the deadlock is caused according to the registered information in the wait-for-graph table.
Inventors
- 👤 Kazuhiko Fujita
Bibliographic Details
Application Number
—
Jurisdiction
US
Data Source
google_patents
Last Synchronized
2026-10-26 17:28
CPC Classifications
G; G06; G06F; G06F9/00; G06F9/06; G06F9/46; G06F9/52; G06F9/524; G06F9/466
Claims Analysis
Total Claims: 18
Claim 1
Independent Claim
195 words
A deadlock detecting device of a multitasking system, said device detecting deadlock between plurality of tasks executed in the multitasking system, comprising; task managing means for managing parallel execution of plurality of the tasks; lock managing means for detecting that one task locks a common resource , and for detecting that another task is waiting for the common resource locked by the former task and outputting waiting relation information indicating that the latter task is waiting for the former task; a wait management table for storing a plural pieces of waiting relation information; registering means for registering said waiting relation information in said wait management table, every time said lock managing means outputs said waiting relation information; and deadlock detecting means for detecting the deadlock between plurality of the tasks, of plural pieces of waiting relation involving the tasks which are respectively indicated by any one of the waiting relation information stored in the wait management table forms a loop relation, said deadlock detecting means functioning independently and asynchronously from said lock managing means and said task managing means; whereby execution of said first task and said second task is not suspended during deadlock detection.
Claim 2
Dependent Claim
195 words
A deadlock detecting device of a multitasking system, said device detecting deadlock between plurality of tasks executed in the multitasking system, comprising; task managing means for managing parallel execution of plurality of the tasks; lock managing means for detecting that one task locks a common resource , and for detecting that another task is waiting for the common resource locked by the former task and outputting waiting relation information indicating that the latter task is waiting for the former task; a wait management table for storing a plural pieces of waiting relation information; registering means for registering said waiting relation information in said wait management table, every time said lock managing means outputs said waiting relation information; and deadlock detecting means for detecting the deadlock between plurality of the tasks, of plural pieces of waiting relation involving the tasks which are respectively indicated by any one of the waiting relation information stored in the wait management table forms a loop relation, said deadlock detecting means functioning independently and asynchronously from said lock managing means and said task managing means; whereby execution of said first task and said second task is not suspended during deadlock detection.
Claim 3
Dependent Claim
23 words
The deadlock detecting device as claimed in claim 1, wherein said registering means has a table in which said waiting relations are registered.
Claim 4
Dependent Claim
37 words
The deadlock detecting device as claimed in claim 2, wherein said deadlock detecting means registers the waiting relations in the table of said registering means and detects the presence or absence of deadlock by searching said table.
Claim 5
Dependent Claim
36 words
The deadlock detecting device as claimed in claim 2, wherein said deadlock detecting means comprises a request queue receiving unit for receiving a "waiting relation registering request" indicative of an instruction to detect the deadlock loop.
Claim 6
Dependent Claim
47 words
The deadlock detecting device as claimed in claim 2, wherein the deadlock detecting device is realized on a distribution system having a first and second system, wherein each system comprises said task managing means, said lock managing means, said wait management table and said deadlock detecting means.
Claim 7
Dependent Claim
53 words
The deadlock detecting device as claimed in claim 5, wherein said second waiting relation from said first system is communicated and registered in said wait management table of said second system, and the presence or absence of the deadlock loop is determined by looking up said wait management table in said second system.
Claim 8
Dependent Claim
87 words
The deadlock detecting device as claimed in claim 5, wherein a task x generated in a system i is defined as T(i, x), a task y generated in a system j is defined as T(j, y) and waiting of T(i, x) for T(j, y) is represented by T(i, x)→T(j, y), which is registered in said table as information of the third waiting relation to detect a loop of T(i, x)→T(j, y)→T(i, x) when both T(i, x)→T(j, y) and T(j, y)→T(i, x) hold, thereby detecting the deadlock loop.
Claim 9
Dependent Claim
54 words
The deadlock detecting device as claimed in claim 1, wherein the dead lock detecting device is realized on a distribution system having a plurality of systems and comprises a waiting time monitoring unit for use in reissuing a resource gaining request to the task of which waiting relation is continued for a predetermined time.
Claim 10
Dependent Claim
51 words
A deadlock detecting device as claimed in claim 1, wherein said task managing means manages the tasks through a two-phase lock system in which a lock is continuously made when the task starts to lock a data while the lock is continuously released when the task starts to release the lock.
Claim 11
Dependent Claim
76 words
The deadlock detecting device as claimed in claim 2, wherein said lock managing means registers the first waiting relation in said wait management table and issues a deadlock detecting instruction to the deadlock detecting means only when the first waiting relation is caused to be a resource gaining request, and wherein said lock managing means does not suspend the execution operation on the transaction for the resource gaining request accompanying an absence of a waiting relation.
Claim 12
Dependent Claim
164 words
A deadlock detecting device of a multitasking system, said device detecting deadlock between plurality of tasks executed in the multitasking system, comprising: a task manager which manages parallel execution of plurality of the tasks; a lock manager which makes one task a common resource, and which detects that another task is waiting for the common resource locked by the former task and consequently output waiting relation information indicating that the latter task is waiting for the former task; a wait management table for storing the waiting relation information; and deadlock detector which detects the deadlock between plurality of the tasks if plural pieces of the waiting relation involving the tasks which are respectively indicated by any one of the waiting relation information stored in the wait management table forms a loop relation, said deadlock detector functioning independently and asynchronously from said lock manager and said task manager; whereby execution of said first task and said second task is not suspended during the deadlock detection.
Claim 13
Dependent Claim
164 words
A deadlock detecting device of a multitasking system, said device detecting deadlock between plurality of tasks executed in the multitasking system, comprising: a task manager which manages parallel execution of plurality of the tasks; a lock manager which makes one task a common resource, and which detects that another task is waiting for the common resource locked by the former task and consequently output waiting relation information indicating that the latter task is waiting for the former task; a wait management table for storing the waiting relation information; and deadlock detector which detects the deadlock between plurality of the tasks if plural pieces of the waiting relation involving the tasks which are respectively indicated by any one of the waiting relation information stored in the wait management table forms a loop relation, said deadlock detector functioning independently and asynchronously from said lock manager and said task manager; whereby execution of said first task and said second task is not suspended during the deadlock detection.
Claim 14
Dependent Claim
22 words
The deadlock detecting device as claimed in claim 11, wherein said task manager starts, commits and aborts the first and second tasks.
Claim 15
Dependent Claim
39 words
The deadlock detecting device as claimed in claim 11, wherein said lock manager includes a lock table for locking a corresponding relation between said first task and said first resource and between said second task and said second resource.
Claim 16
Dependent Claim
252 words
A deadlock detecting device of a distribution system having a plurality of systems, said device detecting deadlock between plurality of tasks each of which is executed in one of the systems and is usable common resources, each system comprising: a task manager which manages parallel execution of plurality of the task executed in own system; a lock manager which makes one task lock a common resource and which detects that another task is waiting for the common resource locked by the former task and consequently output waiting relation information indicating that the latter task is waiting for the former task; means for sending only waiting relation information indicating that one task is waiting for any task executed in other system to this other system, said sending means further sending waiting relation information indicating that one task is waiting for another task involved in the sent waiting relation information; a wait management table for storing the waiting relation information outputted by the lock manager of own system and the waiting relation information sent from the sending means of other system; a deadlock detector which detects the deadlock between plurality of the tasks, if plural pieces of the waiting relation involving the tasks which are respectively indicated by any waiting relation information stored in the wait management table forms a loop relation, said deadlock detector functioning independently and asynchronously from said lock manager and said task manager; whereby execution of said first task and said second task is not suspended during the deadlock detection.
Claim 17
Dependent Claim
252 words
A deadlock detecting device of a distribution system having a plurality of systems, said device detecting deadlock between plurality of tasks each of which is executed in one of the systems and is usable common resources, each system comprising: a task manager which manages parallel execution of plurality of the task executed in own system; a lock manager which makes one task lock a common resource and which detects that another task is waiting for the common resource locked by the former task and consequently output waiting relation information indicating that the latter task is waiting for the former task; means for sending only waiting relation information indicating that one task is waiting for any task executed in other system to this other system, said sending means further sending waiting relation information indicating that one task is waiting for another task involved in the sent waiting relation information; a wait management table for storing the waiting relation information outputted by the lock manager of own system and the waiting relation information sent from the sending means of other system; a deadlock detector which detects the deadlock between plurality of the tasks, if plural pieces of the waiting relation involving the tasks which are respectively indicated by any waiting relation information stored in the wait management table forms a loop relation, said deadlock detector functioning independently and asynchronously from said lock manager and said task manager; whereby execution of said first task and said second task is not suspended during the deadlock detection.
Claim 18
Dependent Claim
71 words
A deadlock detecting device according to claim 14, further comprising: a watchdog timer watch which monitors, for every waiting relation information, elapsed time since the waiting relation information stored in the wait management table and, when the elapsed time exceeds a predetermined time period, makes the deadlock detector erase the waiting relation information from the wait management table to make the waiting transaction involved in the waiting relation information run again.
References Cited (Backward Citations)
US4403285A
Cited
US4189771A
Cited
US4494193A
Cited
US4791554A
Cited
JPS62208139A
Cited
JPS6352263A
Cited
US5016167A
Cited
US5274809A
Cited
JPH0277868A
Cited
JPH0277960A
Cited
US5161227A
Cited
US5377351A
Cited
US5440743A
Cited
US5285528A
Cited
US5442763A
Cited
USPTO Annuity & Maintenance Windows
| Annuity Stage | Window Opens | Payment Deadline | Surcharge Period Until | Estimated Fee | Status |
|---|---|---|---|---|---|
| 3.5 Years (Year 4) | 2001-11-30 | 2002-06-01 | 2002-12-01 | $2000.00 | Window Closed / Lapsed |
| 7.5 Years (Year 8) | 2005-11-30 | 2006-06-01 | 2006-12-01 | $3760.00 | Window Closed / Lapsed |
| 11.5 Years (Year 12) | 2009-11-30 | 2010-06-01 | 2010-12-01 | $7700.00 | Window Closed / Lapsed |