Method for resource allocation and related products
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorsYan Chen, Jie Cheng
Life of this patent
Estimating the term…
Abstract
A method apparatus for resource allocation and related products are provided. The method includes the following. An operating system acquires at least one system event associated with a target application in response to detecting that the target application is running in a foreground of the mobile terminal. The operating system identifies an internal running scenario of the target application according to the at least one system event. The operating system acquires a strategy for performance improvement corresponding to the internal running scenario. The operating system adjusts allocation of system resources of the target application according to the strategy for performance improvement.
Claims7
A method for resource allocation in a mobile terminal, the mobile terminal having an operating system and at least one application, the method being performed by the operating system and comprising:
- acquiring at least one system event associated with a target application in response to detecting that the target application is running in a foreground of the mobile terminal;
- identifying an internal running scenario of the target application according to the at least one system event;
- acquiring a strategy for performance improvement corresponding to the internal running scenario;
- and
- adjusting allocation of system resources of the target application according to the strategy for performance improvement;
- wherein the at least one system event comprises a touch screen event, wherein the touch screen event comprises an event of touching a running interface of the target application, and wherein the touch screen event comprises touch position information,
- wherein identifying the internal running scenario of the target application according to the at least one system event comprises:
- determining a selected function of the target application according to the touch position information;
- and
- determining the internal running scenario of the target application according to the selected function,
- wherein the system resources comprise at least one of CPU resources, GPU resources, memory-and-bandwidth resources, disk resources, or network resources, and
- wherein adjusting the allocation of system resources of the target application comprises:
- communicating with a kernel layer of an operating system space through direct communication to adjust allocation of the system resources, wherein the direct communication refers to communicating directly through an abstract application programming interface (API) when the system resources are at least one of CPU resources, GPU resources, memory-and-bandwidth resources, or disk resources;
- and
- communicating with the kernel layer of the operating system space through indirect communication to adjust allocation of the system resources, wherein the indirect communication refers to communicating indirectly by invoking a proxy service when the system resources are network resources.
A mobile terminal comprising:
- at least one processor;
- and
- at least one memory, coupled to the at least one processor and storing at least one computer executable instruction thereon which, when executed by the at least one processor, causes the at least one processor to:
- acquire at least one system event associated with a target application in response to detecting that the target application is running in a foreground of the mobile terminal;
- identify an internal running scenario of the target application according to the at least one system event, wherein the at least one system event comprises a touch screen event, wherein the touch screen event comprises an event of touching a running interface of the target application, and wherein the touch screen event comprises touch position information;
- acquire a strategy for performance improvement corresponding to the internal running scenario;
- adjust allocation of system resources of the target application according to the strategy for performance improvement;
- determine a selected function of the target application according to the touch position information;
- and
- determine the internal running scenario of the target application according to the selected function,
- wherein the system resources comprise at least one of CPU resources, GPU resources, memory-and-bandwidth resources, disk resources, or network resources, and
- wherein to adjust the allocation of system resources of the target application comprises:
- communicate with a kernel layer of an operating system space through direct communication to adjust allocation of the system resources, wherein the direct communication refers to communicating directly through an abstract application programming interface (API) when the system resources are at least one of CPU resources, GPU resources, memory-and-bandwidth resources, or disk resources;
- and
- communicate with the kernel layer of the operating system space through indirect communication to adjust allocation of the system resources, wherein the indirect communication refers to communicating indirectly by invoking a proxy service when the system resources are network resources.
A non-transitory computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to:
- acquire at least one system event associated with a target application, when an operating system of a mobile terminal detects that the target application is running in a foreground of the mobile terminal;
- identify an internal running scenario of the target application according to the at least one system event, wherein the at least one system event comprises a touch screen event, wherein the touch screen event comprises an event of touching a running interface of the target application, and wherein the touch screen event comprises touch position information;
- acquire a strategy for performance improvement corresponding to the internal running scenario;
- adjust allocation of system resources of the target application according to the strategy for performance improvement;
- determine a selected function of the target application according to the touch position information;
- and
- determine the internal running scenario of the target application according to the selected function,
- wherein the system resources comprise at least one of CPU resources, GPU resources, memory-and-bandwidth resources, disk resources, or network resources, and
- wherein to adjust the allocation of system resources of the target application comprises:
- communicate with a kernel layer of the operating system space through direct communication to adjust allocation of the system resources, wherein the direct communication refers to communicating directly through an abstract application programming interface (API) when the system resources are at least one of CPU resources, GPU resources, memory-and-bandwidth resources, or disk resources;
- and
- communicate with the kernel layer of the operating system space through indirect communication to adjust allocation of the system resources, wherein the indirect communication refers to communicating indirectly by invoking a proxy service when the system resources are network resources.
Dependencies are inferred from the claim text.