Task priority correcting method and device
A task priority and priority technology, applied in the field of data processing, can solve problems such as video not being provided within the specified time, task A failing to complete transcoding within the specified time, task A timeout, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] refer to figure 1 , which shows a flow chart of the steps of Embodiment 1 of a task priority correction method of the present disclosure, which may specifically include:
[0021] Step 101, obtain the waiting time of the current task in the task queue under the current priority; the waiting time may specifically include: a first waiting time and / or a second waiting time; wherein the first waiting time is the The current task has been waiting for a long time, and the second waiting time is the waiting time for the current task;
[0022] In the embodiments of the present disclosure, the task types may specifically include: transcoding, uploading, downloading, storage, etc., and the task priority correction method may be used to correct the priority of a class of tasks, that is, the embodiments of the present disclosure may Applied to tasks such as transcoding, uploading, downloading, and storing of video and / or audio, the embodiments of the present disclosure mainly use t...
Embodiment 2
[0041] refer to figure 2 , which shows a flow chart of steps in Embodiment 2 of a task priority correction method of the present disclosure, which may specifically include:
[0042] Step 201, obtain the waiting time of the current task in the task queue under the current priority; the waiting time includes: the first waiting time and / or the second waiting time; wherein the first waiting time is the current The task has been waiting for a long time, and the second waiting time is the waiting time for the current task;
[0043] Step 202, when the waiting time satisfies a preset condition, adjusting the priority of the current task;
[0044] Step 203, when a task is completed, check whether there are other tasks in the task queue with the same specific attribute identifier and lower priority than the completed task;
[0045] Step 204 : When it is found in the task queue that there are other tasks with the same specific attribute identifier and lower priority than the completed...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 