WO2019072208A1 - Procédé et dispositif de commande d'exécution d'application - Google Patents
Procédé et dispositif de commande d'exécution d'application Download PDFInfo
- Publication number
- WO2019072208A1 WO2019072208A1 PCT/CN2018/109830 CN2018109830W WO2019072208A1 WO 2019072208 A1 WO2019072208 A1 WO 2019072208A1 CN 2018109830 W CN2018109830 W CN 2018109830W WO 2019072208 A1 WO2019072208 A1 WO 2019072208A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- computing resource
- application
- mobile terminal
- running
- cpu
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
Definitions
- the present application relates to the field of mobile terminal technologies, and in particular, to an application running control method and device.
- the embodiment of the present application provides an application running control method and device, which can improve the reliability and fluency of a mobile terminal running target application.
- an embodiment of the present application provides an application running control method, including:
- an embodiment of the present application provides an application running control apparatus, including a determining unit, an obtaining unit, and an enabling unit, where
- the determining unit is configured to determine that the target application running in the foreground of the mobile terminal is in a preset internal running scenario
- the acquiring unit is configured to acquire a first computing resource of the preset internal running scenario, and acquire a second computing resource of the at least one application running in the background of the mobile terminal;
- the determining unit is further configured to determine, according to the first computing resource and the second computing resource, a configuration policy of a plurality of central processing unit CPUs of the mobile terminal;
- the enabling unit is configured to run the preset internal running scenario by using computing resources corresponding to at least one CPU allocated to the target application in the configuration policy.
- an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory, and are configured by The processor executes, the program comprising instructions for performing the steps in any of the methods of the first aspect of the embodiments of the present application.
- an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute as implemented in the present application.
- the computer comprises a mobile terminal.
- an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Apply some or all of the steps described in any of the methods of the first aspect of the embodiments.
- the computer program product can be a software installation package, the computer comprising a mobile terminal.
- the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly, obtains the first computing resource of the preset internal running scenario, and obtains the background running of the mobile terminal. Determining, by the second computing resource of the at least one application, the configuration policy of the plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource, and finally, utilizing at least the allocation policy to the target application A computing resource corresponding to a CPU runs a preset internal running scenario.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- 1A is a schematic diagram of a program running space of a smart phone
- 1B is a system architecture diagram of an Android system
- FIG. 2 is a schematic flowchart of an application running control method provided by an embodiment of the present application
- FIG. 3 is a schematic flowchart of an application running control method disclosed in an embodiment of the present application.
- FIG. 4 is a schematic flowchart of an application running control method disclosed in an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 6 is a block diagram of a functional unit of a mobile terminal disclosed in an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
- references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
- the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
- the mobile terminal involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (User Equipment, UE), mobile station (MS), terminal device, and the like.
- user devices User Equipment, UE
- MS mobile station
- terminal device terminal device
- the operating system involved in the embodiment of the present application is a software system that uniformly manages hardware resources and provides a service interface to users.
- the computing resource described in the embodiment of the present application sets the running computing resource of the mobile terminal, and also becomes the storage.
- a mobile terminal such as a smart phone is generally provided with a program running space, and the program running space includes a user space and an operating system space, wherein the user space runs one or more applications, and the one or more applications
- the program is a target application installed by the mobile terminal, and the operating system space runs an operating system with the mobile terminal.
- the mobile terminal can specifically run the Android Android system, the mobile operating system iOS developed by Apple, etc., and is not limited herein.
- the mobile terminal runs an Android system as an example, and the corresponding user space includes an application layer in the Android system, and the operating system space may include an application framework layer in the Android system.
- the application layer includes various types of applications that directly interact with the user, or a service program written in the Java language and running in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) text messages, phone dialing, picture browsers, calendars, games, maps, World Wide Web (Web) browsers, etc. Programs, as well as other applications developed by developers.
- SMS Short Messaging Service
- the application framework layer provides a set of libraries needed to develop Android applications, which can be used to reuse components, or to extend personalization through inheritance.
- the system runtime layer is the support of the application framework, providing services for the various components in the Android system.
- the system runtime layer consists of the system class library and the Android runtime.
- the Android runtime consists of a core library and a Dalvik virtual machine.
- the Linux kernel layer is used to implement core functions such as hardware device driver, process and memory management, network protocol stack, power management, and wireless communication.
- the target application runs in the user space.
- it wants to perform operations such as sending data and reading disk resources on the network, it must be completed by calling standard interface functions provided by the operating system, such as write and send.
- Call the code of the operating system space to complete the user's request operation.
- the operating system of the mobile terminal generally improves the system resource configuration, such as increasing the CPU frequency, to accelerate the running performance of the target application.
- the embodiment of the present application provides an application running control method for a target application of a mobile terminal, where the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly Obtaining a first computing resource of the preset internal running scenario, and acquiring a second computing resource of the at least one application running in the background of the mobile terminal, and determining, according to the first computing resource and the second computing resource, the multiple centralities of the mobile terminal.
- the configuration strategy of the CPU of the processing unit is finally configured to run a preset internal running scenario by using computing resources corresponding to at least one CPU allocated to the target application in the configuration policy.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- FIG. 2 is a schematic flowchart of an application running control method according to an embodiment of the present application, which is applied to a mobile terminal, where an operating system and one or more applications are run on the mobile terminal, as shown in the figure.
- the application run control methods include:
- the mobile terminal determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario.
- the target application may be, for example, a game application, an instant messaging application, a camera application, a shopping application, a video application, and the like, which are not limited herein.
- the preset internal running scenarios of different applications are generally different.
- the game application is a preset internal running scenario in the game application, for example, a group battle scene, a mall scene, a startup scene, etc., Be the only limit.
- the mobile terminal acquires a first computing resource of the preset internal running scenario, and acquires a second computing resource of the at least one application running in the background of the mobile terminal.
- the computing resource may be a preset experience value, and the first computing resource can support the current preset internal running scenario to run in a state of reliable, smooth, and picture quality, such as a frame rate of 60 and a picture quality level.
- the first computing resource may be, for example, 300 MHz, 400 MHz, 500 MHz, 1 GHz, etc., which is not limited herein.
- the second computing resource is a sum of computing resource occupancy of at least one application running in the background, and the at least one application running in the background includes the first application and the second application, and the calculation of the first application
- the resource occupancy is 50 MHz
- the computing resource occupancy of the second application is 75 MHz
- the second computing resource is 125 MHz.
- the mobile terminal determines, according to the first computing resource and the second computing resource, a configuration policy of a plurality of central processing unit CPUs of the mobile terminal.
- the mobile terminal is a multi-core CPU, and may be a dual-core, a quad-core, an eight-core, a six-core core, etc., which is not limited herein.
- the mobile terminal runs the preset internal running scenario by using computing resources corresponding to at least one CPU allocated to the target application in the configuration policy.
- the computing resources required by the preset internal running scenario of the target application may be greater than the computing resources provided by a single CPU. Therefore, multiple CPUs may be required to provide sufficient computing resources to smoothly run the preset internal running scenario. For example, a game application's team battle scenario may require 800 MHz of computing resources, and the first CPU may only provide 500 MHz of computing resources. In this case, the first CPU and the second CPU are required to provide 800 MHz of computing resources to support the group battle scene. Running.
- the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly, obtains the first computing resource of the preset internal running scenario, and obtains the background running of the mobile terminal. Determining, by the second computing resource of the at least one application, the configuration policy of the plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource, and finally, utilizing at least the allocation policy to the target application A computing resource corresponding to a CPU runs a preset internal running scenario.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- the configuration policy includes a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, and the computing resource allocation of each CPU includes an application that is currently allocated to the mobile terminal.
- the computing resources for each application includes a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, and the computing resource allocation of each CPU includes an application that is currently allocated to the mobile terminal. The computing resources for each application.
- the computing resource allocated to each application may specifically include a computing resource allocated to at least one process of each application, and the type of the process includes at least one of the following: an empty process, a background process, a service process, Visible processes and foreground processes. That is to say, the computing resource management of the mobile terminal can be refined to the process level, thereby more accurately allocating computing resources.
- the mobile terminal determines, according to the first computing resource and the second computing resource, a configuration policy of a plurality of central processing unit CPUs of the mobile terminal, including: the mobile terminal according to the Determining, by the first computing resource and the second computing resource, the number of CPUs that need to be additionally enabled and the application that needs to be shut down; establishing a mapping between computing resources of each CPU and an application that is not closed according to the resource balancing allocation policy relationship.
- the computing resources that each CPU of the mobile terminal can provide may be the same or different.
- the resource balancing policy specifically refers to the proportion of the computing resources allocated by each CPU and the computing resources that can be provided by itself. If the mobile terminal initially enables the first CPU, it is determined that the second CPU needs to be additionally enabled, and the computing resource that the first CPU can provide is 800 MHz, and the computing resource that the second CPU can provide is 500 MHz, the current target application.
- the computing resource required for the preset internal running scenario is 400 MHz
- the application that is not closed in at least one application includes the first application and the second application, and the computing resource required by the first application is 150 MHz
- the computing resource required by the application is 100 MHz
- the mobile terminal can determine that the 400 MHz computing resource of the first CPU establishes a first mapping relationship with the target application, and determines that the 150 MHz computing resource of the second CPU is established with the first application. a second mapping relationship, and determining a 100 MHz computing resource of the second CPU to establish a third mapping with the second application System, so that the first CPU and the second CPU memory usage is 50% to achieve a better balance resources.
- the mobile terminal first accurately determines the number of CPUs that need to be additionally enabled and the application that needs to be shut down based on the first computing resource and the second computing resource, and secondly, establishes computing resources of each CPU according to the resource balancing allocation policy.
- the mapping relationship with the application that is not closed so that the usage rate of each CPU in the CPU enabled by the mobile terminal is as close as possible, which is beneficial to balance system resources, and is beneficial to maintain system stability and power consumption balance.
- the mobile terminal determines, according to the first computing resource and the second computing resource, the number of CPUs that need to be enabled and an application that needs to be closed, including: the mobile terminal determines the mobile a first maximum computing resource that the CPU currently enabled by the terminal can provide and a second maximum computing resource that can be provided by all CPUs of the mobile terminal;
- the mobile terminal determines that there is no need to additionally enable the CPU, and does not need to close any of the at least one application An application;
- the mobile terminal is configured according to the first computing resource and The sum of the second computing resource and the first maximum computing resource determine at least one CPU that needs to be additionally enabled, and does not need to close any of the at least one application;
- the mobile terminal closes one or more applications in descending order of application priority, and according to The first computing resource and computing resources of the application that are not closed in the at least one application determine at least one CPU that needs to be additionally enabled.
- the mobile terminal can flexibly determine the CPU that needs to be additionally enabled and needs to be closed based on the relationship between the sum of the first computing resource and the second computing resource and the first maximum computing resource and the second largest computing resource.
- the application to maintain system stability, to avoid memory overflow caused by system crashes, etc., is conducive to improving the intelligence and reliability of the control target application.
- the mobile terminal determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, including: the mobile terminal acquiring a key performance parameter of the target application running in the foreground of the mobile terminal; The key performance parameter determines that the target application is in a preset internal running scenario; or the mobile terminal acquires a scenario identifier sent by the target application running in the foreground of the mobile terminal; and determines an internal running scenario corresponding to the scenario identifier.
- a preset internal running scenarios including: the mobile terminal acquiring a key performance parameter of the target application running in the foreground of the mobile terminal; The key performance parameter determines that the target application is in a preset internal running scenario; or the mobile terminal acquires a scenario identifier sent by the target application running in the foreground of the mobile terminal; and determines an internal running scenario corresponding to the scenario identifier.
- the key performance parameters include various system status parameters and/or information such as interface identifier, user interaction record, and frame rate of the target application during operation.
- the operating system analyzes and quickly determines the internal running scenario. It is beneficial to improve the real-time performance of internal operation scene confirmation.
- the target application is required to have the scenario recognition capability, and the scenario identifier is transmitted to the operating system when the current internal running scenario is identified, so that the operating system can identify the scenario based on the scenario. Accurately determine the preset internal running scenario and improve the accuracy of internal running scenario confirmation.
- FIG. 3 is a schematic flowchart of an application running control method according to an embodiment of the present disclosure, which is applied to a mobile terminal, where the mobile terminal runs. Mobile terminal and one more application. As shown in the figure, the application running control method includes:
- the mobile terminal acquires a key performance parameter of a target application that is run by the mobile terminal in the foreground.
- the mobile terminal determines, according to the key performance parameter, that the target application is in a preset internal running scenario.
- the mobile terminal acquires a first computing resource of the preset internal running scenario, and acquires a second computing resource of the at least one application running in the background of the mobile terminal.
- the mobile terminal determines, according to the first computing resource and the second computing resource, a number of CPUs that need to be additionally enabled, and an application that needs to be shut down.
- the mobile terminal establishes a mapping relationship between a computing resource of each CPU and an application that is not closed according to a resource balancing allocation policy.
- the mobile terminal runs the preset internal running scenario by using computing resources corresponding to at least one CPU allocated to the target application in the configuration policy.
- the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly, obtains the first computing resource of the preset internal running scenario, and obtains the background running of the mobile terminal. Determining, by the second computing resource of the at least one application, the configuration policy of the plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource, and finally, utilizing at least the allocation policy to the target application A computing resource corresponding to a CPU runs a preset internal running scenario.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- the key performance parameters can be directly collected by the target application and transmitted to the operating system in real time, and then analyzed by the operating system to quickly determine the internal running scenario, it is beneficial to improve The real-time nature of the internal running scene confirmation.
- FIG. 4 is a schematic flowchart of an application running control method according to an embodiment of the present disclosure, which is applied to a mobile terminal, where the mobile terminal runs. Mobile terminal and one or more applications. As shown in the figure, the application running control method includes:
- the mobile terminal acquires a key performance parameter of a target application that is run by the mobile terminal in the foreground.
- the mobile terminal determines, according to the key performance parameter, that the target application is in a preset internal running scenario.
- the mobile terminal acquires a first computing resource of the preset internal running scenario, and acquires a second computing resource of the at least one application running in the background of the mobile terminal.
- the mobile terminal determines a first maximum computing resource that the CPU currently enabled by the mobile terminal can provide and a second maximum computing resource that can be provided by all CPUs of the mobile terminal.
- the mobile terminal establishes a mapping relationship between a computing resource of each CPU and an application that is not closed according to a resource balancing allocation policy.
- the mobile terminal runs the preset internal running scenario by using computing resources corresponding to at least one CPU allocated to the target application in the configuration policy.
- the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly, obtains the first computing resource of the preset internal running scenario, and obtains the background running of the mobile terminal. Determining, by the second computing resource of the at least one application, the configuration policy of the plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource, and finally, utilizing at least the allocation policy to the target application A computing resource corresponding to a CPU runs a preset internal running scenario.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- the key performance parameters can be directly collected by the target application and transmitted to the operating system in real time, and then analyzed by the operating system to quickly determine the internal running scenario, it is beneficial to improve The real-time nature of the internal running scene confirmation.
- the mobile terminal can flexibly determine an CPU that needs to be additionally enabled and an application that needs to be closed based on a relationship between a sum of the first computing resource and the second computing resource and the first maximum computing resource and the second largest computing resource, In order to maintain system stability and avoid memory overflow, the system crashes, which is beneficial to improve the intelligence and reliability of the control target application.
- FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
- the mobile terminal runs one or more An application and an operating system, as shown, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are different from the one or more applications, and The one or more programs are stored in the memory and configured to be executed by the processor, the program including instructions for performing the following steps;
- the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly, obtains the first computing resource of the preset internal running scenario, and obtains the background running of the mobile terminal. Determining, by the second computing resource of the at least one application, the configuration policy of the plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource, and finally, utilizing at least the allocation policy to the target application A computing resource corresponding to a CPU runs a preset internal running scenario.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- the configuration policy includes a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, and the computing resource allocation of each CPU includes an application that is currently allocated to the mobile terminal.
- the computing resources for each application includes a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, and the computing resource allocation of each CPU includes an application that is currently allocated to the mobile terminal. The computing resources for each application.
- an instruction in the program is specifically used. And performing the following operations: determining, according to the first computing resource and the second computing resource, a number of CPUs that need to be additionally enabled, and an application that needs to be shut down; and establishing a computing resource of each CPU according to a resource balancing allocation policy. Close the mapping relationship between applications.
- the instructions in the program are specifically configured to be executed in terms of determining the number of CPUs that need to be enabled according to the first computing resource and the second computing resource, and an application that needs to be shut down.
- the sum of the first computing resource and the second computing resource is greater than the first maximum computing resource and less than or equal to the second maximum computing resource, according to the first computing resource and the second Calculating a sum of the resources and the first maximum computing resource determines at least one CPU that needs to be additionally enabled, and does not need to close any of the at least one application;
- the computing resource and computing resources of the application that are not closed in the at least one application determine at least one CPU that needs to be additionally enabled.
- the instructions in the program are specifically configured to: acquire the target application running in the foreground of the mobile terminal a key performance parameter of the program; determining, according to the key performance parameter, that the target application is in a preset internal running scenario; or acquiring a scenario identifier sent by the target application running in the foreground of the mobile terminal; determining corresponding to the scenario identifier
- the internal running scenario is a preset internal running scenario.
- Fig. 6 is a block diagram showing a possible functional unit composition of the application execution control device involved in the embodiment.
- the application running control device 600 is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more applications, and the application running control device 600 includes a determining unit 601, an obtaining unit 602, and an enabling unit 603, where
- the determining unit 601 is configured to determine that the target application running in the foreground of the mobile terminal is in a preset internal running scenario
- the acquiring unit 602 is configured to acquire a first computing resource of the preset internal running scenario, and acquire a second computing resource of the at least one application running in the background of the mobile terminal;
- the determining unit 601 is further configured to determine, according to the first computing resource and the second computing resource, a configuration policy of a plurality of central processing unit CPUs of the mobile terminal;
- the enabling unit 603 is configured to run the preset internal running scenario by using computing resources corresponding to at least one CPU allocated to the target application in the configuration policy.
- the mobile terminal first determines that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, and secondly, obtains the first computing resource of the preset internal running scenario, and obtains the background running of the mobile terminal. Determining, by the second computing resource of the at least one application, the configuration policy of the plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource, and finally, utilizing at least the allocation policy to the target application A computing resource corresponding to a CPU runs a preset internal running scenario.
- the mobile terminal can accurately allocate resources according to the internal running scenario of the target application in combination with the current system resource occupancy, and avoids that other applications occupy too much computing resources and affect the running state of the current internal running scenario, which is beneficial to improving the target application. Preset the reliability and fluency of the internal running scene operation.
- the configuration policy includes a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, and the computing resource allocation of each CPU includes an application that is currently allocated to the mobile terminal.
- the computing resources for each application includes a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, and the computing resource allocation of each CPU includes an application that is currently allocated to the mobile terminal. The computing resources for each application.
- the determining unit 601 is specifically configured to determine, according to the first computing resource and the second computing resource, a configuration policy of a plurality of central processing unit CPUs of the mobile terminal. Determining, according to the first computing resource and the second computing resource, a number of CPUs that need to be additionally enabled and an application that needs to be shut down; and establishing a computing resource of each CPU and an application that is not closed according to the resource balancing allocation policy The mapping relationship between them.
- the determining unit 601 is specifically configured to: determine, according to the first computing resource and the second computing resource, the number of CPUs that need to be enabled and the application that needs to be shut down. a first maximum computing resource that the CPU currently enabled by the mobile terminal can provide and a second maximum computing resource that can be provided by all CPUs of the mobile terminal;
- the sum of the first computing resource and the second computing resource is greater than the first maximum computing resource and less than or equal to the second maximum computing resource, according to the first computing resource and the second Calculating a sum of the resources and the first maximum computing resource determines at least one CPU that needs to be additionally enabled, and does not need to close any of the at least one application;
- the computing resource and computing resources of the application that are not closed in the at least one application determine at least one CPU that needs to be additionally enabled.
- the determining unit 601 is specifically configured to: acquire key performance of the target application running in the foreground of the mobile terminal. Determining, according to the key performance parameter, that the target application is in a preset internal running scenario; or acquiring a scenario identifier sent by the target application running in the foreground of the mobile terminal; determining that the internal running scenario corresponding to the scenario identifier is Preset internal running scenarios.
- unit as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
- a processor shared, dedicated or chipset
- memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
- the determining unit 601 and the enabling unit 603 may be a processor or a controller, and the obtaining unit 602 may be an internal communication interface between the processor and the program running space, such as a communication interface between the processor and the operating system space, or a processor and Communication interface of user space, etc.
- FIG. 7 is a schematic structural diagram of a smart phone 700 suitable for the above application running control method according to an embodiment of the present application.
- the smart phone 700 includes: a housing 710, a touch display screen 720, and a main board. 730, the battery 740 and the sub-board 750, the main board 730 is provided with a front camera 731, a processor 732, a memory 733, a power management chip 734, etc., the sub-board is provided with a vibrator 751, an integrated sound chamber 752, a VOOC flash charging interface 753 And a fingerprint identification module 754.
- the smart phone 700 is configured to determine that the target application running in the foreground of the mobile terminal is in a preset internal running scenario; and acquiring the first computing resource of the preset internal running scenario, and acquiring at least one application running in the background of the mobile terminal. a second computing resource; and determining, according to the first computing resource and the second computing resource, a configuration policy of a plurality of central processing unit CPUs of the mobile terminal; and assigning to the target by using the configuration policy
- the computing resource corresponding to the at least one CPU of the application runs the preset internal running scenario.
- the processor 732 is a control center of the smartphone, and connects various parts of the entire smartphone by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 733, and calling the storage in the memory 733.
- the processor 732 may include one or more processing units; preferably, the processor 732 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the modem processor may also not be integrated into the processor 732.
- the processor 732 can be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), and field programmable. Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
- the memory 733 can be used to store software programs and modules, and the processor 732 executes various functional applications and data processing of the smartphone by running software programs and modules stored in the memory 733.
- the memory 733 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the smartphone, and the like.
- the memory 733 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the memory 733 can be, for example, a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory (EPROM), and an electrically erasable memory.
- RAM random access memory
- ROM read only memory
- EPROM erasable programmable read only memory
- EEPROM Electrically erasable memory.
- registers hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
- the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to execute part or all of any of the methods described in the method embodiment.
- the computer includes a mobile terminal.
- the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute as described in the method embodiment Part or all of the steps of either method.
- the computer program product can be a software installation package, the computer comprising a mobile terminal.
- the disclosed apparatus may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
- the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
- a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
- the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
- ROM Read-Only Memory
- RAM Random Access Memory
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
- Telephonic Communication Services (AREA)
Abstract
Selon des modes de réalisation, la présente invention concerne un procédé et un dispositif de commande d'exécution d'application. Le procédé comprend les étapes qui consistent : à déterminer qu'une application cible s'exécutant à l'avant-plan d'un terminal mobile fait partie d'un scénario d'exécution interne prédéfini ; à obtenir une première ressource informatique du scénario d'exécution interne prédéfini, et une seconde ressource informatique d'au moins une application s'exécutant à l'arrière-plan du terminal mobile ; à déterminer des stratégies de configuration de plusieurs processeurs (CPU) du terminal mobile en fonction de la première et de la seconde ressource informatique ; et à exécuter le scénario d'exécution interne prédéfini à l'aide de la ressource informatique correspondant au(x) CPU attribué(s) à l'application cible dans les stratégies de configuration. Les modes de réalisation de la présente invention participent à la fiabilité et la fluidité de l'exécution d'une application cible dans un terminal mobile.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710941844.XA CN107832141A (zh) | 2017-10-11 | 2017-10-11 | 应用程序运行控制方法及设备 |
CN201710941844.X | 2017-10-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019072208A1 true WO2019072208A1 (fr) | 2019-04-18 |
Family
ID=61647839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/109830 WO2019072208A1 (fr) | 2017-10-11 | 2018-10-11 | Procédé et dispositif de commande d'exécution d'application |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107832141A (fr) |
WO (1) | WO2019072208A1 (fr) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832141A (zh) * | 2017-10-11 | 2018-03-23 | 广东欧珀移动通信有限公司 | 应用程序运行控制方法及设备 |
CN108647088A (zh) * | 2018-03-13 | 2018-10-12 | 广东欧珀移动通信有限公司 | 资源配置方法、装置、终端及存储介质 |
CN109831585B (zh) * | 2019-02-22 | 2021-06-25 | 维沃移动通信有限公司 | 一种运行参数调整方法及移动终端 |
CN110096315B (zh) * | 2019-03-22 | 2020-09-04 | 华为技术有限公司 | 一种组件加载方法和装置 |
CN110413417A (zh) * | 2019-08-02 | 2019-11-05 | 广州小鹏汽车科技有限公司 | 车载系统进程的运行优化方法、装置和系统 |
US11805013B2 (en) | 2020-01-29 | 2023-10-31 | Juniper Networks, Inc. | Prioritizing policy intent enforcement on network devices |
CN112764933A (zh) * | 2021-01-27 | 2021-05-07 | 惠州Tcl移动通信有限公司 | 一种cpu配置方法、装置、终端及计算机可读存储介质 |
CN113975816B (zh) * | 2021-12-24 | 2022-11-25 | 北京蔚领时代科技有限公司 | 一种基于hook的通过DirectX接口使用显卡的显卡分配方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110161974A1 (en) * | 2009-12-28 | 2011-06-30 | Empire Technology Development Llc | Methods and Apparatus for Parallelizing Heterogeneous Network Communication in Smart Devices |
CN103430151A (zh) * | 2012-07-06 | 2013-12-04 | 华为终端有限公司 | 一种资源配置方法及装置 |
CN103530185A (zh) * | 2012-07-02 | 2014-01-22 | 中兴通讯股份有限公司 | 资源优化方法及装置 |
CN107832141A (zh) * | 2017-10-11 | 2018-03-23 | 广东欧珀移动通信有限公司 | 应用程序运行控制方法及设备 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055070B (zh) * | 2016-05-24 | 2019-08-09 | 青岛海信移动通信技术股份有限公司 | 终端功耗控制方法及装置 |
CN106055408B (zh) * | 2016-05-31 | 2017-11-24 | 广东欧珀移动通信有限公司 | 一种应用控制方法及移动终端 |
-
2017
- 2017-10-11 CN CN201710941844.XA patent/CN107832141A/zh active Pending
-
2018
- 2018-10-11 WO PCT/CN2018/109830 patent/WO2019072208A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110161974A1 (en) * | 2009-12-28 | 2011-06-30 | Empire Technology Development Llc | Methods and Apparatus for Parallelizing Heterogeneous Network Communication in Smart Devices |
CN103530185A (zh) * | 2012-07-02 | 2014-01-22 | 中兴通讯股份有限公司 | 资源优化方法及装置 |
CN103430151A (zh) * | 2012-07-06 | 2013-12-04 | 华为终端有限公司 | 一种资源配置方法及装置 |
CN107832141A (zh) * | 2017-10-11 | 2018-03-23 | 广东欧珀移动通信有限公司 | 应用程序运行控制方法及设备 |
Also Published As
Publication number | Publication date |
---|---|
CN107832141A (zh) | 2018-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107861814B (zh) | 资源配置方法及设备 | |
WO2019072208A1 (fr) | Procédé et dispositif de commande d'exécution d'application | |
US10824470B2 (en) | Method for resource allocation and terminal device | |
CN107426432B (zh) | 资源配置方法及相关产品 | |
CN107547746B (zh) | 资源配置方法及相关产品 | |
CN107577533B (zh) | 资源配置方法及相关产品 | |
WO2020108085A1 (fr) | Procédé et appareil d'attribution de ressources, terminal et support de stockage | |
WO2019047709A1 (fr) | Procédé de configuration de ressource et produit associé | |
WO2019042171A1 (fr) | Procédé d'attribution de ressources et produit associé | |
WO2019042180A1 (fr) | Procédé d'attribution de ressources et produit associé | |
CN107479970B (zh) | 资源配置方法及相关产品 | |
CN107483725A (zh) | 资源配置方法及相关产品 | |
CN107807852B (zh) | 应用程序性能控制方法、设备及计算机可读存储介质 | |
CN107797868B (zh) | 资源调整方法及装置 | |
CN107635078B (zh) | 游戏控制方法及设备 | |
CN107450988B (zh) | 资源配置方法及相关产品 | |
CN107786748B (zh) | 图像显示方法及设备 | |
CN107995357A (zh) | 资源配置方法及装置 | |
CN107589977B (zh) | 资源配置方法,资源配置装置,移动终端及介质 | |
CN107832142B (zh) | 应用程序的资源配置方法及设备 | |
CN108536480B (zh) | 输入法配置方法及相关产品 | |
WO2019047708A1 (fr) | Procédé de configuration de ressource et produit associé | |
WO2019076213A1 (fr) | Procédé et dispositif de commande de réseau | |
CN107517306A (zh) | 资源配置方法及相关产品 | |
WO2019076254A1 (fr) | Procédé de commande d'application de jeu et dispositif |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18867139 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18867139 Country of ref document: EP Kind code of ref document: A1 |