Resource Scheduling Method and Terminal Device
AssigneeHuawei Technologies Co., Ltd.
InventorsFei Wang, Zhenning Wang, Haibo Chen, Jian Cheng, Hongjiang Zhao, Shanxi Chen
Life of this patent
Estimating the term…
Abstract
A resource scheduling method implemented by a device, where the resource scheduling method includes determining a load characteristic of a frame drawing thread, where the frame drawing thread draws an image frame determining a target resource scheduling manner based on the load characteristic, and scheduling a resource for the frame drawing thread in the target resource scheduling manner.
Claims20
A resource scheduling method implemented by a device, wherein the resource scheduling method comprises:
- determining an association thread of a frame drawing thread, wherein the frame drawing thread draws an image frame and the association thread is capable of causing the frame drawing thread to sleep;
- scheduling a first resource for the association thread to accelerate execution of the association thread;
- determining a first load characteristic of the frame drawing thread;
- determining a predicted load value of the frame drawing thread based on the first load characteristic;
- determining a target resource scheduling manner based on the first load characteristic and the predicted load value;
- and
- scheduling a second resource for the frame drawing thread in the target resource scheduling manner,
- wherein the second resource comprises at least one of a computing resource or a storage resource.
A resource scheduling method implemented by a terminal device, wherein the resource scheduling method comprises:
- determining an association thread of a frame drawing thread, wherein the frame drawing thread draws an image frame and the association thread is capable of causing the frame drawing thread to sleep;
- scheduling a first resource for the association thread to accelerate execution of the association thread;
- determining a load characteristic of the frame drawing thread;
- determining a target predicted load value of the frame drawing thread based on the load characteristic and an application scenario corresponding to the frame drawing thread;
- determining a target resource scheduling manner based on the load characteristic, the target predicted load value, and a preset target frame rate;
- and
- scheduling a second resource for the frame drawing thread in the target resource scheduling manner.
A resource scheduling apparatus comprising:
- a bus;
- a memory configured to store computer instructions;
- and
- one or more processors coupled to the memory using the bus, and configured to execute the computer instructions to cause the resource scheduling apparatus to:
- determine an association thread of a frame drawing thread, wherein the frame drawing thread draws an image frame and the association thread is capable of causing the frame drawing thread to sleep;
- schedule a first resource for the association thread to accelerate execution of the association thread;
- determine a first load characteristic of the frame drawing thread;
- determine a predicted load value of the frame drawing thread based on the first load characteristic;
- determine a target resource scheduling manner based on the first load characteristic, the predicted load value, and a preset target frame rate;
- and
- schedule a second resource for the frame drawing thread in the target resource scheduling manner.
Dependencies are inferred from the claim text.