Task processing method and task processing device
A task processing and task technology, applied in the field of computing processing, can solve the problems of reduced efficiency, prolonged execution time, waste of computing device resources, etc., to achieve the effect of improving efficiency and reducing waiting time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0054] The first embodiment of the present invention proposes a task processing method. figure 1 Shown is a flow chart of the steps of the task processing method in the first embodiment of the present invention. Such as figure 1 As shown, the task processing method in the embodiment of the present invention includes the following steps:
[0055] S101. Establish a task sequence diagram by utilizing the constraint relationship between multiple tasks;
[0056]As mentioned above, the high-concurrency task flow control system is a task flow control system based on the producer-consumer model. The consumer-producer model is a model based on the wait / notify mechanism. The producer / consumer model describes that there is a buffer as a warehouse, the producer can put the product into the warehouse, and the consumer can take the product out of the warehouse. The two are interdependent. The high concurrency task flow control system can significantly improve the system's concurrency c...
no. 2 example
[0073] The second embodiment of the present invention proposes a task processing method. image 3 Shown is a flowchart of the steps of the task processing method in the second embodiment of the present invention. Such as image 3 As shown, the task processing method of the embodiment of the present invention has the following steps:
[0074] S202. Establish a task sequence graph by using the constraint relationship between multiple tasks, the task sequence graph includes nodes and edges, the nodes correspond to tasks, and the edges correspond to the constraint relationship between tasks;
[0075] S203. Perform topological sorting on multiple tasks in the task sequence diagram to determine concurrently executed tasks;
[0076] S207. Execute the multiple tasks according to the task order determined by the sorting result.
[0077] The above steps S202, S203 and S207 are the same as or similar to steps S101, S102 and S103 in the first embodiment, and will not be repeated here. ...
no. 3 example
[0135] The third embodiment of the present invention proposes a task processing device, such as Figure 5 As shown, the device can include the following modules:
[0136] A sequence diagram building module 302, configured to use the constraint relationship between multiple tasks to create a task sequence diagram;
[0137] Topological sorting module 303, configured to perform topological sorting on multiple tasks in the task sequence diagram, and determine concurrently executed tasks;
[0138] A task execution module 303, configured to execute the multiple tasks according to the topological sorting result. Topological Sort Module
[0139] In summary, the task processing device proposed in this embodiment has at least the following advantages:
[0140] According to the task processing method and device proposed in the embodiments of the present invention, a task sequence diagram is established by establishing the execution order of multiple tasks, and topological sorting is p...
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