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

A data processing method and device for realizing asynchronous call

An asynchronous call and data processing technology, applied in the field of data processing, can solve problems such as complex methods and low data processing efficiency, and achieve high data processing efficiency

Active Publication Date: 2020-06-05
TENCENT TECH (SHENZHEN) CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing methods for implementing asynchronous calls are relatively complicated, for example, using the thread library provided in jdk to directly asynchronize tasks by using threads or thread pools, or using HandlerThread provided in android sdk to asynchronize tasks , these methods need to write complex asynchronous code, and the data processing efficiency of asynchronous calls is low

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 data processing method and device for realizing asynchronous call
  • A data processing method and device for realizing asynchronous call
  • A data processing method and device for realizing asynchronous call

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0039] The data processing method for implementing asynchronous calls provided by the embodiments of the present invention is applied to the Android system or IOS system, focusing on the simplified realization of asynchronous functions, weighing the amount of code development and the workload of subsequent maintenance work, and simplifying asynchronous development to the greatest extent. , to improve the data processing efficiency for implementing asynchronous calls.

[0040] Embodi...

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 data processing method for realizing asynchronous call. The method comprises the following steps of: a logic controller creates an asynchronous call linked storage structure, wherein the logic controller is created by a system in advance; the logic controller stores a to-be-processed task which comprises at least one callback function into the asynchronous call linked storage structure, and a worker thread is independently distributed to the callback function in the to-be-processed task to obtain a corresponding relationship between the callback function and the worker thread; and when the logic controller receives a preset task execution triggering instruction, one to-be-processed task is taken from the asynchronous call linked storage structure, and the callback function in the to-be-processed task is distributed to the worker thread corresponding to the callback function to be executed. Compared with the prior art, the embodiment of the invention is characterized in that the asynchronous call linked storage structure is used for storing the to-be-processed task, the asynchronous call can be realized without compiling complex asynchronous codes, and meanwhile, the data processing efficiency of asynchronous call is high.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a data processing method and device for realizing asynchronous calling. Background technique [0002] The computer may encounter time-consuming tasks in data processing. When calling such task processing codes, if the system continues to wait, the performance of the program may be seriously affected. For example, if a program needs to open the file to read the data after it is started, and then perform a series of time-consuming initialization tasks based on the data, then the program in the main window of the program cannot be executed in time, causing the main window of the program to be delayed. displayed, degrading the user experience. [0003] At present, the above problems can be easily resolved through the implementation of asynchronous calls. Specifically, the entire initialization processing task can be put into a separate thread, and the system will not continue to wait...

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): G06F9/48
Inventor 苟键俞尚林声炜李宏伟曾勇翟一帆梁祥泰苟晓东陈钟
Owner TENCENT TECH (SHENZHEN) CO LTD