Task processing method, device and equipment and storage medium

A task processing and task technology, applied in the computer field, can solve problems such as thread resources cannot be fully utilized

Active Publication Date: 2019-05-17
ZEBRED NETWORK TECH CO LTD
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a task processing method, device, equipment, and storage medium, aiming to solve the technical problem that the existing task processing method adopts an independent processing mode, which leads to the inability to fully utilize thread resources in the system

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, device and equipment and storage medium
  • Task processing method, device and equipment and storage medium
  • Task processing method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. 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.

[0036] The present invention provides a task processing method, device, equipment and storage medium, aiming to solve the technical problem that the existing task processing method adopts an independent processing mode, which leads to the inability to fully utilize thread resources in the system.

[0037] figure 1 It is a schematic flowchart...

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 provides a task processing method and device, equipment and a storage medium, and the method comprises the steps of obtaining the priority order of a task set in a middle layer service of a computer system, the task in the task set comprising a timer task and a request task; allocating the tasks in the task set to the first thread and the second thread according to the priority order, each task in the task set being allocated to one thread; obtaining a busy and idle state of the first thread and a busy and idle state of the second thread, the busy and idle state at least comprising a busy state and an idle state; and when the busy and idle states of the first thread are different from the busy and idle states of the second thread, adjusting the number of the first thread processing tasks and the number of the second thread processing tasks to enable the thread in the busy state to distribute the unprocessed tasks to the thread in the idle state; and allocating the unprocessed tasks to other threads, and processing the tasks in time. According to the present invention, the timer task and the request task thread are shared, so that the thread utilization rate is increased.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a task processing method, device, equipment and storage medium. Background technique [0002] In a computer system, the middle layer service is a bridge between the upper layer application and the underlying hardware. Each service needs to process a large number of requests from the upper layer application and the underlying hardware. These requests are usually abstracted into a unified task for processing. At the same time, some tasks need to be guaranteed to run periodically, so a timer needs to be set in the system service. [0003] In order to ensure the timeliness of task processing and not block the normal logic of the main thread, these tasks are usually distributed to task threads for asynchronous processing. At the same time, some tasks need to be guaranteed to run periodically, so a timer needs to be set in the system service. When the computer system encoun...

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/48G06F9/50
Inventor 王小念
Owner ZEBRED NETWORK 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