CPC G06F 9/4843 (2013.01) [G06F 9/3836 (2013.01); G06F 9/4881 (2013.01); G06F 9/50 (2013.01); G06F 9/5038 (2013.01); G06F 18/2113 (2023.01); G06F 18/22 (2023.01); G06F 18/285 (2023.01); G06N 20/00 (2019.01)] | 19 Claims |
1. A method for managing a resource in a computer system, comprising:
obtaining data, wherein the data comprises application sequence feature data related to a current foreground application, and the data further comprises at least one of the following real-time data: a current time of the computer system, current status data of the computer system, or current location data of the computer system;
selecting, from a plurality of machine learning models based on at least one of the real-time data, a target machine learning model that matches the real-time data;
inputting the obtained data into the target machine learning model to rank a plurality of applications installed in the computer system according to their importance;
determining a quantity N of applications whose resources are to be protected, wherein a value of N meets the following condition: a ratio of a quantity of times of using N applications that are most frequently used in a past period of time to a sum of quantities of times of using all applications in the period of time is greater than a preset first threshold, and N is an integer greater than 0; and
performing resource management based on N and the importance ranking.
|