US2023413304A1PendingUtilityA1

Resource Scheduling Method and Terminal Device

Assignee: HUAWEI TECH CO LTDPriority: Oct 11, 2018Filed: Aug 15, 2023Published: Dec 21, 2023
Est. expiryOct 11, 2038(~12.2 yrs left)· nominal 20-yr term from priority
H04W 72/52H04W 72/0446H04W 72/0466H04W 72/1263G06F 9/505G06F 1/329G06F 9/4881G06T 1/20G06F 9/5094Y02D10/00G06F 9/5077
68
PatentIndex Score
0
Cited by
0
References
0
Claims

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.

Claims

exact text as granted — not AI-modified
1 . 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.   
     
     
         2 . The resource scheduling method of  claim 1 , wherein the first load characteristic indicates a resource requirement feature of the frame drawing thread. 
     
     
         3 . The resource scheduling method of  claim 1 , wherein the first load characteristic comprises at least one of an average quantity of cycles per instruction (CPI), a quantity of branch instructions, or a cache miss rate of the frame drawing thread. 
     
     
         4 . The resource scheduling method of  claim 1 , further comprising determining the first load characteristic based on at least one of an average quantity of cycles per instruction (CPI), a quantity of branch instructions, or a cache miss rate of the frame drawing thread in a first time interval, wherein the first time interval is a period of time between a start of execution of the frame drawing thread and an end of the execution of the frame drawing thread. 
     
     
         5 . The resource scheduling method of  claim 1 , further comprising further determining the target resource scheduling manner based on a preset target frame rate. 
     
     
         6 . The resource scheduling method of  claim 5 , wherein determining the target resource scheduling manner comprises:
 determining a plurality of resource scheduling manners based on the first load characteristic, the predicted load value, and the preset target frame rate; and   determining a resource scheduling manner with a lowest power consumption in the resource scheduling manners as the target resource scheduling manner.   
     
     
         7 . The resource scheduling method of  claim 1 , further comprising determining the target resource scheduling manner based on the first load characteristic, the predicted load value, and first mapping relationship information, wherein the first mapping relationship information comprises a plurality of pieces of load information and a resource scheduling manner corresponding to each of the pieces of load information, and wherein each of the pieces of load information comprises one load characteristic and one load value. 
     
     
         8 . The resource scheduling method of  claim 5 , further comprising determining the predicted load value based on the first load characteristic and second mapping relationship information, wherein the second mapping relationship information comprises a plurality of load characteristics and a load value corresponding to each of the load characteristics. 
     
     
         9 . The resource scheduling method of  claim 8 , further comprising determining a load value corresponding to a reference load characteristic as the predicted load value when the load characteristics in the second mapping relationship information comprise the reference load characteristic, wherein a similarity between the reference load characteristic and the first load characteristic is greater than or equal to a similarity threshold. 
     
     
         10 . The resource scheduling method of  claim 8 , further comprising determining, as the predicted load value, a load value of a frame preceding the image frame that is drawn using the frame drawing thread when the load characteristics in the second mapping relationship information do not comprise a reference load characteristic, wherein a similarity between the reference load characteristic and the first load characteristic is greater than or equal to a similarity threshold. 
     
     
         11 . The resource scheduling method of  claim 1 , further comprising determining the target resource scheduling manner based on the first load characteristic and third mapping relationship information, wherein the third mapping relationship information comprises a plurality of load characteristics and a resource scheduling manner corresponding to each of the load characteristics. 
     
     
         12 . The resource scheduling method of  claim 11 , further comprising determining a first resource scheduling manner corresponding to a reference load characteristic as the target resource scheduling manner when the load characteristics in the third mapping relationship information comprise the reference load characteristic, wherein a similarity between the reference load characteristic and the first load characteristic is greater than or equal to a similarity threshold. 
     
     
         13 . The resource scheduling method of  claim 11 , wherein a frame preceding the image frame that is drawn using the frame drawing thread comprises a second frame drawing thread, wherein the resource scheduling method further comprises determining, as the target resource scheduling manner when the load characteristics in the third mapping relationship information do not comprise a reference load characteristic, a second resource scheduling manner of the second frame drawing thread, and wherein a similarity between the reference load characteristic and the first load characteristic is greater than or equal to a similarity threshold. 
     
     
         14 . The resource scheduling method of  claim 1 , wherein when execution of the frame drawing thread is not completed within a predetermined time, the resource scheduling method further comprises scheduling an additional resource for the frame drawing thread to accelerate the execution of the frame drawing thread, and wherein the predetermined time is a time required for completing the execution of the frame drawing thread when a resource is scheduled for the frame drawing thread in the target resource scheduling manner. 
     
     
         15 . The resource scheduling method of  claim 14 , wherein a positive correlation relationship is between a size of the additional resource and a first difference, and wherein the first difference is between a time point of scheduling the additional resource and an end time point of the predetermined time. 
     
     
         16 . 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.   
     
     
         17 . The resource scheduling method of  claim 16 , further comprising:
 determining a first predicted load value of the frame drawing thread based on the load characteristic;   determining a second predicted load value based on the application scenario and fourth mapping relationship information, wherein the fourth mapping relationship information comprises a plurality of application scenarios and a load value corresponding to each of the application scenarios; and   further determining the target predicted load value based on the first predicted load value and the second predicted load value.   
     
     
         18 . The resource scheduling method of  claim 16 , wherein the load characteristic comprises at least one of an average quantity of cycles per instruction (CPI), a quantity of branch instructions, or a cache miss rate of the frame drawing thread. 
     
     
         19 . 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. 
   
     
     
         20 . The resource scheduling apparatus of  claim 19 , wherein the one or more processors are further configured to execute the computer instructions to cause the resource scheduling apparatus to:
 determine a first predicted load value of the frame drawing thread based on the load characteristic;   determine a second predicted load value based on the application scenario and fourth mapping relationship information, wherein the fourth mapping relationship information comprises a plurality of application scenarios and a load value corresponding to each of the application scenarios; and   further determine the target predicted load value based on the first predicted load value and the second predicted load value.

Join the waitlist — get patent alerts

Track US2023413304A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.