CN102591721A - Method and system for distributing thread execution task - Google Patents
Method and system for distributing thread execution task Download PDFInfo
- Publication number
- CN102591721A CN102591721A CN2011104573780A CN201110457378A CN102591721A CN 102591721 A CN102591721 A CN 102591721A CN 2011104573780 A CN2011104573780 A CN 2011104573780A CN 201110457378 A CN201110457378 A CN 201110457378A CN 102591721 A CN102591721 A CN 102591721A
- Authority
- CN
- China
- Prior art keywords
- thread
- task
- idle
- distribution
- queue
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and a system for distributing thread execution task. The method comprises the following steps of: a step 1 of creating a thread pool; a step 2 of creating the task and adding the task into a task queue; a step 3 of calling idle threads in the thread pool and distributing the task in the task queue to the idle threads; and a step 4 of returning an execution result to the task after the threads execute the task. The invention can solve the problems of no feedback of the execution result, insufficient convenience and rapidness of application.
Description
Technical field
The present invention relates to computer realm, particularly a kind of method and system that distributes thread to execute the task.
Background technology
In the prior art, in the application of multithreading, will increase taking of system resource, and need handle the conflict between resource requirement and potential the taking if create too much thread.To make task executions flow process and resource contention situation become complicated after using multithreading, make a mistake easily.The available technology adopting thread pool solves this type of problem.But Thread pools scheme of the prior art is used the thread of fixed qty, and after complete, is not had the feedback of execution result, and do not have prioritization for task executions.
In the prior art,, make that application is convenient inadequately because do not feed back execution result; Because the number of threads underaction causes resource waste; Because according to priority do not execute the task, make thread scheduling lack of wisdom property.
Summary of the invention
A kind of method and system that distributes thread to execute the task provided by the invention does not feed back execution result to solve, and uses inadequately problem easily.
The invention discloses a kind of method of distributing thread to execute the task, said method comprises:
Step 1 is created thread pool;
Step 2, creation task adds task in the task queue;
Step 3, the idle thread in the invokes thread pond is given said idle thread with Task Distribution in the task queue;
Step 4 after the intact task of thread execution, is returned execution result and is given said task.
Wherein, said creation task further comprises:
Step 21 entrusts object to add in the said task result object parameter and the multicast that comprises task operating;
Said step 4 further comprises:
Step 22 after the intact task of thread execution, is given the result object parameter with execution result.
Wherein, also comprise behind the said creation task:
Step 31 is for creating of task is provided with priority;
Further comprise said task is added in the task queue:
Step 32, according to priority from high to low order adds creating of task in the task queue;
Said step 3 further comprises:
Step 33, the idle thread in the invokes thread pond is a starting point with the head of task queue, order extraction task is given said idle thread with the Task Distribution of extracting.
Wherein, also comprise behind the said establishment thread pool:
Step 41, thread in the execution thread pond, said thread is used to carry out Task Distribution, and said thread is called the distribution thread;
Also comprise later said task is added in the task queue:
Step 42 is waken up and is distributed thread to carry out Task Distribution;
Said step 3 further comprises:
Step 43 is distributed the idle thread in the thread invokes thread pond, gives idle thread with Task Distribution in the task queue, assigns back said distribution thread dormancy.
Wherein, said step 1 further comprises:
Step 51 is created thread by preset initial thread quantity, and said thread is formed thread pool;
Said step 43 further comprises:
Step 52 distributes thread to search the idle thread in the thread pool;
Step 53 if there is idle thread in the thread pool, is then called idle thread, and extraction task from task queue is given idle thread with said Task Distribution, after assigning, distributes the thread dormancy; Otherwise, execution in step 52 behind the preset duration of distribution thread dormancy.
Wherein, said step 52 and step 53 also comprise:
Step 61 is according to the definite quantity of creating thread of the task quantity in lookup result and the current task formation;
Step 62 if said quantity is not 0, is then created thread according to said quantity, and the thread of creating is added thread pool, and the new thread state of creating is idle.
Wherein, said method also comprises deletes unnecessary thread in the thread pool as follows termly,
Step 71 distributes thread regularly to confirm unnecessary number of threads in the thread pool;
Step 72 is according to said unnecessary number of threads deletion idle thread, the resource that the thread of release deletion takies.
Wherein, said step 71 further comprises:
Step 81A; According to the par of joining day of the last task of ordering in the task queue, current time, thread unit interval Processing tasks, task quantity and preset task waiting duration threshold value in the current task formation, confirm the idle thread quantity that needs in the thread pool;
Step 82A, with the idle thread quantity of said needs and the current number of threads addition that takies must and value, get higher value in said initial thread quantity and said and the value, the difference of current thread quantity and higher value is said unnecessary number of threads in the thread pool;
Perhaps,
Said step 61 further comprises:
Step 81B; According to the par of joining day of the last task of ordering in the task queue, current time, thread unit interval Processing tasks, task quantity and preset task waiting duration threshold value in the current task formation, confirm the idle thread quantity that needs in the thread pool;
Step 82B, with the idle thread quantity of said needs and the current number of threads addition that takies must and value, get smaller value in preset maximum thread amount and said and the value, the difference of number of threads is the quantity of said establishment thread in smaller value and the current thread pond.
Wherein, also comprise after the said step 43:
Step 91 after the intact task of thread execution, is waken the distribution thread up;
Step 92 distributes thread to search whether task is arranged in the task queue, if having, then execution in step 43, otherwise, distribute the thread dormancy;
Perhaps,
Also comprise after the said step 43:
Step 93, after the intact task of thread execution, whether said thread is searched has task in the task queue, if having, then extract first task in the task queue, carries out said task;
Perhaps,
Also comprise after the said step 43:
Step 94 distributes thread regularly to be waken up, distributes thread to search whether task is arranged in the task queue, if having, then execution in step 43, otherwise, distribute the thread dormancy.
The invention also discloses a kind of system that distributes thread to execute the task, said system comprises:
Thread pool is created module, is used to create thread pool;
Task is added module, is used for creation task, and task is added in the task queue;
The Task Distribution module is used for the idle thread in invokes thread pond, gives said idle thread with Task Distribution in the task queue;
The result returns module, is used for after thread executes task, returns execution result and gives said task.
The beneficial effect of the embodiment of the invention is: through the feedback execution result, make that application is more convenient; Through according to priority executing the task, it is intelligent to make thread scheduling have more; Through dynamic number of threads adjustment, it is more flexible to make that thread uses, and reduces resource waste.
Description of drawings
The process flow diagram of the method that Fig. 1 executes the task for distribution thread of the present invention;
The embodiment process flow diagram of the method that Fig. 2 executes the task for distribution thread of the present invention;
The structural drawing of the system that Fig. 3 executes the task for distribution thread of the present invention.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing that embodiment of the present invention is done to describe in detail further below.
Referring to Fig. 1, the process flow diagram of the method for executing the task for distribution thread provided by the invention.
A kind of method of distributing thread to execute the task is characterized in that, said method comprises:
Step S100 creates thread pool.
Step S200, creation task adds task in the task queue.
Step S300, the idle thread in the invokes thread pond is given idle thread with Task Distribution in the task queue.
Step S400 after the intact task of thread execution, returns execution result and gives this task.
Further, said creation task further comprises and entrusts object to add in the said task result object parameter and the multicast that comprises task operating.
Said step S400 gives the result object parameter with execution result after further comprising the intact task of thread execution.
In a preferred implementation, according to priority invokes thread is executed the task.
Also comprise behind the said creation task:
Step S210A is for creating of task is provided with priority.
Further comprise said task is added in the task queue:
Step S220A, according to priority from high to low order adds creating of task in the task queue.
Said step S300 further comprises:
Step S310A, the idle thread in the invokes thread pond is a starting point with the head of task queue, extracts task in order, gives idle thread with the Task Distribution of extracting.
Wherein, when idle thread quantity more than or equal to task queue in during task quantity, extract all tasks in the task queue; When idle thread quantity less than task queue in during task quantity, extract in proper order with the identical task of idle thread quantity from the beginning of task queue head.
In a preferred implementation, use and distribute thread to carry out the thread distribution.
Also comprise behind the said establishment thread pool:
Step S110B, thread in the execution thread pond, said thread is used to carry out Task Distribution, and said thread is called the distribution thread.
Also comprise later said task is added in the task queue:
Step S210B wakes up and distributes thread to carry out Task Distribution.
Said step S300 further comprises:
Step S310B distributes the idle thread in the thread invokes thread pond, gives idle thread with Task Distribution in the task queue, assigns the back and distributes the thread dormancy.
Wherein, when thread was assigned with thread dispatching, state changed into and taking, and after finishing the work, state changes the free time into.
Further, one take turns task complete after, check in the task queue whether to also have carrying out of the task of waiting for.
Realize checking through multiple implementation.For example, after the intact task of thread execution, wake the distribution thread up; Distribute thread to search whether task is arranged in the task queue, if having, execution in step S310B then, otherwise, distribute the thread dormancy.
Perhaps, after the intact task of thread execution, whether said thread is searched has task in the task queue, if having, then extract first task in the task queue, carries out said task.
Perhaps, distribute thread regularly to be waken up, distribute thread to search whether task is arranged in the task queue, if having, execution in step S310B then, otherwise, distribute the thread dormancy.
Adopt said method, both can guarantee again that task was in time extracted execution in the task queue so that the partition line journey has dormancy.
In a preferred implementation, number of threads adopts fixed mode in the thread pool, and this fixed mode is fit to the relatively-stationary situation of task amount.
Said step S100 further comprises:
Step S110C creates thread by preset initial thread quantity, and said thread is formed thread pool.
Idle thread in the said distribution thread invokes thread pond is given idle thread with Task Distribution in the task queue, distributes the thread dormancy further to comprise the steps.
Step S310C distributes thread to search the idle thread in the thread pool.
Step S320C if there is idle thread in the thread pool, then calls idle thread, and extraction task from task queue is given idle thread with said Task Distribution, after assigning, distributes the thread dormancy; Otherwise, execution in step S310C behind the preset duration of distribution thread dormancy.
In a preferred implementation, number of threads adopts dynamic mode in the thread pool, and this dynamic mode is fit to task amount and changes relatively large situation.
Said step S100 further comprises:
Step S110D creates thread by preset initial thread quantity, and said thread is formed thread pool.
Initial thread quantity is the minimum number of thread in the thread pool.
Idle thread in the said distribution thread invokes thread pond is given idle thread with Task Distribution in the task queue, after assigning, distributes the thread dormancy further to comprise the steps.
Step S311D distributes thread to search the idle thread in the thread pool.
Step S312D is according to the definite quantity of creating thread of the task quantity in lookup result and the current task formation.
Mode one compares the quantity of task in the task queue and the idle thread quantity that finds, if the idle thread negligible amounts that finds; Then in the task queue quantity of task and idle thread quantity subtract each other difference; This difference is the quantity of establishment thread, otherwise the quantity of creating thread is 0.
Mode two also comprises the maximum thread amount in the configuration, number of threads is more than or equal to minimum number and smaller or equal to the maximum thread amount in the thread pool.
At first, judge whether the quantity of current thread in the thread pool is the maximum thread amount, if the quantity of then creating thread is 0, if not, then carry out as judging.
The quantity of task in the task queue is compared with the idle thread quantity that finds; If the idle thread negligible amounts that finds, then in the task queue quantity of task and idle thread quantity subtract each other difference, the number of threads of this difference for need increasing; Otherwise the quantity of creating thread is 0.
Judge again existing number of threads add this number of threads that need increase with whether more than or equal to the maximum thread amount; If; Then maximum thread amount and existing number of threads difference are the quantity of establishment thread, otherwise the number of threads that needs to increase is for creating the quantity of thread.
Mode three also comprises the maximum thread amount in the configuration, number of threads is more than or equal to minimum number and smaller or equal to the maximum thread amount in the thread pool.
According to the par of joining day of the last task of ordering in the task queue, current time, thread unit interval Processing tasks, task quantity and preset task waiting duration threshold value in the current task formation, confirm the idle thread quantity that needs in the thread pool.
With the idle thread quantity of said needs and the current number of threads addition that takies must and value, get smaller value in preset maximum thread amount and said and the value, the difference of number of threads is the quantity of said establishment thread in smaller value and the current thread pond.
Concrete operations are described below.
At first, judge whether the quantity of current thread in the thread pool is the maximum thread amount, if the quantity of then creating thread is 0, if not, then carry out as judging.
With the quantity of task in the task queue and the idle thread quantity that finds relatively, if the idle thread quantity that finds more than or equal to the quantity of task in the task queue, the quantity of then creating thread is 0, otherwise, confirm to create the quantity of thread as follows.
Quantity by the definite idle thread that needs of following formula.
t=t0+T-t1,
n=N/(v×t)
Wherein, t0 is the joining day of the last task of ordering in the task queue, and T is preset task waiting duration threshold value; T1 is the current time; N is the quantity of the idle thread of needs, and N is the task quantity in the current task formation, and v is the par of thread unit interval Processing tasks.
With the current number of threads that takies with the quantity addition of the idle thread that needs must and value.
Relatively be somebody's turn to do and value and maximum thread amount; If it is bigger with value; The quantity of then creating thread is the difference that number of threads is subtracted each other in maximum thread amount and the current thread pond, otherwise, the quantity of creating thread for and value and current thread pond in the number of threads difference of subtracting each other.
Step S313D if said quantity is not 0, then creates thread according to said quantity, and the thread of creating is added thread pool, and the new thread state of creating is idle.
Step S314D, if there is idle thread in the thread pool, then extraction task from task queue is given idle thread with said Task Distribution, after assigning, distributes the thread dormancy; Otherwise, execution in step S312D behind the preset duration of distribution thread dormancy.
In a preferred implementation, judge regularly whether number of threads is superfluous in the thread pool, the thread of deletion some discharges resource, to reduce resource consumption.
Said method also comprises deletes unnecessary thread in the thread pool as follows termly.
Step S510E distributes thread regularly to confirm unnecessary number of threads in the thread pool.
Confirm unnecessary number of threads in several ways.
Mode one, with the quantity of task in the task queue and idle thread quantity relatively, if idle thread quantity is more, then in idle thread quantity and the task queue quantity of task subtract each other difference, this difference is unnecessary number of threads, otherwise unnecessary number of threads is 0.
Mode two at first, judges whether the quantity of current thread in the thread pool is initial thread quantity, if then unnecessary number of threads is 0, if not, then carry out as judging.
With the quantity of task in the task queue and idle thread quantity relatively, if the negligible amounts of task, then the quantity of idle thread quantity and task subtract each other difference, this difference is for needing the number of threads of deletion, otherwise unnecessary number of threads is 0.
Whether the difference of judging existing number of threads and this number of threads that need delete again is smaller or equal to initial thread quantity; If; Then existing number of threads and initial thread quantity difference are unnecessary number of threads, otherwise needing the number of threads of deletion is unnecessary number of threads.
Mode three; According to the par of joining day of the last task of ordering in the task queue, current time, thread unit interval Processing tasks, task quantity and preset task waiting duration threshold value in the current task formation, confirm the idle thread quantity that needs in the thread pool.With the idle thread quantity of said needs and the current number of threads addition that takies must and value, get said initial thread quantity with value in higher value, the difference of current thread quantity and higher value is said unnecessary number of threads in the thread pool.
For example, judge whether the quantity of current thread in the thread pool is initial thread quantity, if then unnecessary number of threads is 0, if not, then carry out as judging.
With the quantity of task in the task queue and idle thread quantity relatively, if idle thread quantity smaller or equal to the quantity of task in the task queue, then unnecessary number of threads is 0, otherwise, confirm unnecessary number of threads as follows.
Quantity by the definite idle thread that needs of following formula.
t=t0+T-t1,
n=N/(v×t)
Wherein, t0 is the time of last adding task in the task queue, and T is preset task waiting duration threshold value; T1 is the current time; N is the quantity of the idle thread of needs, and N is the task quantity in the current task formation, and v is the par of thread unit interval Processing tasks.
With the current number of threads that takies with the quantity addition of the idle thread that needs must and value; Relatively be somebody's turn to do and value and initial thread quantity; If initial thread quantity is bigger; Then unnecessary number of threads is the difference that current thread quantity and initial thread quantity are subtracted each other, otherwise the quantity of unnecessary thread is current thread quantity and the difference of subtracting each other with value.
Step S520E is according to said unnecessary number of threads deletion idle thread, the resource that the thread of release deletion takies.
Referring to Fig. 2, the process flow diagram of the embodiment method of executing the task for distribution thread provided by the invention.Adopt dynamic mode among this embodiment.
Step S201 creates thread by preset initial thread quantity, and thread is formed thread pool, thread in the execution thread pond, and this thread is used to carry out Task Distribution.
Said thread is called the distribution thread.
Create thread object, thread is added thread pool.Thread is not when having task to carry out, and the semaphore notice is in blocked state, and the status indicator of thread is idle.When invokes thread is executed the task, the status indicator of thread for taking, is sent semaphore and notifies to thread; Thread begins to carry out; Thread is with execution result or pass to the task result image parameter unusually, and is idle with the status indicator of thread, waits for next time and calls.The user can pass through result object parameter acquiring return results, and the result is normal the execution or aborted.
Thread pool function specific as follows: confirm the task quantity in the current task formation; Confirm the quantity of idle thread in the current thread pond; Check and whether also have task in the task queue; Discharge the resource of the thread of deletion.
Step S202, creation task, for creating of task is provided with priority, according to priority from high to low order is inserted creating of task in the task queue, wakes up and distributes thread to carry out Task Distribution.
During creation task, task receives multicast and entrusts object and result object parameter, and it is the method that comprises the task operating logic that object is entrusted in multicast.The user is obtained operating the result of execution by result object.
Step S203 distributes thread to search the idle thread in the thread pool.
Step S204 distributes thread to confirm to create the quantity of thread according to the task quantity in lookup result and the current task formation.
Step S205 distributes thread to judge, if this quantity is not 0, then creates thread according to this quantity, and the thread of creating is added thread pool, and the new thread state of creating is idle.
Step S206 distributes thread to judge, if there is idle thread in the thread pool, and execution in step S208 then, otherwise, execution in step S207.
Step S207, execution in step S203 behind the preset duration of distribution thread dormancy.
Step S208, distributing thread is starting point with the head of task queue, order extraction task is given idle thread with the Task Distribution of extracting, and after assigning, distributes the thread dormancy.
Step S209, the thread execution task after being finished, is given the result object parameter with execution result, wakes the distribution thread up.
Step S210 distributes thread to search whether task is arranged in the task queue, if having, and execution in step S203 then, otherwise, execution in step S211.
Step S211 distributes the thread dormancy.
In the present embodiment, distribute thread also regularly to confirm unnecessary number of threads in the thread pool; According to said unnecessary number of threads deletion idle thread, the resource that the thread of release deletion takies.
Referring to Fig. 3, distribute the structural drawing of the system that thread executes the task for the present invention.
Said system comprises:
Thread pool is created module 100, is used to create thread pool.
Task is added module 200, is used for creation task, and task is added in the task queue.
The result returns module 400, is used for after thread executes task, returns execution result and gives said task.
Further, said task interpolation module is further used for entrusting object to add in the said task result object parameter and the multicast that comprises task operating when creation task;
Said result returns module and is further used for after thread executes task, gives the result object parameter with execution result.
Further, said task is added module also is used to establishment behind creation task task priority is set;
Said task is added module and when adding task in the task queue, is further used for according to priority order from high to low, and creating of task is added in the task queue;
Said Task Distribution module is further used for the idle thread in the invokes thread pond, is starting point with the head of task queue, and order extraction task is given said idle thread with the Task Distribution of extracting.
Further, said Task Distribution module also is used for the thread in execution thread pond after thread pool is created the intact thread pool of module creation, and said thread is used to carry out Task Distribution, and said thread is called the distribution thread;
Said task interpolation module also is used to wake up after task being added in the task queue distributes thread to carry out Task Distribution;
Said Task Distribution module is further used for giving idle thread through distributing the idle thread in the thread invokes thread pond with Task Distribution in the task queue, will distribute the thread dormancy after assigning.
Further, said thread pool is created module and is further used for creating thread by preset initial thread quantity, and said thread is formed thread pool;
Said Task Distribution module is given idle thread through distributing the idle thread in the thread invokes thread pond with Task Distribution in the task queue, is further used in the time of will distributing the thread dormancy after assigning through distributing thread to search the idle thread in the thread pool; If there is idle thread in the thread pool, then extraction task from task queue is given idle thread with said Task Distribution, will distribute the thread dormancy after assigning; Otherwise, carry out behind the preset duration of distribution thread dormancy and search.
Further, whether said Task Distribution module exists idle thread also to be used for before according to the definite quantity of creating thread of the task quantity of lookup result and current task formation with judging after searching in the thread pool; If said quantity is not 0, then to create thread, and the thread of creating is added thread pool according to said quantity, the new thread state of creating is idle.
Further, said system also comprises the thread removing module, is used for through distributing thread regularly to confirm the unnecessary number of threads of thread pool; According to said unnecessary number of threads deletion idle thread, the resource that the thread of release deletion takies.
Wherein, The thread removing module is further used for joining day, the current time according to the last task of ordering in the task queue, par, the task quantity in the current task formation and the preset task waiting duration threshold value of thread unit interval Processing tasks when distributing thread regularly to confirm unnecessary number of threads in the thread pool, confirms the idle thread quantity that needs in the thread pool; With the idle thread quantity of said needs and the current number of threads addition that takies must and value, get said initial thread quantity with value in higher value, the difference of current thread quantity and higher value is said unnecessary number of threads in the thread pool.
Further, said result returns module and also is used for after thread executes task, waking the distribution thread up;
Said Task Distribution module also is used for after distributing thread to be waken up; Through distributing thread to search whether task is arranged in the task queue, if having, the idle thread in the invokes thread pond then; Give idle thread with Task Distribution in the task queue; To distribute the thread dormancy, otherwise, directly will distribute the thread dormancy.
Further, said result returns module and also is used for after thread executes task, searches through said thread whether task is arranged in the task queue, if having, then extracts first task in the task queue, through the said task of said thread execution.
Further, said Task Distribution module also is used for the distribution thread is regularly waken up, searches through distributing thread whether task is arranged in the task queue; If have; Then the idle thread in the invokes thread pond is given idle thread with Task Distribution in the task queue, will distribute the thread dormancy; Otherwise, directly will distribute the thread dormancy.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of within spirit of the present invention and principle, being done, be equal to replacement, improvement etc., all be included in protection scope of the present invention.
Claims (10)
1. a method of distributing thread to execute the task is characterized in that, said method comprises:
Step 1 is created thread pool;
Step 2, creation task adds task in the task queue;
Step 3, the idle thread in the invokes thread pond is given said idle thread with Task Distribution in the task queue;
Step 4 after the intact task of thread execution, is returned execution result and is given said task.
2. the method that distribution thread according to claim 1 is executed the task is characterized in that,
Said creation task further comprises:
Step 21 entrusts object to add in the said task result object parameter and the multicast that comprises task operating;
Said step 4 further comprises:
Step 22 after the intact task of thread execution, is given the result object parameter with execution result.
3. the method that distribution thread according to claim 1 is executed the task is characterized in that,
Also comprise behind the said creation task:
Step 31 is for creating of task is provided with priority;
Further comprise said task is added in the task queue:
Step 32, according to priority from high to low order adds creating of task in the task queue;
Said step 3 further comprises:
Step 33, the idle thread in the invokes thread pond is a starting point with the head of task queue, order extraction task is given said idle thread with the Task Distribution of extracting.
4. the method that distribution thread according to claim 1 is executed the task is characterized in that,
Also comprise behind the said establishment thread pool:
Step 41, thread in the execution thread pond, said thread is used to carry out Task Distribution, and said thread is called the distribution thread;
Also comprise later said task is added in the task queue:
Step 42 is waken up and is distributed thread to carry out Task Distribution;
Said step 3 further comprises:
Step 43 is distributed the idle thread in the thread invokes thread pond, gives idle thread with Task Distribution in the task queue, assigns back said distribution thread dormancy.
5. the method that distribution thread according to claim 4 is executed the task is characterized in that,
Said step 1 further comprises:
Step 51 is created thread by preset initial thread quantity, and said thread is formed thread pool;
Said step 43 further comprises:
Step 52 distributes thread to search the idle thread in the thread pool;
Step 53 if there is idle thread in the thread pool, is then called idle thread, and extraction task from task queue is given idle thread with said Task Distribution, after assigning, distributes the thread dormancy; Otherwise, execution in step 52 behind the preset duration of distribution thread dormancy.
6. the method that distribution thread according to claim 5 is executed the task is characterized in that,
Said step 52 and step 53 also comprise:
Step 61 is according to the definite quantity of creating thread of the task quantity in lookup result and the current task formation;
Step 62 if said quantity is not 0, is then created thread according to said quantity, and the thread of creating is added thread pool, and the new thread state of creating is idle.
7. the method that distribution thread according to claim 6 is executed the task is characterized in that,
Said method also comprises deletes unnecessary thread in the thread pool as follows termly,
Step 71 distributes thread regularly to confirm unnecessary number of threads in the thread pool;
Step 72 is according to said unnecessary number of threads deletion idle thread, the resource that the thread of release deletion takies.
8. the method that distribution thread according to claim 7 is executed the task is characterized in that,
Said step 71 further comprises:
Step 81A; According to the par of joining day of the last task of ordering in the task queue, current time, thread unit interval Processing tasks, task quantity and preset task waiting duration threshold value in the current task formation, confirm the idle thread quantity that needs in the thread pool;
Step 82A, with the idle thread quantity of said needs and the current number of threads addition that takies must and value, get higher value in said initial thread quantity and said and the value, the difference of current thread quantity and higher value is said unnecessary number of threads in the thread pool;
Perhaps,
Said step 61 further comprises:
Step 81B; According to the par of joining day of the last task of ordering in the task queue, current time, thread unit interval Processing tasks, task quantity and preset task waiting duration threshold value in the current task formation, confirm the idle thread quantity that needs in the thread pool;
Step 82B, with the idle thread quantity of said needs and the current number of threads addition that takies must and value, get smaller value in preset maximum thread amount and said and the value, the difference of number of threads is the quantity of said establishment thread in smaller value and the current thread pond.
9. the method that distribution thread according to claim 4 is executed the task is characterized in that,
Also comprise after the said step 43:
Step 91 after the intact task of thread execution, is waken the distribution thread up;
Step 92 distributes thread to search whether task is arranged in the task queue, if having, then execution in step 43, otherwise, distribute the thread dormancy;
Perhaps,
Also comprise after the said step 43:
Step 93, after the intact task of thread execution, whether said thread is searched has task in the task queue, if having, then extract first task in the task queue, carries out said task;
Perhaps,
Also comprise after the said step 43:
Step 94 distributes thread regularly to be waken up, distributes thread to search whether task is arranged in the task queue, if having, then execution in step 43, otherwise, distribute the thread dormancy.
10. a system that distributes thread to execute the task is characterized in that, said system comprises:
Thread pool is created module, is used to create thread pool;
Task is added module, is used for creation task, and task is added in the task queue;
The Task Distribution module is used for the idle thread in invokes thread pond, gives said idle thread with Task Distribution in the task queue;
The result returns module, is used for after thread executes task, returns execution result and gives said task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104573780A CN102591721A (en) | 2011-12-30 | 2011-12-30 | Method and system for distributing thread execution task |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104573780A CN102591721A (en) | 2011-12-30 | 2011-12-30 | Method and system for distributing thread execution task |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102591721A true CN102591721A (en) | 2012-07-18 |
Family
ID=46480428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104573780A Pending CN102591721A (en) | 2011-12-30 | 2011-12-30 | Method and system for distributing thread execution task |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102591721A (en) |
Cited By (61)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981901A (en) * | 2012-11-19 | 2013-03-20 | 北京思特奇信息技术股份有限公司 | Method and device for processing connection request |
CN103268247A (en) * | 2013-06-05 | 2013-08-28 | 中国电子科技集团公司第十五研究所 | Method and device for executing task and adjusting number of remaining threads in thread pool |
CN103473129A (en) * | 2013-09-18 | 2013-12-25 | 柳州市博源环科科技有限公司 | Multi-task queue scheduling system with scalable number of threads and implementation method thereof |
CN103713944A (en) * | 2013-12-13 | 2014-04-09 | 上海华为技术有限公司 | Kernel-level thread processing method, device and system |
WO2014082562A1 (en) * | 2012-11-29 | 2014-06-05 | Tencent Technology (Shenzhen) Company Limited | Method, device, and system for information processing based on distributed buses |
CN103902361A (en) * | 2014-04-04 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Thread pool capable of dynamically adjusting size |
CN104111877A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Thread dynamic deployment system and method based on thread deployment engine |
CN104216765A (en) * | 2014-08-15 | 2014-12-17 | 东软集团股份有限公司 | Multithreading concurrent service processing method and system |
CN104423996A (en) * | 2013-09-04 | 2015-03-18 | 腾讯科技(深圳)有限公司 | View refreshing method and view refreshing device |
CN104536827A (en) * | 2015-01-27 | 2015-04-22 | 浪潮(北京)电子信息产业有限公司 | Data dispatching method and device |
CN104714785A (en) * | 2015-03-31 | 2015-06-17 | 中芯睿智(北京)微电子科技有限公司 | Task scheduling device, task scheduling method and data parallel processing device |
CN104899099A (en) * | 2015-05-26 | 2015-09-09 | 北京金和网络股份有限公司 | Task allocation method based on thread pool |
CN105119981A (en) * | 2015-07-23 | 2015-12-02 | 上海斐讯数据通信技术有限公司 | Method for processing messages |
CN105389209A (en) * | 2015-12-25 | 2016-03-09 | 中国建设银行股份有限公司 | Asynchronous batch task processing method and system |
CN105573840A (en) * | 2015-12-08 | 2016-05-11 | 东软集团股份有限公司 | Event processing method and device in workflow operating period |
CN105718315A (en) * | 2016-02-17 | 2016-06-29 | 中国农业银行股份有限公司 | Task processing method and server |
CN105743713A (en) * | 2016-04-14 | 2016-07-06 | 上海斐讯数据通信技术有限公司 | Network management system and network management method |
CN105791254A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Network request processing method, device and terminal |
CN105991669A (en) * | 2015-01-28 | 2016-10-05 | 中国移动通信集团公司 | Method and system for processing multi-modal sign data |
CN106020954A (en) * | 2016-05-13 | 2016-10-12 | 深圳市永兴元科技有限公司 | Thread management method and device |
CN106095590A (en) * | 2016-07-21 | 2016-11-09 | 联动优势科技有限公司 | A kind of method for allocating tasks based on thread pool and device |
CN106126354A (en) * | 2016-06-21 | 2016-11-16 | 中国建设银行股份有限公司 | A kind of asynchronous batch processing method and system |
CN106155796A (en) * | 2016-07-25 | 2016-11-23 | 浪潮(北京)电子信息产业有限公司 | A kind of thread scheduling method based on queue and device |
CN106201696A (en) * | 2016-07-15 | 2016-12-07 | 东软集团股份有限公司 | Method and apparatus for thread |
CN106227739A (en) * | 2016-07-13 | 2016-12-14 | 克拉玛依红有软件有限责任公司 | A kind of realize data request method based on multitask |
CN106502773A (en) * | 2016-10-09 | 2017-03-15 | 武汉斗鱼网络科技有限公司 | There is data asynchronous processing method and the module of synchronous callback information function |
CN106528065A (en) * | 2015-09-14 | 2017-03-22 | 阿里巴巴集团控股有限公司 | Thread obtaining method and device |
CN106648892A (en) * | 2016-12-12 | 2017-05-10 | 深圳市元征软件开发有限公司 | Allocation processing method and device for detection threads |
CN106648850A (en) * | 2015-11-02 | 2017-05-10 | 佳能株式会社 | Information processing apparatus and method of controlling the same |
CN106933673A (en) * | 2015-12-30 | 2017-07-07 | 阿里巴巴集团控股有限公司 | Adjust the method and device of component logic number of threads |
CN107562538A (en) * | 2017-08-22 | 2018-01-09 | 中国铁道科学研究院电子计算技术研究所 | Data pick-up multitask management process and system in railway traffic statistics |
CN107643944A (en) * | 2016-07-21 | 2018-01-30 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus of processing task |
CN107818012A (en) * | 2016-09-12 | 2018-03-20 | 阿里巴巴集团控股有限公司 | A kind of data processing method, device and electronic equipment |
CN107832146A (en) * | 2017-10-27 | 2018-03-23 | 北京计算机技术及应用研究所 | Thread pool task processing method in highly available cluster system |
CN107911484A (en) * | 2017-12-13 | 2018-04-13 | 浪潮软件股份有限公司 | A kind of method and device of Message Processing |
CN107918864A (en) * | 2017-11-23 | 2018-04-17 | 平安科技(深圳)有限公司 | Electronic insurance policy generation method, device, computer equipment and storage medium |
CN108279977A (en) * | 2017-12-29 | 2018-07-13 | 深圳市德兰明海科技有限公司 | A kind of data processing method, device and controller based on RTOS |
CN108810557A (en) * | 2017-07-10 | 2018-11-13 | 北京视联动力国际信息技术有限公司 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
CN108829521A (en) * | 2018-06-13 | 2018-11-16 | 平安科技(深圳)有限公司 | Task processing method and device, computer equipment and storage medium |
CN108924128A (en) * | 2018-06-29 | 2018-11-30 | Oppo(重庆)智能科技有限公司 | A kind of mobile terminal and its method for limiting, the storage medium of interprocess communication |
CN109271252A (en) * | 2018-08-29 | 2019-01-25 | 华为技术有限公司 | A kind of method and device adjusting Thread Count |
CN109308218A (en) * | 2018-08-22 | 2019-02-05 | 安徽慧视金瞳科技有限公司 | A kind of matching algorithm that multiple spot is drawn simultaneously |
CN109426572A (en) * | 2017-08-29 | 2019-03-05 | 杭州海康威视数字技术股份有限公司 | Task processing method, device and electronic equipment |
CN109508229A (en) * | 2018-09-19 | 2019-03-22 | 安徽慧视金瞳科技有限公司 | A kind of matching process that multiple spot is drawn simultaneously |
CN109582455A (en) * | 2018-12-03 | 2019-04-05 | 恒生电子股份有限公司 | Multithreading task processing method, device and storage medium |
CN109634724A (en) * | 2018-10-16 | 2019-04-16 | 深圳壹账通智能科技有限公司 | Collecting method, device, equipment and computer storage medium |
CN109783230A (en) * | 2018-12-17 | 2019-05-21 | 平安普惠企业管理有限公司 | Flow control methods, device, computer equipment and storage medium based on semaphore |
CN109885383A (en) * | 2018-10-30 | 2019-06-14 | 广东科学技术职业学院 | A kind of non-unity time task scheduling method of with constraint conditions |
CN110297711A (en) * | 2019-05-16 | 2019-10-01 | 平安科技(深圳)有限公司 | Batch data processing method, device, computer equipment and storage medium |
CN110489447A (en) * | 2019-07-16 | 2019-11-22 | 招联消费金融有限公司 | Data query method, apparatus, computer equipment and storage medium |
CN110851245A (en) * | 2019-09-24 | 2020-02-28 | 厦门网宿有限公司 | Distributed asynchronous task scheduling method and electronic equipment |
CN111083197A (en) * | 2019-11-20 | 2020-04-28 | 中盈优创资讯科技有限公司 | Report scheduling method and device |
CN111104210A (en) * | 2019-11-26 | 2020-05-05 | 苏宁云计算有限公司 | Task processing method and device and computer system |
CN111292735A (en) * | 2018-12-06 | 2020-06-16 | 北京嘀嘀无限科技发展有限公司 | Signal processing device, method, electronic apparatus, and computer storage medium |
CN111831422A (en) * | 2019-04-15 | 2020-10-27 | 大唐移动通信设备有限公司 | Task processing method and device |
CN112052081A (en) * | 2020-08-13 | 2020-12-08 | 烽火通信科技股份有限公司 | Task scheduling method and device and electronic equipment |
CN112052094A (en) * | 2020-09-09 | 2020-12-08 | 浪潮卓数大数据产业发展有限公司 | Task execution method based on multiple threads |
CN112287064A (en) * | 2020-12-25 | 2021-01-29 | 智道网联科技(北京)有限公司 | Rendering method and device for map engine anchor point |
CN113452554A (en) * | 2021-06-18 | 2021-09-28 | 上海艾拉比智能科技有限公司 | Online OTA differential packet making system and method based on queuing mechanism |
CN113722078A (en) * | 2021-11-02 | 2021-11-30 | 西安热工研究院有限公司 | High-concurrency database access method, system and equipment based on thread pool |
CN114217947A (en) * | 2021-11-04 | 2022-03-22 | 北京百度网讯科技有限公司 | Task execution method and device, electronic equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001290A (en) * | 2006-01-09 | 2007-07-18 | 杭州世导科技有限公司 | System for multi-media integrated accessing |
CN101262367A (en) * | 2008-03-07 | 2008-09-10 | 中兴通讯股份有限公司 | Collection method and device for performance data |
CN101287166A (en) * | 2008-02-22 | 2008-10-15 | 北京航空航天大学 | Short message publishing system and method for auxiliary system of electronic meeting |
CN101887367A (en) * | 2010-06-22 | 2010-11-17 | 天津大学 | Multi-level parallel programming method |
-
2011
- 2011-12-30 CN CN2011104573780A patent/CN102591721A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001290A (en) * | 2006-01-09 | 2007-07-18 | 杭州世导科技有限公司 | System for multi-media integrated accessing |
CN101287166A (en) * | 2008-02-22 | 2008-10-15 | 北京航空航天大学 | Short message publishing system and method for auxiliary system of electronic meeting |
CN101262367A (en) * | 2008-03-07 | 2008-09-10 | 中兴通讯股份有限公司 | Collection method and device for performance data |
CN101887367A (en) * | 2010-06-22 | 2010-11-17 | 天津大学 | Multi-level parallel programming method |
Cited By (87)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981901A (en) * | 2012-11-19 | 2013-03-20 | 北京思特奇信息技术股份有限公司 | Method and device for processing connection request |
CN103856440B (en) * | 2012-11-29 | 2015-11-18 | 腾讯科技(深圳)有限公司 | A kind of message treatment method based on distributed bus, server and system |
US9537786B2 (en) | 2012-11-29 | 2017-01-03 | Tencent Technology (Shenzhen) Company Limited | Method, device, and system for information processing based on distributed buses |
WO2014082562A1 (en) * | 2012-11-29 | 2014-06-05 | Tencent Technology (Shenzhen) Company Limited | Method, device, and system for information processing based on distributed buses |
CN103856440A (en) * | 2012-11-29 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Message processing method, server and message processing system based on distributed bus |
CN103268247A (en) * | 2013-06-05 | 2013-08-28 | 中国电子科技集团公司第十五研究所 | Method and device for executing task and adjusting number of remaining threads in thread pool |
CN103268247B (en) * | 2013-06-05 | 2017-01-18 | 中国电子科技集团公司第十五研究所 | Method and device for executing task and adjusting number of remaining threads in thread pool |
CN104423996A (en) * | 2013-09-04 | 2015-03-18 | 腾讯科技(深圳)有限公司 | View refreshing method and view refreshing device |
CN104423996B (en) * | 2013-09-04 | 2019-02-01 | 腾讯科技(深圳)有限公司 | View method for refreshing and device |
CN103473129A (en) * | 2013-09-18 | 2013-12-25 | 柳州市博源环科科技有限公司 | Multi-task queue scheduling system with scalable number of threads and implementation method thereof |
CN103473129B (en) * | 2013-09-18 | 2017-01-18 | 深圳前海大数金融服务有限公司 | Multi-task queue scheduling system with scalable number of threads and implementation method thereof |
CN103713944A (en) * | 2013-12-13 | 2014-04-09 | 上海华为技术有限公司 | Kernel-level thread processing method, device and system |
CN103713944B (en) * | 2013-12-13 | 2019-08-20 | 上海华为技术有限公司 | A kind of processing method of Kernel-level thread, device and system |
CN103902361A (en) * | 2014-04-04 | 2014-07-02 | 浪潮电子信息产业股份有限公司 | Thread pool capable of dynamically adjusting size |
CN104111877A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Thread dynamic deployment system and method based on thread deployment engine |
CN104216765B (en) * | 2014-08-15 | 2017-11-03 | 东软集团股份有限公司 | A kind of method and system of multi-thread concurrent processing business |
CN104216765A (en) * | 2014-08-15 | 2014-12-17 | 东软集团股份有限公司 | Multithreading concurrent service processing method and system |
CN105791254A (en) * | 2014-12-26 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Network request processing method, device and terminal |
CN104536827B (en) * | 2015-01-27 | 2019-05-28 | 浪潮(北京)电子信息产业有限公司 | A kind of data dispatching method and device |
CN104536827A (en) * | 2015-01-27 | 2015-04-22 | 浪潮(北京)电子信息产业有限公司 | Data dispatching method and device |
CN105991669B (en) * | 2015-01-28 | 2019-03-26 | 中国移动通信集团公司 | A kind of processing method and system of multi-modal sign data |
CN105991669A (en) * | 2015-01-28 | 2016-10-05 | 中国移动通信集团公司 | Method and system for processing multi-modal sign data |
CN104714785A (en) * | 2015-03-31 | 2015-06-17 | 中芯睿智(北京)微电子科技有限公司 | Task scheduling device, task scheduling method and data parallel processing device |
CN104899099A (en) * | 2015-05-26 | 2015-09-09 | 北京金和网络股份有限公司 | Task allocation method based on thread pool |
CN105119981A (en) * | 2015-07-23 | 2015-12-02 | 上海斐讯数据通信技术有限公司 | Method for processing messages |
CN106528065A (en) * | 2015-09-14 | 2017-03-22 | 阿里巴巴集团控股有限公司 | Thread obtaining method and device |
CN106528065B (en) * | 2015-09-14 | 2019-11-08 | 阿里巴巴集团控股有限公司 | A kind of thread acquisition methods and equipment |
CN106648850A (en) * | 2015-11-02 | 2017-05-10 | 佳能株式会社 | Information processing apparatus and method of controlling the same |
CN105573840A (en) * | 2015-12-08 | 2016-05-11 | 东软集团股份有限公司 | Event processing method and device in workflow operating period |
CN105573840B (en) * | 2015-12-08 | 2019-06-14 | 东软集团股份有限公司 | The event-handling method and device of work flow operation phase |
CN105389209A (en) * | 2015-12-25 | 2016-03-09 | 中国建设银行股份有限公司 | Asynchronous batch task processing method and system |
CN105389209B (en) * | 2015-12-25 | 2019-04-26 | 中国建设银行股份有限公司 | A kind of asynchronous batch tasks processing method and system |
US10783005B2 (en) | 2015-12-30 | 2020-09-22 | Alibaba Group Holding Limited | Component logical threads quantity adjustment method and device |
CN106933673A (en) * | 2015-12-30 | 2017-07-07 | 阿里巴巴集团控股有限公司 | Adjust the method and device of component logic number of threads |
CN105718315A (en) * | 2016-02-17 | 2016-06-29 | 中国农业银行股份有限公司 | Task processing method and server |
CN105743713B (en) * | 2016-04-14 | 2019-10-11 | 上海斐讯数据通信技术有限公司 | A kind of Network Management System and method |
CN105743713A (en) * | 2016-04-14 | 2016-07-06 | 上海斐讯数据通信技术有限公司 | Network management system and network management method |
CN106020954A (en) * | 2016-05-13 | 2016-10-12 | 深圳市永兴元科技有限公司 | Thread management method and device |
CN106126354A (en) * | 2016-06-21 | 2016-11-16 | 中国建设银行股份有限公司 | A kind of asynchronous batch processing method and system |
CN106227739B (en) * | 2016-07-13 | 2020-01-21 | 克拉玛依红有软件有限责任公司 | Method for realizing data request based on multiple tasks |
CN106227739A (en) * | 2016-07-13 | 2016-12-14 | 克拉玛依红有软件有限责任公司 | A kind of realize data request method based on multitask |
CN106201696A (en) * | 2016-07-15 | 2016-12-07 | 东软集团股份有限公司 | Method and apparatus for thread |
CN107643944A (en) * | 2016-07-21 | 2018-01-30 | 阿里巴巴集团控股有限公司 | A kind of method and apparatus of processing task |
CN106095590A (en) * | 2016-07-21 | 2016-11-09 | 联动优势科技有限公司 | A kind of method for allocating tasks based on thread pool and device |
CN106095590B (en) * | 2016-07-21 | 2019-05-03 | 联动优势科技有限公司 | A kind of method for allocating tasks and device based on thread pool |
CN106155796A (en) * | 2016-07-25 | 2016-11-23 | 浪潮(北京)电子信息产业有限公司 | A kind of thread scheduling method based on queue and device |
CN107818012B (en) * | 2016-09-12 | 2021-08-27 | 阿里巴巴集团控股有限公司 | Data processing method and device and electronic equipment |
CN107818012A (en) * | 2016-09-12 | 2018-03-20 | 阿里巴巴集团控股有限公司 | A kind of data processing method, device and electronic equipment |
CN106502773A (en) * | 2016-10-09 | 2017-03-15 | 武汉斗鱼网络科技有限公司 | There is data asynchronous processing method and the module of synchronous callback information function |
CN106648892A (en) * | 2016-12-12 | 2017-05-10 | 深圳市元征软件开发有限公司 | Allocation processing method and device for detection threads |
CN108810557A (en) * | 2017-07-10 | 2018-11-13 | 北京视联动力国际信息技术有限公司 | A kind of method for processing video frequency, device, electronic equipment and storage medium |
CN107562538B (en) * | 2017-08-22 | 2020-01-07 | 中国铁道科学研究院电子计算技术研究所 | Data extraction multitask management method and system in railway transportation statistics |
CN107562538A (en) * | 2017-08-22 | 2018-01-09 | 中国铁道科学研究院电子计算技术研究所 | Data pick-up multitask management process and system in railway traffic statistics |
CN109426572B (en) * | 2017-08-29 | 2021-07-02 | 杭州海康威视数字技术股份有限公司 | Task processing method and device and electronic equipment |
CN109426572A (en) * | 2017-08-29 | 2019-03-05 | 杭州海康威视数字技术股份有限公司 | Task processing method, device and electronic equipment |
CN107832146A (en) * | 2017-10-27 | 2018-03-23 | 北京计算机技术及应用研究所 | Thread pool task processing method in highly available cluster system |
CN107918864A (en) * | 2017-11-23 | 2018-04-17 | 平安科技(深圳)有限公司 | Electronic insurance policy generation method, device, computer equipment and storage medium |
CN107911484B (en) * | 2017-12-13 | 2020-07-07 | 浪潮软件股份有限公司 | Message processing method and device |
CN107911484A (en) * | 2017-12-13 | 2018-04-13 | 浪潮软件股份有限公司 | A kind of method and device of Message Processing |
CN108279977B (en) * | 2017-12-29 | 2021-12-10 | 深圳市德兰明海科技有限公司 | Data processing method and device based on RTOS (real time operating System) and controller |
CN108279977A (en) * | 2017-12-29 | 2018-07-13 | 深圳市德兰明海科技有限公司 | A kind of data processing method, device and controller based on RTOS |
CN108829521A (en) * | 2018-06-13 | 2018-11-16 | 平安科技(深圳)有限公司 | Task processing method and device, computer equipment and storage medium |
CN108924128A (en) * | 2018-06-29 | 2018-11-30 | Oppo(重庆)智能科技有限公司 | A kind of mobile terminal and its method for limiting, the storage medium of interprocess communication |
CN109308218A (en) * | 2018-08-22 | 2019-02-05 | 安徽慧视金瞳科技有限公司 | A kind of matching algorithm that multiple spot is drawn simultaneously |
CN109271252A (en) * | 2018-08-29 | 2019-01-25 | 华为技术有限公司 | A kind of method and device adjusting Thread Count |
CN109508229A (en) * | 2018-09-19 | 2019-03-22 | 安徽慧视金瞳科技有限公司 | A kind of matching process that multiple spot is drawn simultaneously |
CN109634724A (en) * | 2018-10-16 | 2019-04-16 | 深圳壹账通智能科技有限公司 | Collecting method, device, equipment and computer storage medium |
CN109885383A (en) * | 2018-10-30 | 2019-06-14 | 广东科学技术职业学院 | A kind of non-unity time task scheduling method of with constraint conditions |
CN109582455A (en) * | 2018-12-03 | 2019-04-05 | 恒生电子股份有限公司 | Multithreading task processing method, device and storage medium |
CN109582455B (en) * | 2018-12-03 | 2021-06-18 | 恒生电子股份有限公司 | Multithreading task processing method and device and storage medium |
CN111292735A (en) * | 2018-12-06 | 2020-06-16 | 北京嘀嘀无限科技发展有限公司 | Signal processing device, method, electronic apparatus, and computer storage medium |
CN109783230A (en) * | 2018-12-17 | 2019-05-21 | 平安普惠企业管理有限公司 | Flow control methods, device, computer equipment and storage medium based on semaphore |
CN111831422A (en) * | 2019-04-15 | 2020-10-27 | 大唐移动通信设备有限公司 | Task processing method and device |
CN111831422B (en) * | 2019-04-15 | 2024-04-30 | 大唐移动通信设备有限公司 | Task processing method and device |
CN110297711A (en) * | 2019-05-16 | 2019-10-01 | 平安科技(深圳)有限公司 | Batch data processing method, device, computer equipment and storage medium |
CN110297711B (en) * | 2019-05-16 | 2024-01-19 | 平安科技(深圳)有限公司 | Batch data processing method, device, computer equipment and storage medium |
CN110489447A (en) * | 2019-07-16 | 2019-11-22 | 招联消费金融有限公司 | Data query method, apparatus, computer equipment and storage medium |
CN110851245A (en) * | 2019-09-24 | 2020-02-28 | 厦门网宿有限公司 | Distributed asynchronous task scheduling method and electronic equipment |
CN111083197A (en) * | 2019-11-20 | 2020-04-28 | 中盈优创资讯科技有限公司 | Report scheduling method and device |
CN111104210A (en) * | 2019-11-26 | 2020-05-05 | 苏宁云计算有限公司 | Task processing method and device and computer system |
CN112052081A (en) * | 2020-08-13 | 2020-12-08 | 烽火通信科技股份有限公司 | Task scheduling method and device and electronic equipment |
CN112052081B (en) * | 2020-08-13 | 2022-06-03 | 烽火通信科技股份有限公司 | Task scheduling method and device and electronic equipment |
CN112052094A (en) * | 2020-09-09 | 2020-12-08 | 浪潮卓数大数据产业发展有限公司 | Task execution method based on multiple threads |
CN112287064A (en) * | 2020-12-25 | 2021-01-29 | 智道网联科技(北京)有限公司 | Rendering method and device for map engine anchor point |
CN113452554A (en) * | 2021-06-18 | 2021-09-28 | 上海艾拉比智能科技有限公司 | Online OTA differential packet making system and method based on queuing mechanism |
CN113722078A (en) * | 2021-11-02 | 2021-11-30 | 西安热工研究院有限公司 | High-concurrency database access method, system and equipment based on thread pool |
CN114217947A (en) * | 2021-11-04 | 2022-03-22 | 北京百度网讯科技有限公司 | Task execution method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102591721A (en) | Method and system for distributing thread execution task | |
CN109582455B (en) | Multithreading task processing method and device and storage medium | |
CN102096603B (en) | Task decomposition control method in MapReduce system and scheduling node equipment | |
CN103426072B (en) | The order processing system of a kind of high concurrent competition stock and disposal route thereof | |
WO2017080273A1 (en) | Task management methods and system, and computer storage medium | |
CN109684060B (en) | Mixed scheduling method for multiple types of time-critical tasks | |
CN105117284B (en) | Method for scheduling work threads based on priority proportion queue | |
CN106020967B (en) | A kind of automatic expansion method of hybrid cloud resource | |
CN104182029B (en) | Program invocation time setting method, program invocation time setting device and terminal | |
WO2010145429A1 (en) | Method and system for managing thread pool | |
CN102541653A (en) | Method and system for scheduling multitasking thread pools | |
CN1327349C (en) | Task level resource administration method for micro-kernel embedded real-time operation systems | |
CN101963922B (en) | Task processing method and device | |
KR20130105890A (en) | Minimizing resource latency between processor application states in a portable computing device by scheduling resource set transitions | |
WO2017080276A1 (en) | Resource management method and system, and computer storage medium | |
CN107346263B (en) | Task execution method, storage medium, and computer device | |
CN107818012B (en) | Data processing method and device and electronic equipment | |
JP5605131B2 (en) | Job scheduling program, method, and apparatus | |
CN109324880A (en) | A kind of low-power consumption scheduling method suitable for real-time system periodic task model | |
CN108958789B (en) | Parallel stream type computing method, electronic equipment, storage medium and system | |
CN106155781A (en) | A kind of real-time task scheduling method in multiple agent platform | |
CN109324891A (en) | A kind of periodic duty low-power consumption scheduling method of ratio free time distribution | |
CN103778011A (en) | Method for fairly and randomly scheduling tasks of service platform in electric power system | |
CN102455934A (en) | Workflow scheduling method and device | |
CN104239147A (en) | Method and system for processing deadlock cycle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120718 |