Processing method and apparatus of concurrent tasks

A processing method and task technology, applied in the field of communication, can solve the problems of busy system scheduling and low efficiency, and achieve the effects of rapid turnaround, enhanced processing capacity, and increased quantity.

Inactive Publication Date: 2015-05-06
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method of concurrent processing needs to create more threads, and too many threads will lead to busy system scheduling and low 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
  • Processing method and apparatus of concurrent tasks
  • Processing method and apparatus of concurrent tasks
  • Processing method and apparatus of concurrent tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] figure 1 A flowchart of a method for processing concurrent tasks provided in Embodiment 1 of the present invention, such as figure 1 As shown, the method includes:

[0019] Step 101: The task scheduler allocates a first thread to a first task that has reached a predetermined running condition, so that the first thread processes the first task, where the first task is one of the recorded concurrent tasks.

[0020] It should be noted here that the task scheduler will periodically traverse all the tasks in the recorded concurrent tasks, and once a task is found to meet the predetermined running conditions of the task, an idle thread will be allocated to the task. The first task is a reference to any one of the recorded concurrent tasks, and the first thread is also a reference to any one of the idle threads, which is not intended to limit the protection scope of the present application. In this embodiment of the present invention, all tasks may be recorded in a task data...

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 provides a method and apparatus for processing concurrent tasks. The method includes: distributing a first thread to a first task, which has met a pre-determined operating condition, so that the first thread processes the first task, the first task being one of recorded concurrent tasks; and if the first task has a sub-task, distributing a second thread to the sub-task when the sub-task meets the pre-determined operating condition, recording the processing progress of the first task and then releasing the first thread. The apparatus comprises a distribution module and a release module.

Description

technical field [0001] The present invention relates to communication technology, and in particular, to a method and device for processing concurrent tasks. Background technique [0002] In service-oriented architecture (Service-Oriented Architecture, SOA) applications in the field of Internet technology (Internet Technology, referred to as: IT), especially in web service (WebService) applications, a large number of concurrent tasks will be encountered. In order to improve user experience or system response speed, service providers usually perform concurrent processing on these concurrent tasks. [0003] For concurrent processing of concurrent tasks, it is generally implemented in a multi-threaded manner. For example, when concurrent tasks are received, each task is handed over to an idle thread. After the thread is started, it is processed according to the task request until the thread is released after the task ends. This concurrent processing method needs to create more...

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/38
CPCG06F9/4843
Inventor 袁学文
Owner HUAWEI 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