摘要 |
A traffic flow-based task scheduling method comprises: detecting whether a current traffic flow is set during switching of a currently running task; if the current traffic flow is set, then searching for a next task of the currently running task in a task queue of the current traffic flow, and switching to and running the next task of the currently running task; and if no current traffic flow is set, then matching a first task with the currently running task, and setting a traffic flow having the highest priority in a preset traffic flow queue, as a new current traffic flow. The method above enables targeted scheduling for critical traffic flows, which reduces scheduling randomness greatly and further avoids the situation that the critical traffic flows cannot be completed in time or there is a large jitter delay in the critical traffic flows. |