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

Task processing method and server

A task processing and server technology, applied in the field of data processing, can solve problems such as reducing task processing efficiency and consuming resources

Inactive Publication Date: 2016-06-29
AGRICULTURAL BANK OF CHINA
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen that in the existing task processing method, the server is busy with thread start-stop switching, which consumes a lot of resources, which will undoubtedly greatly reduce the 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
  • Task processing method and server
  • Task processing method and server
  • Task processing method and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] 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.

[0040] The following is an introduction to the specific content of the embodiments.

[0041] An embodiment of the present invention provides a task processing method, and the method is applied to a task processing server. refer to figure 1 , which is a flowchart of a task processing method provided by an embodiment of the present invention, the method includes:

[0042] S101: After the current task of any thread in the task processing server is completed, the thread scans a preset...

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 present invention discloses a task processing method, the method is applied to a task processing server, and the method includes: when the current task of any thread in the task processing server is completed, the thread executes the preset task queue Scanning, the task queue is used to store tasks to be executed; when there is a task to be executed in the task queue, the thread takes a task to be executed from the task queue for processing. The thread of the present invention will not be released immediately after the current task processing is completed, but will actively access the task list after the current task processing is completed, and take out new tasks from the task list to perform a new round of task processing. The invention can reduce the number of thread releases and starts, thereby improving the processing efficiency of tasks.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a task processing method and a server. Background technique [0002] With the rise of big data analysis, a large amount of business data has been generated in various information systems. As the amount of data in the system doubles, a large number of tasks such as data query and data statistics need to be processed. [0003] A large number of tasks will undoubtedly cause great pressure on the server processing the task. In the existing task processing method, after the server passively receives the assigned task, it starts a new thread to process the task, and releases the thread after the task is processed. Waiting for the next task assignment. [0004] It can be seen that in the existing task processing method, the server is busy with thread start-stop switching, which consumes a lot of resources, which will undoubtedly greatly reduce the task processing efficiency. Contents ...

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/48
CPCG06F9/4881
Inventor 李晓轩杨声钢和宏涛薛飞
Owner AGRICULTURAL BANK OF CHINA
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