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

Thread management method and device

A thread management and thread technology, applied in the computer field, can solve problems such as high real-time requirements and task delay processing.

Inactive Publication Date: 2016-10-12
SHENZHEN LONGRISE SCI & TECH
View PDF5 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a thread management method and device, the main purpose of which is to solve the technical problem in the prior art that tasks with high real-time requirements are delayed in processing

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
  • Thread management method and device
  • Thread management method and device
  • Thread management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0050] The invention provides a thread management method. refer to figure 1 Shown is a flow chart of the first embodiment of the thread management method of the present invention.

[0051] In this embodiment, the thread management method includes:

[0052] Step S10, if a task processing request is received, determine the tasks included in the task processing request, as well as the task type and task identifier of the tasks.

[0053] Step S20, judging whether there is an idle thread matching the task type in the thread pool.

[0054] In this embodiment, for the assigning party of the task, when assigning the task, it is necessary to add the task type and the task identification of the task in the task processing request, wherein the task type is used to determine which threads the task needs to be assigned to Proces...

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 discloses a thread management method. The method comprises the following procedures: if a task processing request is received, determining a task included in the task processing request and the task type as well as the task ID of the task; judging whether a free thread matching the task type exists in a thread pool; if the free thread matching the task type does not exist in the thread pool, determining the priority weight of the task based on the task ID; when the priority weight is greater than a preset weight, building a new thread matching the task type in the thread pool and distributing the task to the newly built thread for processing. The invention also discloses a thread management device. According to the thread management method and device, the technical problem that the task with a high requirement on real-time performance is delayed for processing in the prior art is solved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a thread management method and device. Background technique [0002] With the rapid development of computer technology, cloud computing has gradually become the focus of the industry. Major companies have joined the research field of cloud computing and put cloud computing services into science, culture, education, health, government, e-commerce, high-tech Performance computing, Internet of Things and other fields are used. [0003] At present, the cloud data center management platform ensures that when a task is received, the task is dispatched to the thread pool for execution by establishing a thread pool. A thread is sometimes called a lightweight process and is the smallest unit of program execution flow. A standard thread consists of a thread ID, current instruction pointer, register set, and stack. In addition, a thread is an entity in a process, and it is the basic uni...

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/48G06F9/50
CPCG06F9/4881G06F9/5038G06F2209/484G06F2209/5018G06F2209/5021
Inventor 张锐
Owner SHENZHEN LONGRISE SCI & TECH
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