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

Method and device for monitoring blockage of main thread

A main thread, non-blocking technology, applied in the computer field, can solve the problems of not considering the application program to return to normal, unable to monitor the main line blocking of the application program, affecting the user experience, etc., to achieve the effect of reducing the probability of failure

Inactive Publication Date: 2018-01-16
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of implementing the present invention, the inventor found that the watchdog plug-in can only monitor the blocking of several key functions triggered by events such as when the application starts or the background returns to the foreground, and cannot monitor the main line blocking in the entire life cycle of the application situation, and when blocking is detected, the watchdog plug-in will actively terminate the application, regardless of whether the application can return to normal later, which affects the user experience

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 monitoring blockage of main thread
  • Method and device for monitoring blockage of main thread
  • Method and device for monitoring blockage of main thread

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0057] figure 1 An exemplary system architecture 100 to which the method for monitoring main thread blocking or the device for monitoring main thread blocking of the embodiment of the present invention can be applied is shown.

[0058] Such as figure 1 As shown, the system architecture 100 may include terminal devices 101 , 102 and 103 , a network 104 and a server 105 . ...

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 method and a device for monitoring the blockage of a main thread, and relates to the technical field of computers. One specific implementation way of the method comprises thefollowing steps that: executing the following monitoring processes: adding a variable change function into the execution queue of the monitored main thread, wherein the variable change function is used for changing the preset value of a blockage judgment variable; and after a preset time interval, checking whether the value of the blockage judgment variable is changed or not, and when the value of the blockage judgment variable is not changed, determining that the main thread is subjected to blockage. By use of the implementation way, a main thread blockage situation during a whole application use period can be monitored, and user experience is not affected.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for monitoring main thread blocking. Background technique [0002] On a device running the iOS system, if the main thread is blocked during the running of the application, the iOS device will become unresponsive, and there will be an "app stuck" that does not respond to any screen updates or events such as touch, screen rotation, or key presses. Ton" phenomenon. This kind of situation in the application will have a very bad impact on the user experience, and may even cause the user to no longer use the application. Although the blocking of the main thread can lead to such serious consequences, any test and code inspection cannot guarantee that there are absolutely no problems in the application. Therefore, it is very important to establish a complete monitoring mechanism. [0003] In the absence of any additional monitoring mechanism, if the application fr...

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 Applications(China)
IPC IPC(8): G06F11/07G06F11/36
Inventor 吴迪程剑锋朱孝瑾王孝满袁连松
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products