| CPC G06F 9/4893 (2013.01) | 13 Claims |

|
1. A scheduling method, performed by a terminal device having a multi-core CPU architecture, a temperature sensor, an Energy Aware Scheduling (EAS) scheduler, and a graphics processing unit (GPU), comprising:
acquiring, by the temperature sensor, temperatures of the terminal device in two adjacent monitoring periods;
determining, by the EAS scheduler, a temperature change level based on a first temperature difference between the adjacent monitoring periods, wherein the temperature change level comprises a first level, a second level, and a third level; and
adjusting dynamically, by the EAS scheduler, a corresponding CPU scheduling strategy based on the temperature change level, to maintain a temperature of the terminal device below a temperature warning value, wherein the CPU scheduling strategy comprises at least one of following:
disabling a large core cluster in the CPU, restricting a frequency of a medium core cluster in the CPU, restricting a frequency of the GPU, and clearing preset applications run in a background, in response to that the temperature change level is the first level;
restricting frequencies of a large core cluster and a medium core cluster in the CPU, and reducing a CPU occupancy rate of applications run in a background, in response to that the temperature change level is the second level; or
maintaining a current running state of a CPU core cluster, in response to that the temperature change level is the third level.
|