Method and apparatus for configuring resource
First Claim
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.
3 Assignments
0 Petitions
Accused Products
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.
23 Citations
10 Claims
-
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. - View Dependent Claims (2, 3, 4)
-
-
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. - View Dependent Claims (6, 7, 8, 9)
-
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.
-
Specification