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

Data processing method and data processing device

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

Active Publication Date: 2014-12-17
ZHUHAI BAOQU TECH CO LTD
View PDF4 Cites 20 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
  • Data processing method and data processing device
  • Data processing method and data processing 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 a data processing device. The method comprises the following steps that a main thread in a main process receives a target CPU (central processing unit) intensive task, and a target data processing task obtained through encapsulating the target CPU intensive task is submitted into a task request queue; after a work thread reaches the preset processing occasion, the target data processing task in the task request queue is transferred into a task processing queue, a pre-built code executing engine runs, a logic function in a preset logic function storage file is called on the basis of the target data processing task in the task processing queue, and the main thread is notified after the execution of the target CPU intensive task is completed; the main thread receives the notification which is relevant to the task execution completion and is sent by the work thread, and a result corresponding to the target CPU intensive task is obtained. The scheme has the advantages that when a task blockage problem is solved, meanwhile, the system resource occupation rate is reduced, and the task processing efficiency is improved.

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
IPC IPC(8): G06F9/46
Inventor 尤嘉
Owner ZHUHAI BAOQU 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