Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for deadlock detection

A deadlock detection and deadlock technology, applied in the computer field, can solve the problems of large time consumption and system resources, large amount of code, and large number of resource lock requirements, so as to save time, save system resource consumption, and achieve high detection performance. Effect

Inactive Publication Date: 2014-04-30
SHANGHAI HUAWEI TECH CO LTD
View PDF3 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for many large-scale computer programs, the amount of code is large, and there are many processes and threads involved in the operation, so the demand for resource locks is also large, making it difficult to generate resource lock graphs and search for deadlocks from resource lock graphs. The operation takes a lot of time and system resources, and the performance is not very good

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for deadlock detection
  • Method and device for deadlock detection
  • Method and device for deadlock detection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0057] An embodiment of the present invention provides a deadlock detection device, the structure schematic diagram is as follows figure 1 shown, including:

[0058] The storage unit 13 is used to store the usage information of the resource locks of each application program, the usage information includes occupation information and / or waiting information, etc., and also includes time information of the resource locks, such as starting operation (occupancy or waitin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention discloses a method and device for deadlock detection and is applied to the technical field of computer. According to the deadlock detection method, use information of resource locks used in the running process by threads / processes of every application program is stored in the deadlock detection device, so that when the stored resource locks are mutually exclusive locks and operation time of the resource locks is longer than or equal to preset time, the deadlock detection device can obtain occupation information and / or waiting information of the resource locks and judge whether the resource locks are deadlocks, and if the resource locks are the deadlocks, information for showing that the resource locks are the deadlocks is output. As long as the operation time of the resource locks meets certain time, the possibility that the resource locks are the deadlocks is high, whether the resource locks are the deadlocks is further determined, people do not need to search the resource locks which are the deadlocks out of a resource lock map corresponding to the application program, deadlock detection time can be saved, resource consumption can be reduced, and the detection performance is high.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a deadlock detection method and device. Background technique [0002] Multi-process / thread deadlock in computer programs refers to an abnormal phenomenon in which two or more processes / threads are waiting for each other to use shared resources due to competition for shared resources during the execution process, usually causing the entire computer to The program's service is paralyzed (hanged). Generally, the occurrence of deadlock mainly has the following types: mutual exclusion, circular waiting, partial allocation, and lack of priority. [0003] In the process of computer program development and design, in order to avoid deadlock, it is necessary to improve from the prevention and detection links. In the prior art, the detection of deadlock is mainly to monitor the process / thread to obtain resource lock information, and then establish a resource lock map , judging whether ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36G06F9/46
Inventor 陈凯
Owner SHANGHAI HUAWEI TECH CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More