Method and device for managing threads

A thread management and thread technology, applied in the field of thread management, can solve problems such as background resource occupation, affecting product detection efficiency, etc., and achieve the effect of improving speed and efficiency

Inactive Publication Date: 2017-05-10
LAUNCH SOFTWARE DEV
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of the present invention is to provide a thread management method and device, aiming to solve the technical problem of creating and allocating detection threads infinitely in the prior art, which leads to a large amount of background resources being occupied and seriously affects the product detection 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
  • Method and device for managing threads
  • Method and device for managing threads
  • Method and device for managing threads

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0040] refer to figure 1 , figure 1 It is a schematic flowchart of an embodiment of the thread management method of the present invention. In this embodiment, the thread management method includes:

[0041] Step S10, monitoring whether there are currently idle threads and new product detection tasks;

[0042] In this embodiment, the monitoring method can be real-time monitoring or monitoring every preset time period, and there is no limit to the preset time period, such as every 1 minute or 10 minutes. In this embodiment, the thread is specifically used to execute product detection tasks.

[0043] In this embodiment, an idle thread specifically refers to a thread that has not performed a product detection task, for example, a thread that has not performed a product detection task from the beginning, or a thread th...

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 method for managing threads, and is applied to product detection. The method comprises the following steps: step S1, monitoring whether an idle thread or a new product detection task exists at present; step S2, if the idle thread exists but the new product detection task does not exist at present, enabling the idle thread to be dormant; step S3, if the idle thread does not exist but the new production detection task exists at present, judging whether the dormant thread exists at present; step S4, if the dormant thread exists at present, awaking the dormant thread at present, and distributing the awaken thread to the new product detection task; and step S5, executing the step S1 until product detection is finished. The invention further discloses a device for managing the threads. The resource occupancy rate of detected products can be reduced, and hen the product detection speed is increased.

Description

technical field [0001] The invention relates to the field of thread management, in particular to a thread management method and device. Background technique [0002] At present, in the task thread allocation technology for product detection, a new detection thread is usually created when a detection task comes. At the same time, in the existing technology, even if the detection On state. Therefore, if there are too many new detection tasks generated at the same time and new detection threads are still used to allocate processing, it will cause a large amount of background resources to be occupied, which will seriously affect the efficiency of product detection. Contents of the invention [0003] The main purpose of the present invention is to provide a thread management method and device, aiming to solve the technical problem in the prior art that creating and allocating detection threads infinitely, which leads to a large amount of background resources being occupied and...

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/44
CPCG06F9/4418
Inventor 刘均庄文龙
Owner LAUNCH SOFTWARE DEV
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