CN106648892A - Allocation processing method and device for detection threads - Google Patents
Allocation processing method and device for detection threads Download PDFInfo
- Publication number
- CN106648892A CN106648892A CN201611142949.0A CN201611142949A CN106648892A CN 106648892 A CN106648892 A CN 106648892A CN 201611142949 A CN201611142949 A CN 201611142949A CN 106648892 A CN106648892 A CN 106648892A
- Authority
- CN
- China
- Prior art keywords
- thread
- task
- product checking
- detection
- product
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5018—Thread allocation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an allocation processing method which is used for detection threads and applied to product detection. The allocation processing method comprises the steps that 1, a fixed number of detection threads for executing a product detection task are established; 2, whether a new product detection task exists or not at present is monitored; 3, if the new product detection task exists at present, whether the total number of the detection threads being executing the product detection task at present reaches the fixed number or not is judged, and a judging result is obtained; 4, allocation processing of the detection threads is conducted according to the judging result; 5, the step 2 is executed and quits until product detection stops. The invention further discloses an allocation processing device for the detection threads. According to the method and device, the resource occupation rate of detected products can be decreased, and then the product detection speed is increased.
Description
Technical field
The present invention relates to thread management technical field, more particularly to the distribution processing method and processing device of detection thread.
Background technology
At present, in for the mission thread distribution technique of Product checking, a Detection task is generally all carried out with regard to newly-built one
Bar detects thread, while in prior art, even if for the detection thread first opened has been completed Detection task, the detection line
Journey is remained in opening.Therefore, if while the new Detection task for producing is excessively and still using newly-built detection thread
To distribute process, then backstage resource will be caused to be taken in a large number, and then have a strong impact on the efficiency of Product checking.
The content of the invention
Present invention is primarily targeted at providing a kind of distribution processing method and processing device of detection thread, it is intended to solve existing
It is unlimited number of newly-built and distribute detection thread in technology, and then cause backstage resource to be taken in a large number and have a strong impact on Product checking
The technical problem of efficiency.
For achieving the above object, the present invention provides a kind of distribution processing method of detection thread, is applied to Product checking, institute
Stating the distribution processing method of detection thread includes:
Step S1, the detection thread for performing Product checking task for setting up fixed qty;
Step S2, monitoring currently whether there is new Product checking task;
If step S3, there is currently new Product checking task, judgement is currently executing the inspection of Product checking task
Whether the sum of survey line journey reaches the fixed qty, and obtains judged result;
Step S4, according to the judged result, carry out detecting that the distribution of thread is processed;
Step S5, execution step S2 are until Product checking is exited when stopping.
Preferably, it is described according to the judged result, carry out detecting that the distribution process of thread includes:
If the sum for being currently executing the detection thread of Product checking task is not up to the fixed qty, will not hold
Arbitrary detection thread of row Product checking task distributes to the new Product checking task.
Preferably, it is described according to the judged result, carry out detecting that the distribution process of thread also includes:
If the sum for being currently executing the detection thread of Product checking task reaches the fixed qty, will be currently new
Product checking task buffer into preset task queue.
Preferably, if the sum of the detection thread for being currently executing Product checking task reaches the fixed number
Amount, then include current new Product checking task buffer to preset task queue:
If the sum for being currently executing the detection thread of Product checking task reaches the fixed qty, according to product
The priority of Detection task and the corresponding relation of cache location, by the new Product checking task buffer into the task queue
Relevant position.
Preferably, when the sum for detecting thread for being currently executing Product checking task reaches the fixed qty,
The distribution processing method of the detection thread also includes:
With the presence or absence of the idle thread of the complete Product checking task of executed in the presently described detection thread of monitoring;
If there is the idle thread of the complete Product checking task of executed in presently described detection thread, sequentially from described
The Product checking task of respective amount is taken out in business queue, and the idle thread is distributed to into the Product checking task of the taking-up.
Further, for achieving the above object, the present invention also provides a kind of distribution processing meanss of detection thread, is applied to
Product checking, the distribution processing meanss of the detection thread include:
Threading models, for setting up the detection thread for performing Product checking task of fixed qty;
Monitoring modular, for monitoring new Product checking task of currently whether there is;
Judge module, for when there is currently new Product checking task, judgement to be currently executing Product checking and appoints
Whether the sum of the detection thread of business reaches the fixed qty, and obtains judged result;
Processing module, for according to the judged result, carrying out detecting that the distribution of thread is processed.
Preferably, the processing module specifically for:
When the sum for detecting thread for being currently executing Product checking task is not up to the fixed qty, will not hold
Arbitrary detection thread of row Product checking task distributes to the new Product checking task.
Preferably, the processing module is specifically additionally operable to:
When the sum for detecting thread for being currently executing Product checking task reaches the fixed qty, will be currently new
Product checking task buffer into preset task queue.
Preferably, the processing module is specifically additionally operable to:
When the sum for detecting thread for being currently executing Product checking task reaches the fixed qty, according to product
The priority of Detection task and the corresponding relation of cache location, by the new Product checking task buffer into the task queue
Relevant position.
Preferably, the monitoring modular is additionally operable to:In the sum of the detection thread for being currently executing Product checking task
When reaching the fixed qty, monitor in presently described detection thread with the presence or absence of the idle line of the complete Product checking task of executed
Journey;
The processing module is additionally operable to:When the free time that there is the complete Product checking task of executed in presently described detection thread
During thread, the Product checking task of respective amount is sequentially taken out from the task queue, and the idle thread is distributed to into this
The Product checking task of taking-up.
In the present invention, new detection thread is not set up when new Product checking task is monitored, but first judge to work as
Before be carrying out Product checking task the sum of detection thread whether reach the number of threads for pre-building, then further according to sentencing
Disconnected result is processed come the distribution for carrying out detecting thread, and then can the distribution that detect thread be intervened to prevent detection line journey
Infinitely increase and cause backstage resource to cause Product checking speed to decline by a large amount of occupancy, so as to improve Product checking relatively
Speed and efficiency.
Description of the drawings
Fig. 1 is the schematic flow sheet of the embodiment of distribution method one of present invention detection thread;
Fig. 2 is the high-level schematic functional block diagram of the embodiment of distribution processing meanss one of present invention detection thread.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of the embodiment of distribution method one of present invention detection thread.In the present embodiment,
The distribution method of detection thread includes:
Step S1, the detection thread for performing Product checking task for setting up fixed qty;
Step S2, monitoring currently whether there is new Product checking task;
In the present embodiment, Product checking task specifically refers to the task detected to product, wherein, Product checking
Task both can be for whole Product checking, or certain detection just for product for.Together
When, for the particular content and form of Product checking task are not limited, such as it is instruction, for program bag etc..Additionally, in the present embodiment
For the monitoring form of monitoring Product checking task is not limited, such as monitor whether there are assignment instructions.
If step S3, there is currently new Product checking task, judgement is currently executing the inspection of Product checking task
Whether the sum of survey line journey reaches fixed qty, and obtains judged result;
In the present embodiment, new detection thread is not set up when new Product checking task is monitored to perform the product
Detection task, but first judge whether the sum of the detection thread for being currently executing Product checking task reaches what is pre-build
The total quantity of thread, and processed come the distribution for carrying out detecting thread according to judged result.In the present embodiment, for what is pre-build
The setting of the total quantity of thread is not limited, and is configured with specific reference to being actually needed for Product checking.
Step S4, according to judged result, carry out detecting that the distribution of thread is processed;
Step S5, execution step S2 are until Product checking is exited when stopping.
In the present embodiment, judged result is specifically included:It is currently executing the sum of the detection thread of Product checking task
Reach fixed qty, be currently executing Product checking task detection thread sum be not reaching to the class of fixed qty two.
The distribution processing mode of the detection thread under different judged results is not limited, and is configured with specific reference to being actually needed.Such as, if working as
Before be carrying out Product checking task detection thread sum reach fixed qty then newly-built new detection thread.
In an alternative embodiment, step S4 includes:If being currently executing the total of the detection thread of Product checking task
Number is not up to fixed qty, then the arbitrary detection thread for being not carried out Product checking task is distributed to into the new Product checking and appoint
Business.Also even it is currently executing the sum for detecting thread that the sum of the detection thread of Product checking task has not up to been set up
Amount, then illustrate the current idle thread for also existing and pre-building but be not carried out Product checking task, therefore, now can be by the free time
Thread distribute to the new Product checking task.
In the present embodiment, new detection thread is not set up when new Product checking task is monitored, but first judged
Be currently executing Product checking task detection thread sum whether reach the number of threads for pre-building, then further according to
Judged result is processed come the distribution for carrying out detecting thread, and then can the distribution that detect thread be intervened to prevent detection line journey
Unlimited increase and cause backstage resource to cause Product checking speed to decline by a large amount of occupancy, improve Product checking so as to relative
Speed and efficiency.
Further alternative, in the embodiment of distribution processing method one of present invention detection thread, above-mentioned steps S4 are also wrapped
Include:
If the sum for being currently executing the detection thread of Product checking task reaches the fixed qty, will be currently new
Product checking task buffer into preset task queue.
In the present embodiment, if the sum for being currently executing the detection thread of Product checking task reaches fixed qty,
When there is no the detection thread of free time, if now newly-built detection thread, may cause backstage resource to be taken in a large number and dropped
Low product detection speed, therefore, the new Product checking task of current generation is cached by the task queue for pre-building.Need
It is noted that the data structure form in the present embodiment for task queue is not limited, such as single-track link table structure, doubly linked list
Structure etc..
For example, before Product checking is carried out, multiple detection threads are pre-build, such as pre-builds 20 detection lines
Journey, then often produce Product checking task and then correspond to one detection thread of distribution, and if currently-established detection thread
It is the allocated to finish, then by the current new Product checking task buffer for producing into task queue, so as to wait detection thread empty
Idle row distribution again.
In the present embodiment, by the detection thread for pre-building fixed qty, lead so as to avoid thread newly-built infinitely
The problem for causing backstage resource Product checking speed is declined after seriously being taken, meanwhile, in the detection thread quilt of fixed qty
When all taking, by task queue to cache other new Product checking tasks, and then process Product checking task is reduced
While amount, with respect to the detection speed of improving product.
It is further alternative, in the embodiment of distribution processing method one of present invention detection thread, it is contemplated that Product checking
During be likely to occur the application scenarios of urgent Detection task, therefore, in the present embodiment, further can be examined according to default product
The priority of survey task and the corresponding relation of cache location, will be corresponding in the new Product checking task buffer to task queue
Position.
For example, can carry out priority setting to Product checking task, such as priority option include high priority with it is common
Priority, wherein, if the priority of Product checking task is high priority, by the Product checking task buffer to task queue
Head-of-line, and if the priority of Product checking task be normal priority, by the Product checking task buffer to task
Queue to tail position.
For example, there is Product checking task A, B, C successively according to head and the tail order in current task queue, then it is new when monitoring
Product checking task D when, whether the priority for first judging Product checking task D is high priority, if so, then by Product checking
Task D is added to the Head-of-line of current task queue, so as to form new task queue D, A, B, C.And if Product checking is appointed
The priority of business D is normal priority, then Product checking task D is added to the tail of the queue position of current task queue, so as to shape
Task queue A, B, C, D of Cheng Xin.
In the present embodiment, by the priority for configuring different product Detection task, so as to can accordingly adjust different product inspection
Sequencing during tasks carrying is surveyed, and then is met under actually used scene for the priority treatment of hot job, improving product
The practicality of detection.
It is further alternative, in the embodiment of distribution processing method one of present invention detection thread, it is being currently executing
When the sum of the detection thread of Product checking task reaches fixed qty, detecting the distribution processing method of thread also includes:
With the presence or absence of the idle thread of the complete Product checking task of executed in monitoring current detection thread;
If there is the idle thread of the complete Product checking task of executed in current detection thread, sequentially from task queue
The Product checking task of respective amount is taken out, and the idle thread is distributed to into the Product checking task of the taking-up.
In the present embodiment, while caching Product checking task in task queue, currently allocated detection line is monitored
With the presence or absence of the idle thread of the complete Product checking task of executed in journey, if there is idle thread, namely exist and can distribute
Detection thread when, from task queue take out Product checking task, and by the free time detection thread distribute to the taking-up
Product checking task.
For example, tetra- detection threads of A, B, C, D have been pre-build, if this four detection threads are all assigned successively product
Product Detection task, then when new Product checking task is detected, by Product checking task buffer to task queue, while prison
Survey the detection of A, B, C, D tetra- threads whether complete Product checking task of executed, it is assumed that A detection threads perform the Detection task that is over,
Then the Product checking task corresponding to the head of the queue of task queue can be taken out, and A is detected into that thread distributes to the product of the taking-up
Detection task, so as to without the need for newly-built new Detection task again, and then prevents from detecting the unlimited increase of thread and causing rear Taiwan investment
Source causes Product checking speed to decline by a large amount of occupancy, so as to the relative speed and efficiency for improving Product checking.
With reference to Fig. 2, Fig. 2 is the high-level schematic functional block diagram of the embodiment of distribution processing meanss one of present invention detection thread.This
In embodiment, detecting the distribution processing meanss of thread includes:
Threading models 10, for setting up the detection thread for performing Product checking task of fixed qty;
Monitoring modular 20, for monitoring new Product checking task of currently whether there is;
In the present embodiment, Product checking task specifically refers to the task detected to product, wherein, Product checking
Task both can be for whole Product checking, or certain detection just for product for.Together
When, for the particular content and form of Product checking task are not limited, such as it is instruction, for program bag etc..Additionally, in the present embodiment
For the monitoring form of monitoring Product checking task is not limited, such as monitor whether there are assignment instructions.
Judge module 30, for when there is currently new Product checking task, judgement to be currently executing Product checking
Whether the sum of the detection thread of task reaches fixed qty, and obtains judged result;
In the present embodiment, new detection thread is not set up when new Product checking task is monitored to perform the product
Detection task, but first judge whether the sum of the detection thread for being currently executing Product checking task reaches what is pre-build
The total quantity of thread, and processed come the distribution for carrying out detecting thread according to judged result.In the present embodiment, for what is pre-build
The setting of the total quantity of thread is not limited, and is configured with specific reference to being actually needed for Product checking.
Processing module 40, for according to judged result, carrying out detecting that the distribution of thread is processed.
In the present embodiment, judged result is specifically included:It is currently executing the sum of the detection thread of Product checking task
Reach fixed qty, be currently executing Product checking task detection thread sum be not reaching to the class of fixed qty two.
The distribution processing mode of the detection thread under different judged results is not limited, and is configured with specific reference to being actually needed.Such as, if working as
Before be carrying out Product checking task detection thread sum reach fixed qty then newly-built new detection thread.
In an alternative embodiment, processing module 40 specifically for:If being currently executing the detection of Product checking task
The sum of thread is not up to fixed qty, then the arbitrary detection thread for being not carried out Product checking task is distributed to into the new product
Detection task.Also even it is currently executing the detection thread that the sum of the detection thread of Product checking task has not up to been set up
Total quantity, then illustrate the current idle thread for also existing and pre-building but be not carried out Product checking task, therefore, now may be used
Idle thread is distributed to into the new Product checking task.
In the present embodiment, new detection thread is not set up when new Product checking task is monitored, but first judged
Be currently executing Product checking task detection thread sum whether reach the number of threads for pre-building, then further according to
Judged result is processed come the distribution for carrying out detecting thread, and then can the distribution that detect thread be intervened to prevent detection line journey
Unlimited increase and cause backstage resource to cause Product checking speed to decline by a large amount of occupancy, improve Product checking so as to relative
Speed and efficiency.
Further, in the embodiment of distribution processing meanss one of present invention detection thread, processing module 40 is specifically also used
In:
When the sum for detecting thread for being currently executing Product checking task reaches the fixed qty, will be currently new
Product checking task buffer into preset task queue.
In the present embodiment, if the sum for being currently executing the detection thread of Product checking task reaches fixed qty,
When there is no the detection thread of free time, if now newly-built detection thread, may cause backstage resource to be taken in a large number and dropped
Low product detection speed, therefore, the new Product checking task of current generation is cached by the task queue for pre-building.Need
It is noted that the data structure form in the present embodiment for task queue is not limited, such as single-track link table structure, doubly linked list
Structure etc..
For example, before Product checking is carried out, multiple detection threads are pre-build, such as pre-builds 20 detection lines
Journey, then often produce Product checking task and then correspond to one detection thread of distribution, and if currently-established detection thread
It is the allocated to finish, then by the current new Product checking task buffer for producing into task queue, so as to wait detection thread empty
Idle row distribution again.
In the present embodiment, by the detection thread for pre-building fixed qty, lead so as to avoid thread newly-built infinitely
The problem for causing backstage resource Product checking speed is declined after seriously being taken, meanwhile, in the detection thread quilt of fixed qty
When all taking, by task queue to cache other new Product checking tasks, and then process Product checking task is reduced
While amount, with respect to the detection speed of improving product.
Further, in another embodiment of distribution processing meanss of present invention detection thread, processing module 40 is specifically also
For:
When the sum for detecting thread for being currently executing Product checking task reaches the fixed qty, according to product
The priority of Detection task and the corresponding relation of cache location, by the phase in the new Product checking task buffer to task queue
Answer position.
For example, can carry out priority setting to Product checking task, such as priority option include high priority with it is common
Priority, wherein, if the priority of Product checking task is high priority, by the Product checking task buffer to task queue
Head-of-line, and if the priority of Product checking task be normal priority, by the Product checking task buffer to task
Queue to tail position.
For example, there is Product checking task A, B, C successively according to head and the tail order in current task queue, then it is new when monitoring
Product checking task D when, whether the priority for first judging Product checking task D is high priority, if so, then by Product checking
Task D is added to the Head-of-line of current task queue, so as to form new task queue D, A, B, C.And if Product checking is appointed
The priority of business D is normal priority, then Product checking task D is added to the tail of the queue position of current task queue, so as to shape
Task queue A, B, C, D of Cheng Xin.
In the present embodiment, by the priority for configuring different product Detection task, so as to can accordingly adjust different product inspection
Sequencing during tasks carrying is surveyed, and then is met under actually used scene for the priority treatment of hot job, improving product
The practicality of detection.
Further, in another embodiment of distribution processing meanss of present invention detection thread, monitoring modular 20 is additionally operable to:
When the sum for detecting thread for being currently executing Product checking task reaches fixed qty, it is in monitoring current detection thread
The no idle thread that there is the complete Product checking task of executed;
Processing module 40 is additionally operable to:When the idle thread that there is the complete Product checking task of executed in current detection thread
When, the Product checking task of respective amount is sequentially taken out from task queue, and the idle thread is distributed to into the product of the taking-up
Product Detection task.
In the present embodiment, while caching Product checking task in task queue, currently allocated detection line is monitored
With the presence or absence of the idle thread of the complete Product checking task of executed in journey, if there is idle thread, namely exist and can distribute
Detection thread when, from task queue take out Product checking task, and by the free time detection thread distribute to the taking-up
Product checking task.
For example, tetra- detection threads of A, B, C, D have been pre-build, if this four detection threads are all assigned successively product
Product Detection task, then when new Product checking task is detected, by Product checking task buffer to task queue, while prison
Survey the detection of A, B, C, D tetra- threads whether complete Product checking task of executed, it is assumed that A detection threads perform the Detection task that is over,
Then the Product checking task corresponding to the head of the queue of task queue can be taken out, and A is detected into that thread distributes to the product of the taking-up
Detection task, so as to without the need for newly-built new Detection task again, and then prevents from detecting the unlimited increase of thread and causing rear Taiwan investment
Source causes Product checking speed to decline by a large amount of occupancy, so as to the relative speed and efficiency for improving Product checking.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of distribution processing method of detection thread, is applied to Product checking, it is characterised in that the distribution of the detection thread
Processing method includes:
Step S1, the detection thread for performing Product checking task for setting up fixed qty;
Step S2, monitoring currently whether there is new Product checking task;
If step S3, there is currently new Product checking task, judgement is currently executing the detection line of Product checking task
Whether the sum of journey reaches the fixed qty, and obtains judged result;
Step S4, according to the judged result, carry out detecting that the distribution of thread is processed;
Step S5, execution step S2 are until Product checking is exited when stopping.
2. the distribution processing method of thread is detected as claimed in claim 1, it is characterised in that described to judge knot according to described
Really, carry out detecting that the distribution process of thread includes:
If the sum for being currently executing the detection thread of Product checking task is not up to the fixed qty, will be not carried out producing
Arbitrary detection thread of product Detection task distributes to the new Product checking task.
3. the distribution processing method of thread is detected as claimed in claim 1 or 2, it is characterised in that described according to the judgement
As a result, carry out detecting that the distribution process of thread also includes:
If the sum for being currently executing the detection thread of Product checking task reaches the fixed qty, by current new product
Product examine surveys task buffer into preset task queue.
4. the distribution processing method of thread is detected as claimed in claim 3, it is characterised in that if described be currently executing product
The sum of the detection thread of product Detection task reaches the fixed qty, then by current new Product checking task buffer to default
Task queue includes:
If the sum for being currently executing the detection thread of Product checking task reaches the fixed qty, according to Product checking
The priority of task and the corresponding relation of cache location, by the phase in the new Product checking task buffer to the task queue
Answer position.
5. the distribution processing method of thread is detected as claimed in claim 3, it is characterised in that be currently executing product inspection
When the sum of the detection thread of survey task reaches the fixed qty, the distribution processing method of the detection thread also includes:
With the presence or absence of the idle thread of the complete Product checking task of executed in the presently described detection thread of monitoring;
If there is the idle thread of the complete Product checking task of executed in presently described detection thread, sequentially from the task team
The Product checking task of respective amount is taken out in row, and the idle thread is distributed to into the Product checking task of the taking-up.
6. a kind of distribution processing meanss of detection thread, are applied to Product checking, it is characterised in that the distribution of the detection thread
Processing meanss include:
Threading models, for setting up the detection thread for performing Product checking task of fixed qty;
Monitoring modular, for monitoring new Product checking task of currently whether there is;
Judge module, for when there is currently new Product checking task, judgement to be currently executing Product checking task
Whether the sum of detection thread reaches the fixed qty, and obtains judged result;
Processing module, for according to the judged result, carrying out detecting that the distribution of thread is processed.
7. the distribution processing meanss of thread are detected as claimed in claim 6, it is characterised in that the processing module is specifically used
In:
When the sum for detecting thread for being currently executing Product checking task is not up to the fixed qty, will be not carried out producing
Arbitrary detection thread of product Detection task distributes to the new Product checking task.
8. as claimed in claims 6 or 7 detection thread distribution processing meanss, it is characterised in that the processing module is concrete
It is additionally operable to:
When the sum for detecting thread for being currently executing Product checking task reaches the fixed qty, by current new product
Product examine surveys task buffer into preset task queue.
9. the distribution processing meanss of thread are detected as claimed in claim 8, it is characterised in that the processing module is specifically also used
In:
When the sum for detecting thread for being currently executing Product checking task reaches the fixed qty, according to Product checking
The priority of task and the corresponding relation of cache location, by the phase in the new Product checking task buffer to the task queue
Answer position.
10. the distribution processing meanss of thread are detected as claimed in claim 8, it is characterised in that
The monitoring modular is additionally operable to:The fixation is reached in the sum of the detection thread for being currently executing Product checking task
During quantity, monitor in presently described detection thread with the presence or absence of the idle thread of the complete Product checking task of executed;
The processing module is additionally operable to:When the idle thread that there is the complete Product checking task of executed in presently described detection thread
When, the Product checking task of respective amount is sequentially taken out from the task queue, and the idle thread is distributed to into the taking-up
Product checking task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611142949.0A CN106648892A (en) | 2016-12-12 | 2016-12-12 | Allocation processing method and device for detection threads |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611142949.0A CN106648892A (en) | 2016-12-12 | 2016-12-12 | Allocation processing method and device for detection threads |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106648892A true CN106648892A (en) | 2017-05-10 |
Family
ID=58825753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611142949.0A Pending CN106648892A (en) | 2016-12-12 | 2016-12-12 | Allocation processing method and device for detection threads |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648892A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920275A (en) * | 2018-06-25 | 2018-11-30 | 郑州云海信息技术有限公司 | A kind of method, apparatus, equipment and computer storage medium grabbing black box log |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591721A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Method and system for distributing thread execution task |
US20140359184A1 (en) * | 2011-11-03 | 2014-12-04 | Samsung Electronics Co., Ltd. | Method and apparatus for allocating interruptions |
CN106020954A (en) * | 2016-05-13 | 2016-10-12 | 深圳市永兴元科技有限公司 | Thread management method and device |
-
2016
- 2016-12-12 CN CN201611142949.0A patent/CN106648892A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140359184A1 (en) * | 2011-11-03 | 2014-12-04 | Samsung Electronics Co., Ltd. | Method and apparatus for allocating interruptions |
CN102591721A (en) * | 2011-12-30 | 2012-07-18 | 北京新媒传信科技有限公司 | Method and system for distributing thread execution task |
CN106020954A (en) * | 2016-05-13 | 2016-10-12 | 深圳市永兴元科技有限公司 | Thread management method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920275A (en) * | 2018-06-25 | 2018-11-30 | 郑州云海信息技术有限公司 | A kind of method, apparatus, equipment and computer storage medium grabbing black box log |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105446860B (en) | Pressure testing system and method for testing based on asynchronism and concurrency mechanism | |
DE69831344T2 (en) | EFFICIENT PROCESSING OF BUNDLING JUMPING INSTRUCTIONS | |
CN106843170B (en) | Method for scheduling task based on token | |
CN109656782A (en) | Visual scheduling monitoring method, device and server | |
CN106470169A (en) | A kind of service request method of adjustment and equipment | |
CN107885594A (en) | Distributed resource scheduling method, scheduling node and access node | |
CN109783157A (en) | A kind of method and relevant apparatus of algorithm routine load | |
CN106534287B (en) | A kind of management method and device of session entry | |
CN107992362A (en) | The method, apparatus and system of automated performance testing | |
US9104486B2 (en) | Apparatuses, systems, and methods for distributed workload serialization | |
WO2016155996A1 (en) | Production system and method for controlling same | |
JP6663938B2 (en) | Vehicle inspection device and vehicle inspection method | |
CN104090826B (en) | Task optimization deployment method based on correlation | |
CN104008038B (en) | The evaluating method and device of software | |
CN106956917B (en) | Caching device and method for real-time balance of multitask production line | |
CN108509280A (en) | A kind of Distributed Calculation cluster locality dispatching method based on push model | |
CN103617088A (en) | Method, device and processor of device for distributing core resources in different types of threads of processor | |
CN106648892A (en) | Allocation processing method and device for detection threads | |
CN107704322A (en) | Ask distribution method and device | |
CN104320382B (en) | Distributed current processing device, method and unit in real time | |
CN109117244A (en) | A kind of implementation method of resources of virtual machine application queuing mechanism | |
US20040255105A1 (en) | Eliminating the overhead of setup and pipeline delays in deep-pipelined architectures | |
CN106648646A (en) | Method and device for managing threads | |
CN105718243B (en) | The method and system that batch data operates in ERP system | |
WO2024067740A1 (en) | Test control method and apparatus, and computer device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |