Task scheduling method, device, electronic device and storage medium
A task scheduling and task technology, applied in the computer field, can solve problems such as time-consuming and labor-intensive, and achieve the effects of improving efficiency, saving memory resources, and saving time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a flowchart of a task scheduling method in Embodiment 1 of the present invention. The embodiment of the present invention is applicable to the situation of scheduling tasks in the queue, and the method can be executed by a task scheduling device, which is implemented by software and / or hardware, and is specifically set in an electronic device.
[0026] Wherein, the electronic device may be a computer device equipped with at least one algorithm module for processing corresponding tasks. Wherein, each algorithm module processes corresponding tasks by executing corresponding codes, and achieves corresponding effects.
[0027] Such as figure 1 The task scheduling methods shown include:
[0028] S110. Use the first thread to monitor whether there is input data written for task execution in the message center, and when it is monitored that the input data is written, send a notification message to the second thread where the task is located, so that the secon...
Embodiment 2
[0040] figure 2 It is a flowchart of a task scheduling method in Embodiment 2 of the present invention. The embodiments of the present invention perform subdivision optimization on the basis of the technical solutions of the foregoing embodiments.
[0041] Further, the operation "using the second thread to perform task scheduling based on the received notification message" is refined into "using the second thread to change the state of the task in the queue to an executable state based on the notification message" ;Task traversal is performed on the queue through the second thread, if the first task traversed is the task that can be executed, then read the input data of the task from the message center, according to the input Data to perform the task", to clarify the scheduling method of the task corresponding to the input data, and improve the task scheduling mechanism.
[0042] Further, the operation "monitors whether the input data for task execution is written in the me...
Embodiment 3
[0061] image 3 It is a flowchart of a task scheduling method in Embodiment 3 of the present invention. The embodiments of the present invention carry out subdivision and additional optimization on the basis of the technical solutions of the foregoing embodiments.
[0062] Further, the operation "reading the input data of the task from the message center" is refined into "according to the maintained input information channel index information corresponding to the task, read the input data of the task from the message center; wherein, The input information channel index information is used to indicate the address" of the storage area used to store the input data of the corresponding task in the message center, so as to improve the way of reading the input data.
[0063] Further, after the operation "execute the task according to the input data", add "use the second thread to store the output data obtained after executing the task in the Message center; wherein, the output inf...
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