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

Monitoring method and device of main thread of application program

An application, main thread technology, applied in hardware monitoring, instrumentation, electrical digital data processing, etc., can solve the problems of low efficiency of monitoring methods, and achieve the effect of improving efficiency

Active Publication Date: 2018-02-23
HISENSE VISUAL TECH CO LTD
View PDF4 Cites 2 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
  • Monitoring method and device of main thread of application program
  • Monitoring method and device of main thread of application program
  • Monitoring method and device of main thread of application program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. . Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within 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 sends a specific identifier to the main thread of the application, so that the main thread saves the specific identifier after receiving the specific identifier; wherein the specific identifier is gener...

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 that implement 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 application running in the operating system and interacting with the user, the problem of application unresponsiveness often occurs due to resource and other issues causing the operation to time out. In the prior art, the operating system is used to monitor the running status of the application. For example, if the operating system detects that an interface of the application has not been processed for more than 5 seconds, it...

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/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