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

Task monitoring method and device

A technology of monitoring method and monitoring device, which is applied in the direction of program code conversion, creation/generation of source code, instruments, etc., can solve problems such as error-prone, code redundancy, high learning cost, etc., to reduce redundancy and realize code reuse , The effect of reducing the cost of learning

Active Publication Date: 2019-12-13
NEUSOFT CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the first way, it is easy to make mistakes in the process of implementing the task monitoring code, and the code is redundant and cannot be reused
In the second way, RXJAVA needs to be integrated, and it takes a high learning cost

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
  • Task monitoring method and device
  • Task monitoring method and device
  • Task monitoring method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

[0058] figure 1 It is a schematic flowchart of a task monitoring method proposed by an embodiment of the present invention.

[0059] The embodiments of the present invention can be applied, for example, in the process of sending a request for loading data from a front-end interface of an electronic device to a back-end server, and triggering a loading task according to th...

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 provides a task monitoring method and apparatus. The task monitoring method comprises the steps of monitoring whether a task generates a preset event or not; when the task generates the preset event, obtaining a subscript value of a bit, occupied by the task, of a task state register, and performing setting processing on the bit according to the subscript value; and triggering call of a callback interface to enable a front-end interface loading the task to perform interface operation corresponding to the preset event. Through the method and the apparatus, the redundancy of task monitoring codes can be reduced and code reuse is realized, so that the learning cost of the task monitoring codes is effectively reduced.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a task monitoring method and device. Background technique [0002] In some application scenarios, for example, when the user clicks on an application in the electronic device, the application will read the data that needs to be loaded from the background server. When the process of loading data triggers multiple asynchronous concurrent tasks, multiple Asynchronous concurrent tasks to monitor. [0003] In related technologies, flag bits are usually added in the implementation of task monitoring code, for example, adding a Boolean flag bit in the implementation of task monitoring code to mark whether all tasks have been executed, or using RXJAVA to implement merging multiple requests into a chain implement. [0004] In the first way, it is easy to make mistakes in the process of implementing the task monitoring code, and the code is redundant and cannot be reused. I...

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): G06F8/36G06F8/30G06F8/41
CPCG06F8/315G06F8/36G06F8/4435
Inventor 秦瑀阳乔立君
Owner NEUSOFT CORP