US2025190245A1PendingUtilityA1

Resource management and control method, electronic device, storage medium, and program product

Assignee: HUAWEI TECH CO LTDPriority: Aug 12, 2022Filed: Feb 11, 2025Published: Jun 12, 2025
Est. expiryAug 12, 2042(~16 yrs left)· nominal 20-yr term from priority
Inventors:Jiajun Ma
G06F 9/445G06F 9/4881G06F 9/54G06F 9/5022G06F 9/485H04L 67/1074G06F 9/50G06F 2209/5021G06F 9/5016G06F 9/5038H04L 67/60G06F 9/4843
54
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

A resource management and control method provides a first electronic device display an interface of a first application and invokes a second application of an associated second electronic device in response to an operation on the first application to establish a first association relationship between the first application and the second application, where the first association relationship provides that the first application is in a foreground running state. The first electronic device updates the first association relationship to a second association relationship when the first application is switched from the foreground running state to a background running state, where the second association relationship includes that the first application is in the background running state, and the first electronic device keeps the first application alive based on the second association relationship.

Claims

exact text as granted — not AI-modified
1 . A resource management and control method, comprising:
 displaying, by a first electronic device, an interface of a first application;   invoking, by the first electronic device, a second application of an associated second electronic device in response to an operation on the first application, and establishing a first association relationship between the first application and the second application, wherein the first association relationship comprises the first application is in a foreground running state;   updating, by the first electronic device, the first association relationship to a second association relationship when the first application is switched from the foreground running state to a background running state, wherein the second association relationship comprises the first application is in the background running state; and   maintaining, by the first electronic device, the first application alive based on the second association relationship.   
     
     
         2 . The method according to  claim 1 , further comprising:
 managing and controlling, by the first electronic device, the first application in a first management and control manner; and   managing and controlling, by the first electronic device, the first application in a second management and control manner, wherein a management and control degree of the second management and control manner on a resource is less than a management and control degree of the first management and control manner on the resource.   
     
     
         3 . The method according to  claim 2 , wherein the maintaining, by the first electronic device, the first application alive based on the second association relationship comprises:
 when the second application is in the foreground running state, maintaining, by the first electronic device, the first application alive in a third management and control manner, wherein a management and control degree of the third management and control manner on the resource is greater than the management and control degree of the first management and control manner on the resource.   
     
     
         4 . The method according to  claim 3 , wherein the maintaining, by the first electronic device, the first application alive based on the second association relationship further comprises:
 when the second application is in the background running state, maintaining, by the first electronic device, the first application alive in a fourth management and control manner, wherein a management and control degree of the fourth management and control manner on the resource is greater than the management and control degree of the third management and control manner on the resource.   
     
     
         5 . The method according to  claim 4 , further comprising:
 when the first electronic device receives a message from the second electronic device indicating that the second application ends, or when the first electronic device detects that the second electronic device is offline, deleting, by the first electronic device, the second association relationship and managing and controlling the first application in a fifth management and control manner, wherein a management and control degree of the fifth management and control manner on the resource is greater than the management and control degree of the fourth management and control manner on the resource.   
     
     
         6 . The method according to  claim 2 , wherein the second management and control manner comprises:
 increasing a priority of a process of the first application; or   locking a priority; or   increasing a frequency of at least one of a central processing unit, a graphics processing unit, or a double data rate synchronous dynamic random access memory to process the first application.   
     
     
         7 . The method according to  claim 3 , wherein the third management and control manner comprises:
 increasing a priority of a process of the first application; or   placing a process of the first application at an end of a killable process list.   
     
     
         8 . The method according to  claim 4 , wherein the fourth management and control manner comprises:
 maintaining the first application alive within a preset time.   
     
     
         9 . The method according to  claim 5 , wherein the fifth management and control manner comprises:
 decreasing a priority of a process of the first application; or   freezing the first application when system memory is less than a preset memory value; or   clearing the first application when system memory is less than a preset memory value.   
     
     
         10 . The method according to  claim 1 , further comprising:
 deleting, by the first electronic device, the second association relationship when the first electronic device detects, through listening, that the first application ends.   
     
     
         11 . The method according to  claim 1 , wherein the establishing a first association relationship between the first application and the second application comprises:
 receiving an invocation result sent by the second electronic device; and   establishing the first association relationship between the first application and the second application based on the result.   
     
     
         12 . An electronic device including at least one processor and at least one memory, the at least one memory being configured to store program instructions that, when executed by the at least one processor, cause the electronic device to:
 display an interface of a first application;   invoke a second application of an associated second electronic device in response to an operation on the first application, and establish a first association relationship between the first application and the second application, wherein the first association relationship comprises that the first application is in a foreground running state;   update the first association relationship to a second association relationship when the first application is switched from the foreground running state to a background running state, wherein the second association relationship comprises that the first application is in the background running state; and   maintain the first application alive based on the second association relationship.   
     
     
         13 . The electronic device according to  claim 12 , wherein execution of the instructions by the at least one processor further cause the electronic device to:
 manage and control the first application in a first management and control manner; and   manage and control the first application in a second management and control manner, wherein a management and control degree of the second management and control manner on a resource is less than a management and control degree of the first management and control manner on the resource.   
     
     
         14 . The electronic device according to  claim 13 , wherein execution of the instructions by the at least one processor further cause the electronic device to:
 when the second application is in the foreground running state, maintain the first application alive in a third management and control manner, wherein a management and control degree of the third management and control manner on the resource is greater than the management and control degree of the first management and control manner on the resource.   
     
     
         15 . The electronic device according to  claim 14 , wherein execution of the instructions by the at least one processor further cause the electronic device to:
 when the second application is in the background running state, maintain the first application alive in a fourth management and control manner, wherein a management and control degree of the fourth management and control manner on the resource is greater than the management and control degree of the third management and control manner on the resource.   
     
     
         16 . The electronic device according to  claim 15 , wherein execution of the instructions by the at least one processor further cause the electronic device to:
 when the electronic device receives a message from the second electronic device indicating that the second application ends, or when the electronic device detects that the second electronic device is offline, delete the second association relationship, and manage and control the first application in a fifth management and control manner, wherein a management and control degree of the fifth management and control manner on the resource is greater than the management and control degree of the fourth management and control manner on the resource.   
     
     
         17 . The electronic device according to  claim 13 , wherein the second management and control manner comprises:
 increasing a priority of a process of the first application; or   locking a priority; or   increasing a frequency of at least one of a central processing unit, a graphics processing unit, or a double data rate synchronous dynamic random access memory to process the first application.   
     
     
         18 . The electronic device according to  claim 14 , wherein the third management and control manner comprises:
 increasing a priority of a process of the first application; or   placing a process of the first application at an end of a killable process list.   
     
     
         19 . The electronic device according to  claim 15 , wherein the fourth management and control manner comprises: keeping the first application alive within a preset time. 
     
     
         20 . The electronic device according to  claim 16 , wherein the fifth management and control manner comprises:
 decreasing a priority of a process of the first application; or   freezing the first application when system memory is less than a preset memory value; or   clearing the first application when system memory is less than a preset memory value.

Join the waitlist — get patent alerts

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

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