IP Library Granted Patent US 9,336,054
Granted Patent B2
US 9,336,054 · App. 13/728,758 · Granted May 10, 2016

Method and apparatus for configuring resource

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,336,054
App. No.
13/728,758
Granted
May 10, 2016
Kind
B2
Abstract

Embodiments of the present invention disclose a method for configuring a resource and an apparatus. The method includes: allocating a system resource to a currently active application sub-scenario in an application according to recorded system resource occupation information of the application sub-scenario of the application, where the system resource occupation information of the application sub-scenario of the application includes the system resource occupation information recorded when the application sub-scenario works in a process of testing the application after the application sub-scenario of the application is defined. With the present invention, the system resource is configured for the application sub-scenario at a single attempt. Therefore, enough system resources are ensured to meet the requirements for running the currently active application sub-scenario of the application, the running performance is ensured, and the adjustment time and the power consumption are saved.

Claims (39)

1. A method for configuring system resource within an electronic device, comprising:

allocating system resource within the same electronic device to correspond to only a currently active application sub-scenario within an application according to previously recorded system resource occupation information for the application sub-scenario within the application, wherein:

the application sub-scenario within the application comprises performing a relevant portion of an entire function from running only a partial portion of the entire active application within the same electronic device;

defining an application sub-scenario of a new application according to a use scenario of the newly added application when the newly added application is detected;

testing the newly added application, and recording system resource occupation information of the defined application sub-scenario of the newly added application when the defined application sub-scenario works in the test process;

if the active application includes a mutually exclusive application of the application, shut down or forbid scheduling of the mutually exclusive application, and allocate a system resource to the currently active application sub-scenario of the application according to the recorded system resource occupation information of the application sub-scenario of the application; and

the previously recorded system resource occupation information of the application sub-scenario within the application were priorly performed when the application sub-scenario works in a process of testing the application after the currently active application sub-scenario within the application is defined.

2. The method according to claim 1 , wherein prior to allocating the system resource to the currently active application sub-scenario within the application according to the previously recorded system resource occupation information, the method further comprises:

defining an application sub-scenario of the application according to a use scenario of the application; and

testing the application, and recording system resource occupation information of the defined application sub-scenario of the application when the application sub-scenario works in the test process.

3. The method according to claim 1 , further comprising:

defining an application sub-scenario of a modified application according to a use scenario of the modified application when modification of the application is detected; and

testing the modified application, and recording system resource occupation information of the defined application sub-scenario of the modified application when the application sub-scenario works in the test process.

4. The method according to claim 1 , further comprising:

deleting an application sub-scenario defined for a deleted application and system resource occupation information of the application sub-scenarios, when a deletion of the application is detected; and/or

deleting a deleted application sub-scenario of the application and system resource occupation information of the application sub-scenario, when deletion of the application sub-scenario of the application is detected.

5. An apparatus, comprising:

a processor, configured to allocate system resource within the same apparatus to correspond to only a currently active application sub-scenario within an application according to previously recorded system resource occupation information for the application sub-scenario within the application, wherein:

the application sub-scenario within the application comprises performing a relevant portion of an entire function from running only a partial portion of the entire active application within the same apparatus;

the apparatus is configured to:

define an application sub-scenario of a new application according to a use scenario of the newly added application when the newly added application is detected;

test the newly added application, and record system resource occupation information of the defined application sub-scenario of the newly added application when the defined application sub-scenario works in the test process;

if the active application includes a mutually exclusive application of the application, shut down or forbid scheduling of the mutually exclusive application, and allocate a system resource to the currently active application sub-scenario of the application according to the recorded system resource occupation information of the application sub-scenario of the application; and

the previously recorded system resource occupation information of the application sub-scenario within the application were priorly performed when the application sub-scenario works in a process of testing the application after the currently active application sub-scenario within the application is defined.

6. The apparatus according to claim 5 , wherein:

the processor is further configured to: define an application sub-scenario of a new application according to a use scenario of the newly added application when the newly added application is detected, test the newly added application, and record system resource occupation information of the defined application sub-scenario of the newly added application when the application sub-scenario works in the test process.

7. The apparatus according to claim 5 , wherein:

the processor is further configured to: define an application sub-scenario of a modified application according to a use scenario of the modified application when modification of the application is detected, test the modified application, and record system resource occupation information of the defined application sub-scenario of the modified application when the application sub-scenario works in the test process.

8. The apparatus according to claim 5 , wherein:

the processor is further configured to delete an application sub-scenario defined for a deleted application and system resource occupation information of the application sub-scenario when a deletion of the application is detected;

and/or, further configured to delete a deleted application sub-scenario of the application and system resource occupation information of the application sub-scenario when deletion of the application sub-scenario of the application is detected.

9. The apparatus according to claim 5 wherein the apparatus is implemented in an electronic device.

10. A non-transitory computer readable storage medium storing a computer program code, the computer program code comprising instructions for executing a method by a computer for configuring system resource within an electronic device, comprising:

allocating system resource within the same electronic device to correspond to only a currently active application sub-scenario within an application according to previously recorded system resource occupation information for the application sub-scenario within the application, wherein:

the application sub-scenario within the application comprises performing a relevant portion of an entire function from running only a partial portion of the entire active application within the same electronic device;

defining an application sub-scenario of a new application according to a use scenario of the newly added application when the newly added application is detected;

testing the newly added application, and recording system resource occupation information of the defined application sub-scenario of the newly added application when the defined application sub-scenario works in the test process;

if the active application includes a mutually exclusive application of the application, shut down or forbid scheduling of the mutually exclusive application, and allocate a system resource to the currently active application sub-scenario of the application according to the recorded system resource occupation information of the application sub-scenario of the application; and

the previously recorded system resource occupation information of the application sub-scenario within the application were priorly performed when the application sub-scenario works in a process of testing the application after the currently active application sub-scenario within the application is defined.

Assignments (3)
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 27, 2012
From: WEI, KONGGANG; ZHENG, ZHIMIN; ZHONG, GUANGHUA
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 029535/0972 →