Unlock instant, AI-driven research and patent intelligence for your innovation.

Multi-thread deadlock problem positioning method and multi-thread deadlock problem positioning system based on LINUX

A positioning method and multi-threading technology, applied in the direction of multi-program device, program synchronization, program control design, etc., can solve the problems of excessive log information, difficult analysis and definition, and missing logs, so as to reduce printing information and facilitate positioning Effect

Pending Publication Date: 2020-08-14
HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Some locks are frequently acquired and released. If you use the method of adding and printing log information, it will cause too much log information and cause log loss.
Excessive printing of log information will also make it difficult to analyze and define problems

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
  • Multi-thread deadlock problem positioning method and multi-thread deadlock problem positioning system based on LINUX
  • Multi-thread deadlock problem positioning method and multi-thread deadlock problem positioning system based on LINUX
  • Multi-thread deadlock problem positioning method and multi-thread deadlock problem positioning system based on LINUX

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is an embodiment of a part of the application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0038] It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances for...

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 invention discloses a multi-thread deadlock problem positioning method based on LINUX. The method comprises the steps of starting a timer before a critical zone code enters a critical zone of lockprotection; in an expiration processing function of the timer, saving a deadlock site, and adding debugging information; reproducing a deadlock phenomenon; analyzing output information of the expiration function; obtaining an analysis result; and positioning the position and reason of deadlock according to the analysis result. Compared with the prior art, the multi-thread deadlock positioning method has the following beneficial effect that the multi-thread deadlock is positioned through the linux timer and the expiration processing function of the timer. Some useless printing information is greatly reduced, and positioning is facilitated.

Description

technical field [0001] The present application relates to the embedded field, and in particular, relates to a method for locating a multi-thread deadlock problem based on LINUX. Background technique [0002] Multiple tasks accessing some shared resources (global variables, linked lists, etc.) in linux at the same time without mutual synchronization will cause linux to enter an unstable competitive state; the use of locks in linux is to protect these shared resources. Synchronize multitasking access to shared resources. [0003] Improper use of locks may lead to deadlocks (if the lock is not released, other tasks cannot acquire the lock and cannot run). For example, the recursive use of locks (if the lock has been obtained, apply for the use of the lock); sleep in the code that owns the lock (when the lock is obtained, the function that will cause the task to sleep is called); When the code in the critical section protected by the lock is executed, the task is preempted. L...

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): G06F9/52
CPCG06F9/524
Inventor 熊兵
Owner HANGZHOU TUYA INFORMATION TECH CO LTD