Thread management method and system

A thread management and thread technology, applied in the computer field, can solve problems such as easy confusion of thread management

Inactive Publication Date: 2016-08-31
SHENZHEN LONGRISE SCI & TECH
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The main purpose of the present invention is to provide a thread management method and system, aiming to s...

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0049] As the number of threads increases in the prior art, task allocation becomes complicated, and thread management is also prone to confusion.

[0050] see figure 1 , is a schematic flow chart of the thread management method in the first embodiment of the present invention, the thread management method includes:

[0051] Step 101. If a task processing request is received, determine the first task included in the task processing request and the task type of the first task;

[0052] Step 102. Using the set thread state management list, determine whether there is a first thread that is idle and capable of processing task types. The thread state management list includes thread identifiers, task types that can be processed, and current state;

[0053] Step 103, if there is a first thread, assign the first task to the...

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 steps of if a task processing request is received, determining a first task contained in the task processing request and a task type of the first task; by utilizing a set thread state management list, determining whether a first thread set in an idle state and capable of processing the task type exists or not, wherein the thread state management list contains identifiers, processable task types and current states of threads; if the first thread exists, allocating the first task to the first thread and processing the first task by the first thread; and changing a state of the first thread in the thread state management list to a busy state from the idle state. The invention furthermore discloses a thread management system. The threads are managed by utilizing the thread state management list, so that ordered thread management and quick task allocation can be realized.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a thread management method and system. 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 establishes a thread pool to ensure that when a task is received, the task is dispatched to the thread pool for execution. [0004] A thread, sometimes called a Light Weight Process (LWP), is the smallest unit of program execution flow. A standard thread consists of thread ID, current instruction pointer (PC), register set and stack. In addition, a thread is an entity in a process, and it is t...

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/46G06F9/48
CPCG06F9/466G06F9/485
Inventor 张锐
Owner SHENZHEN LONGRISE SCI & TECH
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