A data processing method and device

A data processing and target data technology, applied in the field of data processing, can solve problems such as high system resource occupancy, low inter-process communication efficiency, task blocking, etc., to reduce system resource occupancy, improve task processing efficiency, and solve tasks blocking effect

Active Publication Date: 2017-12-01
ZHUHAI BAOQU TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Although the existing method of opening up a new process solves the problem of task blocking to a certain extent, opening up a new process will bring the following problems: (1) the system resource occupancy rate is large; (2) due to the low efficiency of inter-process communication lead to lower task processing 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
  • A data processing method and device
  • A data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] 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 only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0051] In order to reduce the occupation rate of system resources and improve the efficiency of task processing while solving the problem of task blocking, the embodiments of the present invention provide a data processing method and device.

[0052] For the sake of clarity, a data processing method provided by an embodiment of the present invention is firstly introduced below.

[0053] Those skilled in the art can understand that, for an application program, it co...

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 embodiment of the invention discloses a data processing method and device. The method includes: the main thread in the main process receives the target CPU-intensive task, and submits the target data processing task encapsulated by the target CPU-intensive task to the task request queue; The target data processing tasks in the request queue are transferred to the task processing queue, and the pre-established code execution engine is run. Based on the target data processing tasks in the task processing queue, the preset logic function is called to store the logic function in the file. When the target CPU is intensive Notify the main thread after the task is executed; the main thread receives the notification from the worker thread about the completion of the task, and obtains the corresponding result of the target CPU-intensive task. While solving the problem of task blocking, this solution reduces the occupancy rate of system resources and improves the efficiency of task processing.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a data processing method and device. Background technique [0002] Node.js is an event-driven I / O server-side JavaScript environment based on Google's v8 engine, which aims to provide scalable network programs, such as web services. [0003] In practical applications, Node.js is mainly suitable for data-intensive real-time interactive application scenarios, that is, building data-intensive real-time applications based on Node.js. Among them, the main thread in the main process of the built data-intensive real-time application processes the data-intensive tasks in the corresponding task queue in order, and, before any of the tasks themselves are completed, other tasks cannot be executed. Among them, it is specifically reflected in that functions such as callbacks, listeners, timeouts, and nextTick() of other tasks do not have the opportunity to run. [0004] Among them, data-inten...

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/46
Inventor 尤嘉
Owner ZHUHAI BAOQU TECH 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