Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Inactive Publication Date: 2016-08-03
LETV HLDG BEIJING CO LTD +1
View PDF1 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, new tasks will continue to be inserted into the task queue, which will cause the following problems: there is task A in the current task queue, and its priority is lower. If tasks with a higher priority than task A are continuously inserted into the task queue, the The transcoding device will give priority to the newly inserted task with a higher priority than task A, then task A will always be in the state of waiting to be processed, resulting in task A failing to complete the transcoding within the specified time, which in turn leads to task A corresponding The video was not available to the user within the specified time, causing task A to time out

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task priority correcting method and device
  • Task priority correcting method and device
  • Task priority correcting method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a task priority correcting method and device. The method comprises the following specific steps: acquiring waiting duration of a current task in a task queue under a current priority, wherein the waiting duration comprises first waiting duration and / or second waiting duration, the first waiting duration is waiting duration of the current task, and the second waiting duration is duration needing to be waited by the current task; adjusting the priority of the current task when the waiting duration satisfies a preset condition. By adopting the task priority correcting method and device, the problem that a task with a relatively low priority in the task queue tends to be overtime in a processing process can be solved.

Description

technical field [0001] The present disclosure relates to the field of data processing, in particular to a task priority correction method and device. Background technique [0002] The source files of video and audio need to be transcoded before they can be uploaded to the server and played on the player. However, the transcoding device has limited resources and cannot handle multiple transcoding tasks at the same time. [0003] An existing method for processing tasks by a transcoding device is to process the transcoding tasks according to the priorities of the tasks in the task queue, and process tasks with higher priorities first. [0004] However, new tasks will continue to be inserted into the task queue, which will cause the following problems: there is task A in the current task queue, and its priority is lower. If tasks with a higher priority than task A are continuously inserted into the task queue, the The encoding device will give priority to the newly inserted tas...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/48
CPCG06F9/4887G06F9/46
Inventor 鲍大磊刘永华
Owner LETV HLDG BEIJING CO LTD