Task processing method and device, electronic equipment and storage medium
A task processing and task technology, applied in the computer field, can solve problems such as long execution time, task scheduling blocking, resource equipment performance load, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] figure 1 It is a schematic flow chart of a task processing method provided by Embodiment 1 of the present invention. This embodiment is applicable to avoid task scheduling blocking when resource equipment executes scheduling tasks. The method can be executed by a task processing device, which It may be implemented in the form of software and / or hardware, and the hardware may be an electronic device, such as a mobile terminal or a PC.
[0031] Such as figure 1 As shown, the method includes:
[0032] S110. Determine a task execution instruction corresponding to the target task to be executed, and send the task execution instruction to the target resource device; wherein, the task execution instruction includes a target resource device that executes the target task to be executed and task scheduling cycle.
[0033] Wherein, the target to-be-executed task may be understood as a task to be scheduled for execution when the operating system performs task scheduling. The ta...
Embodiment 2
[0051] As an optional embodiment of the above embodiment, figure 2 It is a schematic flowchart of a task processing method provided in Embodiment 2 of the present invention. Optionally, refine the processing result of determining the target task to be executed based on the task thread and the task scheduling period .
[0052] Such as figure 2 As shown, the method includes:
[0053] S210. Determine a task execution instruction corresponding to the target to-be-executed task, and send the task execution instruction to the target resource device; wherein, the task execution instruction includes a target resource device that executes the target to-be-executed task and task scheduling cycle.
[0054] S220. Receive the task execution instruction based on the target resource device, and start a task thread corresponding to the target task to be executed.
[0055] S230. Determine the duration of the task thread based on the target monitoring function.
[0056] Among them, the t...
Embodiment 3
[0069] In a specific example, such as image 3 As shown, the scheduling center can assign each scheduling task to a corresponding resource device, and the task thread in the resource device processes the scheduling task. Before allocating scheduled tasks, the scheduling center may query the scheduling period T of the target task to be executed in the task_info table (ie, the first data table). Then the dispatching center selects the execution node (i.e., the target resource device) from the task_executor_list table (i.e., the second data table) to send a thread establishment request, which includes the task scheduling cycle T corresponding to the target task to be executed in the thread establishment request , and then after receiving the request, the target resource device can create a FutureTask thread (that is, a task thread) to process the target task to be executed. In the process of processing the target pending task, FutureTask.get(T) in the FutureTask thread (that is,...
PUM
![No PUM](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/application.06fe782c.png)
- 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