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

A method and device for monitoring the main thread of an application program

A technology of application programs and main threads, applied in hardware monitoring, instrumentation, error detection/correction, etc., can solve the problems of low efficiency of monitoring methods and achieve the effect of improving efficiency

Active Publication Date: 2021-01-01
HISENSE VISUAL TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and device for monitoring the main thread of an application program to solve the problem of low efficiency in the monitoring method for the main thread of an application program in the prior art

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
  • A method and device for monitoring the main thread of an application program
  • A method and device for monitoring the main thread of an application program
  • A method and device for monitoring the main thread of an application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0024] Such as figure 1 As shown, a method for monitoring the main thread of an application program in an embodiment of the present invention includes:

[0025] Step 101, the asynchronous monitoring thread corresponding to the application program sends a specific identifier to the main thread of the application program, so that the main thread saves it after receiving the specific identifier; wherein, the specific identifier is generated b...

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 relates to the technical field of system application development, in particular to a monitoring method and device of a main thread of an application program. The monitoring method and device are used for solving the problem in the prior art that a monitoring method of the main thread of the application program is low in efficiency. According to the embodiment, an asynchronous monitoring thread sends a specific identification to the main thread, so that the main thread stores the specific identification after receiving the specific identification; after a preset duration for sending the specific identification to the main thread is reached, the asynchronous monitoring thread reads the last identification information stored by the main thread; if the identification content corresponding to the read identification information is different from the specific identification, it is determined that the main thread enters a congestion state. By means of the monitoring method and device of the main thread of the application program, since one asynchronous monitoring thread is set for each application program to be used for monitoring the running state of the main thread of thecorresponding application program, when the main thread is congested, the congestion can be detected within a short time, and thus the efficiency of monitoring the running state of the main thread isimproved.

Description

technical field [0001] The invention relates to the technical field of system application development, in particular to a method and device for monitoring the main thread of an application program. Background technique [0002] With the development of information technology, smart terminals have become an indispensable part of people's work and life. There are application programs for implementing various tasks in the smart terminal. After the application programs are started, each application program corresponds to a main thread. [0003] During the process of the application program running in the operating system and interacting with the user, the problem that the application program does not respond often occurs due to resources and other issues that cause the operation to time out. In the prior art, the operating system is used to monitor the running status of the application program. For example, if the operating system detects that a certain interface of the applicat...

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): G06F11/30
CPCG06F11/302G06F11/3055G06F11/3089
Inventor 卢可敬程晋盛喜玉
Owner HISENSE VISUAL 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