Method and device for detecting deadlock in application

A deadlock and device technology, applied in the computer field to improve user experience and efficient detection

Active Publication Date: 2021-02-12
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] An object of this application is to provide a method and device for detecting deadlocks in applications to solve the problem of accurately and efficiently detecting deadlocks

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 detecting deadlock in application
  • Method and device for detecting deadlock in application
  • Method and device for detecting deadlock in application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The application will be described in further detail below in conjunction with the accompanying drawings.

[0027] In a typical configuration of the present application, the terminal, the device serving the network and the trusted party all include one or more processors (CPUs), input / output interfaces, network interfaces and memory.

[0028] Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and / or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

[0029] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random acce...

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

The application aims to provide a method and equipment for detecting deadlock in an application. In comparison with the prior art, the application is characterized in that a lock tracking configuration operation is executed to a target application; multiple pieces of lock operation information during running of the target application are acquired; and whether deadlock exists in the target application is determined through detection of the multiple pieces of lock operation information. According to the application, arbitrary lock operations are tracked through dynamic modification of an application program execution code; lock operations customized by a user can be tracked; then whether the deadlock exists is determined according to lock operation tracking results; and thus, a deadlock problem can be detected accurately and efficiently, and the user's experience is improved. In addition, potential deadlock conditions of the application include the condition that unreleased locks exist during switching of a previous coroutine task when the coroutine task switching happens in a same physical thread. The problem of deadlock in coroutines can be detected.

Description

technical field [0001] The present application relates to the field of computers, in particular to a technology for detecting deadlock in applications. Background technique [0002] Different from general single-threaded application development, multi-threaded program development needs to consider more issues, such as common potential inter-thread interaction issues. For resources accessed concurrently by multiple threads, if there is no protection of mutual exclusion operations, competition conflicts will occur, and multi-threads will cause application exceptions due to mutual influence, and the running results will be unreliable. For this reason, resource protection locks are used to solve such problems. However, in a multi-threaded application, due to the use of locks or the order of multi-lock locks, the application may be deadlocked, causing the thread to hang and the program to fail to run normally. [0003] The deadlock problem is one of the most difficult problems ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/52
CPCG06F9/524
Inventor 赵树起
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products