Method and system for distributing thread execution task
A technology for executing tasks and assigning lines, applied in the computer field, can solve the problems of no feedback of execution results and inconvenient application, and achieve the effects of convenient application, reduced waste, and flexible use of threads
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0062] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0063] see figure 1 , is a flow chart of the method for assigning threads to execute tasks provided by the present invention.
[0064] A method for assigning threads to perform tasks, characterized in that the method comprises:
[0065] Step S100, creating a thread pool.
[0066] Step S200, create a task, and add the task to the task queue.
[0067] Step S300, calling an idle thread in the thread pool, and assigning tasks in the task queue to the idle thread.
[0068] Step S400, after the thread executes the task, return the execution result to the task.
[0069] Further, the creating a task further includes adding result object parameters and a multicast delegate object containing task operations to the task.
[0070] The step S4...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com