Coroutine-based data processing method and device, computer equipment and storage medium

A data processing and coroutine technology, applied in the field of data processing, can solve problems such as low computing efficiency

Pending Publication Date: 2020-04-28
PING AN TECH (SHENZHEN) CO LTD
View PDF7 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Embodiments of the present invention provide a data processing method, device, computer equipment, and storage medium based on coroutines, aiming to solve the problem that a large amount of data is involved when the server receives a large number of data calculation and processing tasks in the prior art and performs calculations through execution threads. I / O operations, resulting in low computational efficiency

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
  • Coroutine-based data processing method and device, computer equipment and storage medium
  • Coroutine-based data processing method and device, computer equipment and storage medium
  • Coroutine-based data processing method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. 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.

[0031] It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and / or collections thereof.

[0032] It should also be understood that the terminology 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
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a coroutine-based data processing method and device, computer equipment and a storage medium. The method comprises the steps of receiving task set data sent by an uploading end; counting the total number of calculation tasks in the task set data to create coroutines with the same number as the total number of the tasks, and correspondingly allocating one calculation task toeach coroutine; generating a corresponding dynamic link library file according to the computing task correspondingly distributed by each coroutine; if a calling instruction of a JNI interface corresponding to the dynamic link library files is detected, starting coroutines according to the dynamic link library files respectively, operating calculation tasks in the task set data through the coroutines respectively, obtaining calculation results corresponding to the calculation tasks, and forming a calculation result set is formed; and sending the calculation result set to the uploading end. According to the method, the coroutine participates in calculation so as to reduce I / O blockage in a server, the utilization rate of a CPU in the server is also reduced, and the calculation efficiency isimproved.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a coroutine-based data processing method, device, computer equipment and storage medium. Background technique [0002] At present, when the server receives a large number of data calculation and processing tasks, since the server can only execute threads, once it encounters I / O operations (that is, data input / output), it will not switch from the application level control to improve computing efficiency. . If the data calculation processing task involves a large number of I / O operations, this will lead to the use of threads in the server for calculation, which cannot improve the calculation efficiency. Contents of the invention [0003] Embodiments of the present invention provide a coroutine-based data processing method, device, computer equipment, and storage medium, aiming to solve the problem that a large number of data processing tasks are involved in the p...

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): G06F9/448
CPCG06F9/448
Inventor 陈飞
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products