WO2019072208A1 - Application running control method and device - Google Patents

Application running control method and device Download PDF

Info

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
Application number
PCT/CN2018/109830
Other languages
French (fr)
Chinese (zh)
Inventor
林志泳
刘美
莫瑞宏
张俊
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019072208A1 publication Critical patent/WO2019072208A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation 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/5038Allocation 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

Abstract

Disclosed in embodiments of the present application are an application running control method and device. The method comprises: determining that a target application running in the foreground of a mobile terminal is located in a preset internal running scenario; obtaining a first computing resource of the preset internal running scenario, and a second computing resource of at least one application running in the background of the mobile terminal; determining configuration strategies of multiple central processing units (CPUs) of the mobile terminal according to the first computing resource and the second computing resource; and running the preset internal running scenario by using the computing resource corresponding to the at least one CPU allocated to the target application in the configuration strategies. The embodiments of the present application facilitate the reliability and smoothness of running of a target application in a mobile terminal.

Description

应用程序运行控制方法及设备Application running control method and device 技术领域Technical field
本申请涉及移动终端技术领域,具体涉及应用程序运行控制方法及设备。The present application relates to the field of mobile terminal technologies, and in particular, to an application running control method and device.
背景技术Background technique
随着智能手机相关技术的快速发展,越来越多的应用被安装在用户手机中,如阅读类应用、支付类应用、游戏类应用、音乐类应用等,人们的衣食住行已经与手机密不可分。With the rapid development of smart phone related technologies, more and more applications are installed in user mobile phones, such as reading applications, payment applications, game applications, music applications, etc., people's clothing, food and shelter have been inseparable from mobile phones.
发明内容Summary of the invention
本申请实施例提供了应用程序运行控制方法及设备,可以提高移动终端运行目标应用程序的可靠性和流畅度。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.
第一方面,本申请实施例提供一种应用程序运行控制方法,包括:In a first aspect, an embodiment of the present application provides an application running control method, including:
确定移动终端前台运行的目标应用程序处于预设内部运行场景,获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源;Determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, acquiring the first computing resource of the preset internal running scenario, and acquiring the second computing resource of the at least one application running in the background of the mobile terminal;
根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;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;
利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。And executing the preset internal running scenario by using computing resources corresponding to the at least one CPU allocated to the target application in the configuration policy.
第二方面,本申请实施例提供一种应用程序运行控制装置,包括确定单元、获取单元和启用单元,其中,In a second aspect, 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;
所述确定单元,还用于根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;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;
所述启用单元,用于利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。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.
第三方面,本申请实施例提供一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, 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.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤,所述计算机包括移动终端。In a fourth aspect, 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. In some or all of the steps described in any of the methods of the first aspect, the computer comprises a mobile terminal.
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。In a fifth aspect, 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.
可以看出,本申请实施例中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源, 确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。It can be seen that, in the embodiment of the present application, 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.
附图说明DRAWINGS
下面将对本申请实施例所涉及到的附图作简单地介绍。The drawings referred to in the embodiments of the present application will be briefly described below.
图1A是一种智能手机的程序运行空间的示意图;1A is a schematic diagram of a program running space of a smart phone;
图1B是一种安卓系统的系统架构图;1B is a system architecture diagram of an Android system;
图2是本申请实施例提供的一种应用程序运行控制方法的流程示意图;2 is a schematic flowchart of an application running control method provided by an embodiment of the present application;
图3是本申请实施例公开的一种应用程序运行控制方法的流程示意图;3 is a schematic flowchart of an application running control method disclosed in an embodiment of the present application;
图4是本申请实施例公开的一种应用程序运行控制方法的流程示意图;4 is a schematic flowchart of an application running control method disclosed in an embodiment of the present application;
图5是本申请实施例公开的一种移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图6是本申请实施例公开的一种移动终端的功能单元组成框图;6 is a block diagram of a functional unit of a mobile terminal disclosed in an embodiment of the present application;
图7是本申请实施例公开的一种智能手机的结构示意图。FIG. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. It is a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the specification and claims of the present application and the drawings are used to distinguish different objects, and are not intended to describe a particular order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or, optionally, Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。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.
本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。本申请实施例所涉及到的操作系统是对硬件资源进行统一管理,并向用户提供业务接口的软件系统。本申请实施例所描述的计算资源设置移动终端的运行计算资源,也成为运存。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. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals. 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.
如图1A所示,目前智能手机等移动终端一般设置有程序运行空间,该程序运行空间包括用户空间和操作系统空间,其中,用户空间运行有一个或多个应用程序,该一个或多个应用程序为移动终端安装的目标应用程序,操作系统空间运行有移动终端的操作系统。该移动终端具体可以运行安卓Android系统、苹果公司开发的移动操作系统iOS等,此处不做唯一限定。如图1B所示,以所述移动终端运行有Android系统为例,对应的用户空间包括该Android系统中的应用层(Applications),操作系统空间可以包括该Android系统中 的应用程序框架层(Application Framework)、系统运行库层(包括系统运行库层Libraries和Android运行时Android Runtime)、Linux内核层(Linux Kernel)。其中,应用层上包括各类与用户直接交互的应用程序,或由Java语言编写的运行于后台的服务程序。例如,智能手机上实现的常见基本功能的程序,诸如短消息业务(Short Messaging Service,SMS)短信,电话拨号,图片浏览器,日历,游戏,地图,万维网(World Wide Web,Web)浏览器等程序,以及开发人员开发的其他应用程序。应用程序框架层提供开发Android应用程序所需的一系列类库,能够用于重用组件,也可以通过继承实现个性化的扩展。系统运行库层是应用程序框架的支撑,为Android系统中的各个组件提供服务。系统运行库层由系统类库和Android运行时构成。Android运行时包含核心库和Dalvik虚拟机两部分。Linux内核层用于实现硬件设备驱动,进程和内存管理,网络协议栈,电源管理,无线通信等核心功能。As shown in FIG. 1A, 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. As shown in FIG. 1B , 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. Framework), system runtime layer (including system runtime layer Libraries and Android runtime Android Runtime), Linux kernel layer (Linux Kernel). 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. 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.
常规设计中,目标应用程序运行在用户空间的,当它要执行网络发送数据、读取磁盘资源等动作时,必须通过调用write、send等由操作系统提供的标准接口函数来完成,即由CPU调用操作系统空间的代码来完成用户的请求操作。移动终端的操作系统一般是整体性的提高系统资源配置如提高CPU主频等来加速目标应用程序的运行性能。In the conventional design, the target application runs in the user space. When 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.
针对所述情况,本申请实施例提出一种针对移动终端的目标应用程序的应用程序运行控制方法,该方法中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源,确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。For the above situation, 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.
下面结合附图对本申请实施例进行介绍。The embodiments of the present application are described below with reference to the accompanying drawings.
请参阅图2,图2是本申请实施例提供了一种应用程序运行控制方法的流程示意图,应用于移动终端,移动终端上运行有操作系统和一个或多个应用程序,如图所示,本应用程序运行控制方法包括:Referring to FIG. 2, 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:
S201,所述移动终端确定移动终端前台运行的目标应用程序处于预设内部运行场景。S201. 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. For example, 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.
S202,所述移动终端获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源。S202. 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.
其中,所述计算资源可以是预设的经验值,该第一计算资源能够支持当前预设内部运行场景运行在可靠、流畅且画面质量达到一定要求的状态,如帧率60、画面质量等级为中等标准,该第一计算资源例如可以是300MHZ、400MHZ、500MHZ、1GHZ等,此处不做唯一限定。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. In a medium standard, the first computing resource may be, for example, 300 MHz, 400 MHz, 500 MHz, 1 GHz, etc., which is not limited herein.
其中,所述第二计算资源为后台运行的至少一个应用程序的计算资源占用量的和,如后台运行的至少一个应用程序包括第一应用程序和第二应用程序,且第一应用程序的计算资源占用量为50MHZ,第二应用程序的计算资源的占用量为75MHZ,则第二计算资源为 125MHZ。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, and the second computing resource is 125 MHz.
S203,所述移动终端根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略。S203. 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.
其中,所述移动终端为多核CPU,具体可以是双核、四核、八核、十六核等,此处不做唯一限定。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.
S204,所述移动终端利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。S204. 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.
其中,由于目标应用程序的预设内部运行场景所需要的计算资源可能大于单个CPU所能提供的计算资源,故而可能会需要多个CPU来提供足够的计算资源以流畅运行预设内部运行场景,如游戏应用程序的团战场景可能需要800MHZ计算资源,而第一CPU可能仅能够提供500MHZ计算资源,此种情况下就需要第一CPU和第二CPU合计提供800MHZ计算资源来支持该团战场景的运行。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.
可以看出,本申请实施例中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源,确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。It can be seen that, in the embodiment of the present application, 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.
在一个可能的示例中,所述配置策略包括需要额外启用的CPU的个数和每个CPU的计算资源分配,所述每个CPU的计算资源分配包括分配给所述移动终端当前运行的应用程序中每个应用程序的计算资源。In one possible example, 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.
其中,所述分配给每个应用程序的计算资源具体可以包括分配给每个应用程序的至少一个进程的计算资源,所述进程的类型包括以下至少一种:空进程、后台进程、服务进程、可见进程和前台进程。也就是说,移动终端的计算资源管理可以精细化到进程级别,从而更为精准的分配计算资源。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.
在一个可能的示例中,所述移动终端根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略,包括:所述移动终端根据所述第一计算资源和所述第二计算资源确定需要额外启用的CPU的个数以及需要关闭的应用程序;按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系。In a possible example, 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.
其中,移动终端的每个CPU所能提供的计算资源可以相同,也可以不同,资源均衡策略具体是指每个CPU被分配的计算资源与自身所能够提供的计算资源的占比应该是尽可能接近的,如移动终端初始启用了第一CPU,确定需要额外启用第二CPU,且第一CPU所能够提供的计算资源为800MHZ,第二CPU所能够提供的计算资源为500MHZ,当前目标应用程序的预设内部运行场景所需要的计算资源为400MHZ,至少一个应用程序中未被关闭的应用程序包括第一应用程序和第二应用程序,且第一应用程序所需要的计算资源为150MHZ,第二应用程序所需要的计算资源为100MHZ,则移动终端通过计算可以确定第一CPU的400MHZ计算资源与目标应用程序建立第一映射关系,确定第二CPU的150MHZ计算资源与第一应用程序建立第二映射关系,以及确定第二CPU的100MHZ计算资源与第二应用程序建立第三映射关系,从而第一CPU和第二CPU的内存使用率均为50%,达到较好的资源平衡状态。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, and 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, and 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.
可见,本示例中,移动终端首先基于第一计算资源和第二计算资源准确确定需要额外 启用的CPU的个数以及需要关闭的应用程序,其次,按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系,从而使得移动终端启用的CPU中每个CPU的使用率尽可能的接近,有利于均衡系统资源,有利于维持系统稳定性和功耗平衡。It can be seen that, in this example, 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.
在一个可能的示例中,所述移动终端根据所述第一计算资源和所述第二计算资源确定需要启用的CPU的个数以及需要关闭的应用程序,包括:所述移动终端确定所述移动终端当前启用的CPU所能提供的第一最大计算资源和所述移动终端的全部CPU所能提供的第二最大计算资源;In one possible example, 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;
若所述第一计算资源和所述第二计算资源的和小于或等于所述第一最大计算资源,则所述移动终端确定无需额外启用CPU,且无需关闭所述至少一个应用程序中的任一应用程序;If the sum of the first computing resource and the second computing resource is less than or equal to the first maximum computing resource, 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;
若所述第一计算资源和所述第二计算资源的和大于所述第一最大计算资源,且小于或等于所述第二最大计算资源,则所述移动终端根据所述第一计算资源和所述第二计算资源的和以及所述第一最大计算资源确定需要额外启用的至少一个CPU,且无需关闭所述至少一个应用程序中的任一应用程序;If 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, 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;
若所述第一计算资源和所述第二计算资源的和大于所述第二最大计算资源,则所述移动终端按照应用程序优先级由低至高的顺序关闭一个或多个应用程序,并根据所述第一计算资源和所述至少一个应用程序中未关闭的应用程序的计算资源确定需要额外启用的至少一个CPU。If the sum of the first computing resource and the second computing resource is greater than the second maximum computing resource, 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.
可见,本示例中,移动终端能够基于第一计算资源和所述第二计算资源的和与第一最大计算资源以及第二最大计算资源之间的关系,灵活确定需要额外启用的CPU和需要关闭的应用程序,以维持系统稳定性,避免内存溢出导致系统奔溃等情况发生,有利于提高控制目标应用程序运行的智能性和可靠性。It can be seen that, in this example, 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.
在一个可能的示例中,所述移动终端确定移动终端前台运行的目标应用程序处于预设内部运行场景,包括:所述移动终端获取所述移动终端前台运行的目标应用程序的关键性能参数;根据所述关键性能参数确定所述目标应用程序处于预设内部运行场景;或者,所述移动终端获取所述移动终端前台运行的目标应用程序发送的场景标识;确定所述场景标识对应的内部运行场景为预设内部运行场景。In a possible example, 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. To preset internal running scenarios.
其中,关键性能参数包括目标应用程序在运行过程中的界面标识、用户交互记录、帧率等各类系统状态参数和/或信息。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.
可见,本示例中,针对基于关键性能参数确定预设内部运行场景的方案,由于关键性能参数能够由目标应用程序直接采集,并实时传递给操作系统,再由操作系统进行分析快速确定内部运行场景,有利于提高内部运行场景确认的实时性。针对基于场景标识确定预设内部运行场景的方案,需要目标应用程序具备场景识别能力,并在识别出当前内部运行场景的情况下向操作系统传递该场景标识,以使得操作系统能够基于该场景标识准确确定预设内部运行场景,提高内部运行场景确认的准确度。It can be seen that, in this example, for the scheme of determining the preset internal running scenario based on the key performance parameters, since the key performance parameters can be directly collected by the target application and transmitted to the operating system in real time, 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. For the scenario of determining the preset internal running scenario based on the scenario identifier, 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.
与所述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种应用程序运行控制方法的流程示意图,应用于移动终端,所述移动终端上运行有移动终端和一个多个应用程序。如图所示,本应用程序运行控制方法包括:Referring to FIG. 3, 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:
S301,所述移动终端获取所述移动终端前台运行的目标应用程序的关键性能参数。S301. The mobile terminal acquires a key performance parameter of a target application that is run by the mobile terminal in the foreground.
S302,所述移动终端根据所述关键性能参数确定所述目标应用程序处于预设内部运行场景。S302. The mobile terminal determines, according to the key performance parameter, that the target application is in a preset internal running scenario.
S303,所述移动终端获取所述预设内部运行场景的第一计算资源,以及获取所述移动 终端后台运行的至少一个应用程序的第二计算资源。S303. 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.
S304,所述移动终端根据所述第一计算资源和所述第二计算资源确定需要额外启用的CPU的个数以及需要关闭的应用程序。S304. 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.
S305,所述移动终端按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系。S305. 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.
S306,所述移动终端利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。S306. 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.
可以看出,本申请实施例中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源,确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。It can be seen that, in the embodiment of the present application, 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.
此外,针对基于关键性能参数确定预设内部运行场景的方案,由于关键性能参数能够由目标应用程序直接采集,并实时传递给操作系统,再由操作系统进行分析快速确定内部运行场景,有利于提高内部运行场景确认的实时性。In addition, for the scheme of determining the preset internal running scenario based on the key performance parameters, since 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.
与所述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种应用程序运行控制方法的流程示意图,应用于移动终端,所述移动终端上运行有移动终端和一个或多个应用程序。如图所示,本应用程序运行控制方法包括: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:
S401,所述移动终端获取所述移动终端前台运行的目标应用程序的关键性能参数。S401. The mobile terminal acquires a key performance parameter of a target application that is run by the mobile terminal in the foreground.
S402,所述移动终端根据所述关键性能参数确定所述目标应用程序处于预设内部运行场景。S402. The mobile terminal determines, according to the key performance parameter, that the target application is in a preset internal running scenario.
S403,所述移动终端获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源。S403. 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.
S404,所述移动终端确定所述移动终端当前启用的CPU所能提供的第一最大计算资源和所述移动终端的全部CPU所能提供的第二最大计算资源。S404. 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.
S405,若所述第一计算资源和所述第二计算资源的和小于或等于所述第一最大计算资源,则确定无需额外启用CPU,且无需关闭所述至少一个应用程序中的任一应用程序。S405. If the sum of the first computing resource and the second computing resource is less than or equal to the first maximum computing resource, determine that there is no need to additionally enable the CPU, and do not need to close any one of the at least one application. program.
S406,若所述第一计算资源和所述第二计算资源的和大于所述第一最大计算资源,且小于或等于所述第二最大计算资源,则根据所述第一计算资源和所述第二计算资源的和以及所述第一最大计算资源确定需要额外启用的至少一个CPU,且无需关闭所述至少一个应用程序中的任一应用程序。S406, if the sum of the first computing resource and the second computing resource is greater than the first maximum computing resource, and is less than or equal to the second maximum computing resource, according to the first computing resource and the 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.
S407,若所述第一计算资源和所述第二计算资源的和大于所述第二最大计算资源,则按照应用程序优先级由低至高的顺序关闭一个或多个应用程序,并根据所述第一计算资源和所述至少一个应用程序中未关闭的应用程序的计算资源确定需要额外启用的至少一个CPU。S407. If the sum of the first computing resource and the second computing resource is greater than the second maximum computing resource, shutting down one or more applications in descending order of application priority, according to the 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.
S408,所述移动终端按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系。S408. 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.
S409,所述移动终端利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。S409. 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.
可以看出,本申请实施例中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源,确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。It can be seen that, in the embodiment of the present application, 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.
此外,针对基于关键性能参数确定预设内部运行场景的方案,由于关键性能参数能够由目标应用程序直接采集,并实时传递给操作系统,再由操作系统进行分析快速确定内部运行场景,有利于提高内部运行场景确认的实时性。In addition, for the scheme of determining the preset internal running scenario based on the key performance parameters, since 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.
此外,移动终端能够基于第一计算资源和所述第二计算资源的和与第一最大计算资源以及第二最大计算资源之间的关系,灵活确定需要额外启用的CPU和需要关闭的应用程序,以维持系统稳定性,避免内存溢出导致系统奔溃等情况发生,有利于提高控制目标应用程序运行的智能性和可靠性。Moreover, 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.
与所述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种移动终端的结构示意图,该移动终端运行有一个或多个应用程序和操作系统,如图所示,该移动终端包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序不同于所述一个或多个应用程序,且所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令;Referring to FIG. 2, FIG. 3, and FIG. 4, 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;
确定移动终端前台运行的目标应用程序处于预设内部运行场景;Determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario;
获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源;Acquiring 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;
根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;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;
利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。And executing the preset internal running scenario by using computing resources corresponding to the at least one CPU allocated to the target application in the configuration policy.
可以看出,本申请实施例中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源,确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。It can be seen that, in the embodiment of the present application, 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.
在一个可能的示例中,所述配置策略包括需要额外启用的CPU的个数和每个CPU的计算资源分配,所述每个CPU的计算资源分配包括分配给所述移动终端当前运行的应用程序中每个应用程序的计算资源。In one possible example, 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.
在一个可能的示例中,在所述根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略方面,所述程序中的指令具体用于执行以下操作:根据所述第一计算资源和所述第二计算资源确定需要额外启用的CPU的个数以及需要关闭的应用程序;以及按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用 程序之间的映射关系。In one possible example, in the determining, according to the first computing resource and the second computing resource, determining a configuration policy of a plurality of central processing unit CPUs of the mobile terminal, 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.
在一个可能的示例中,在所述根据所述第一计算资源和所述第二计算资源确定需要启用的CPU的个数以及需要关闭的应用程序方面,所述程序中的指令具体用于执行以下操作:确定所述移动终端当前启用的CPU所能提供的第一最大计算资源和所述移动终端的全部CPU所能提供的第二最大计算资源;In one possible example, 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 following operations: determining 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;
若所述第一计算资源和所述第二计算资源的和小于或等于所述第一最大计算资源,则确定无需额外启用CPU,且无需关闭所述至少一个应用程序中的任一应用程序;If the sum of the first computing resource and the second computing resource is less than or equal to the first maximum computing resource, determining that there is no need to additionally enable the CPU, and not closing any of the at least one application;
若所述第一计算资源和所述第二计算资源的和大于所述第一最大计算资源,且小于或等于所述第二最大计算资源,则根据所述第一计算资源和所述第二计算资源的和以及所述第一最大计算资源确定需要额外启用的至少一个CPU,且无需关闭所述至少一个应用程序中的任一应用程序;And if 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;
若所述第一计算资源和所述第二计算资源的和大于所述第二最大计算资源,则按照应用程序优先级由低至高的顺序关闭一个或多个应用程序,并根据所述第一计算资源和所述至少一个应用程序中未关闭的应用程序的计算资源确定需要额外启用的至少一个CPU。If the sum of the first computing resource and the second computing resource is greater than the second maximum computing resource, shutting down one or more applications in descending order of application priority, and according to the first 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.
在一个可能的示例中,在所述确定移动终端前台运行的目标应用程序处于预设内部运行场景方面,所述程序中的指令具体用于执行以下操作:获取所述移动终端前台运行的目标应用程序的关键性能参数;根据所述关键性能参数确定所述目标应用程序处于预设内部运行场景;或者,获取所述移动终端前台运行的目标应用程序发送的场景标识;确定所述场景标识对应的内部运行场景为预设内部运行场景。In one possible example, in the determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, 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.
图6示出了所述实施例中所涉及的应用程序运行控制装置的一种可能的功能单元组成框图。应用程序运行控制装置600应用于移动终端,所述移动终端上运行有操作系统和一个或多个应用程序,应用程序运行控制装置600包括确定单元601、获取单元602和启用单元603,其中,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
所述确定单元601,用于确定移动终端前台运行的目标应用程序处于预设内部运行场景;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;
所述获取单元602,用于获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源;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;
所述确定单元601,还用于根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;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;
所述启用单元603,用于利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。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.
可以看出,本申请实施例中,移动终端首先确定移动终端前台运行的目标应用程序处于预设内部运行场景,其次,获取预设内部运行场景的第一计算资源,以及获取移动终端后台运行的至少一个应用程序的第二计算资源,再次,根据第一计算资源和第二计算资源,确定移动终端的多个中央处理单元CPU的配置策略,最后,利用配置策略中分配给目标应用程序的至少一个CPU对应的计算资源运行预设内部运行场景。由于移动终端能够针对目标应用程序的内部运行场景结合当前系统资源占用情况进行精确的资源分配,避免其他应用程序占用过多计算资源而影响当前内部运行场景的运行状态,有利于提高目标应用程序的预设内部运行场景运行的可靠性和流畅度。It can be seen that, in the embodiment of the present application, 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.
在一个可能的示例中,所述配置策略包括需要额外启用的CPU的个数和每个CPU的计算资源分配,所述每个CPU的计算资源分配包括分配给所述移动终端当前运行的应用程序中每个应用程序的计算资源。In one possible example, 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.
在一个可能的示例中,在所述根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略方面,所述确定单元601具体用于:根据所述第一计算资源和所述第二计算资源确定需要额外启用的CPU的个数以及需要关闭的应用程序;以及按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系。In a possible example, 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.
在一个可能的示例中,在所述根据所述第一计算资源和所述第二计算资源确定需要启用的CPU的个数以及需要关闭的应用程序方面,所述确定单元601具体用于:确定所述移动终端当前启用的CPU所能提供的第一最大计算资源和所述移动终端的全部CPU所能提供的第二最大计算资源;In one possible example, 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;
若所述第一计算资源和所述第二计算资源的和小于或等于所述第一最大计算资源,则确定无需额外启用CPU,且无需关闭所述至少一个应用程序中的任一应用程序;If the sum of the first computing resource and the second computing resource is less than or equal to the first maximum computing resource, determining that there is no need to additionally enable the CPU, and not closing any of the at least one application;
若所述第一计算资源和所述第二计算资源的和大于所述第一最大计算资源,且小于或等于所述第二最大计算资源,则根据所述第一计算资源和所述第二计算资源的和以及所述第一最大计算资源确定需要额外启用的至少一个CPU,且无需关闭所述至少一个应用程序中的任一应用程序;And if 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;
若所述第一计算资源和所述第二计算资源的和大于所述第二最大计算资源,则按照应用程序优先级由低至高的顺序关闭一个或多个应用程序,并根据所述第一计算资源和所述至少一个应用程序中未关闭的应用程序的计算资源确定需要额外启用的至少一个CPU。If the sum of the first computing resource and the second computing resource is greater than the second maximum computing resource, shutting down one or more applications in descending order of application priority, and according to the first 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.
在一个可能的示例中,在所述确定移动终端前台运行的目标应用程序处于预设内部运行场景方面,所述确定单元601具体用于:获取所述移动终端前台运行的目标应用程序的关键性能参数;根据所述关键性能参数确定所述目标应用程序处于预设内部运行场景;或者,获取所述移动终端前台运行的目标应用程序发送的场景标识;确定所述场景标识对应的内部运行场景为预设内部运行场景。In a possible example, in the determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario, 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.
需要注意的是,本申请装置实施例所描述的应用程序运行控制装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the application running control device described in the device embodiment of the present application is presented in the form of a functional unit. The term "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) and memory of the program, combinatorial logic, and/or other suitable components that perform the functions described above.
其中,确定单元601和启用单元603可以是处理器或控制器,获取单元602可以是处理器和程序运行空间之间的内部通信接口,如处理器与操作系统空间的通信接口,或者处理器与用户空间的通信接口等。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.
请参阅图7,图7是本申请实施例提供的一种适用于上述应用程序运行控制方法的智能手机700的结构示意图,所述智能手机700包括:壳体710、触控显示屏720、主板730、电池740和副板750,主板730上设置有前置摄像头731、处理器732、存储器733、电源管理芯片734等,副板上设置有振子751、一体音腔752、VOOC闪充接口753和指纹识别模组754。Please refer to FIG. 7. 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.
其中,智能手机700能够确定移动终端前台运行的目标应用程序处于预设内部运行场景;以及获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源;以及根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;以及利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。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.
所述处理器732是智能手机的控制中心,利用各种接口和线路连接整个智能手机的各 个部分,通过运行或执行存储在存储器733内的软件程序和/或模块,以及调用存储在存储器733内的数据,执行智能手机的各种功能和处理数据,从而对智能手机进行整体监控。可选的,处理器732可包括一个或多个处理单元;优选的,处理器732可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,所述调制解调处理器也可以不集成到处理器732中。该处理器732例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。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 data, the various functions of the smartphone and the processing of the data, so that the overall monitoring of the smartphone. Optionally, 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.
所述存储器733可用于存储软件程序以及模块,处理器732通过运行存储在存储器733的软件程序以及模块,从而执行智能手机的各种功能应用以及数据处理。存储器733可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据智能手机的使用所创建的数据等。此外,存储器733可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。该存储器733例如可以是随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质。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. Further, 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. Programmable EPROM (EEPROM), 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. In the step, 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.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在所述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the embodiment, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, 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. In addition, 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.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, 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.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。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. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a 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.
本领域普通技术人员可以理解所述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。One of ordinary skill in the art can understand that all or part of the various steps of the embodiments can be completed by a program to instruct related hardware, the program can be stored in a computer readable memory, and the memory can include: Disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or optical disk.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. The principles and implementations of the present application are described in the specific examples. The description of the above embodiments is only used to help understand the method and core ideas of the present application. A person skilled in the art will have a change in the specific embodiments and the scope of the application according to the idea of the present application. In summary, the content of the present specification should not be construed as limiting the present application.

Claims (20)

  1. 一种应用程序运行控制方法,其特征在于,包括:An application running control method, comprising:
    确定移动终端前台运行的目标应用程序处于预设内部运行场景;Determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario;
    获取所述预设内部运行场景的第一计算资源,以及获取所述移动终端后台运行的至少一个应用程序的第二计算资源;Acquiring 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;
    根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;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;
    利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。And executing the preset internal running scenario by using computing resources corresponding to the at least one CPU allocated to the target application in the configuration policy.
  2. 根据权利要求1所述的方法,其特征在于,所述配置策略包括需要额外启用的CPU的个数和每个CPU的计算资源分配,所述每个CPU的计算资源分配包括分配给所述移动终端当前运行的应用程序中每个应用程序的计算资源。The method of claim 1, wherein the configuration policy comprises a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, the computing resource allocation of each CPU including an allocation to the mobile The computing resources of each application in the application that the terminal is currently running.
  3. 根据权利要求2所述的方法,其特征在于,所述分配给所述每个应用程序的计算资源包括分配给每个应用程序的至少一个进程的计算资源。The method of claim 2 wherein said computing resources allocated to said each application comprise computing resources of at least one process assigned to each application.
  4. 根据权利要求3所述的方法,其特征在于,所述进程的类型包括以下至少一种:空进程、后台进程、服务进程、可见进程和前台进程。The method according to claim 3, wherein the type of the process comprises at least one of the following: an empty process, a background process, a service process, a visible process, and a foreground process.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略,包括:The method according to any one of claims 1 to 4, wherein the determining a configuration policy of a plurality of central processing unit CPUs of the mobile terminal according to the first computing resource and the second computing resource ,include:
    根据所述第一计算资源和所述第二计算资源确定需要额外启用的CPU的个数以及需要关闭的应用程序;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 closed;
    按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系。The mapping relationship between the computing resources of each CPU and the applications that are not closed is established according to the resource balancing allocation policy.
  6. 根据权利要求5所述的方法,其特征在于,所述资源均衡分配策略是指任意两个CPU被分配的计算资源与自身所能够提供的计算资源的占比的差值小于预设差值。The method according to claim 5, wherein the resource equalization allocation policy refers to a difference between a computing resource allocated by any two CPUs and a proportion of computing resources that can be provided by itself is less than a preset difference.
  7. 根据权利要求5或6所述的方法,其特征在于,所述根据所述第一计算资源和所述第二计算资源确定需要启用的CPU的个数以及需要关闭的应用程序,包括:The method according to claim 5 or 6, wherein the determining the number of CPUs to be enabled and the applications to be shut down according to the first computing resource and the second computing resource comprises:
    确定所述移动终端当前启用的CPU所能提供的第一最大计算资源和所述移动终端的全部CPU所能提供的第二最大计算资源;Determining, by the CPU that is currently enabled by the mobile terminal, a first maximum computing resource and a second maximum computing resource that can be provided by all CPUs of the mobile terminal;
    若所述第一计算资源和所述第二计算资源的和小于或等于所述第一最大计算资源,则确定无需额外启用CPU,且无需关闭所述至少一个应用程序中的任一应用程序;If the sum of the first computing resource and the second computing resource is less than or equal to the first maximum computing resource, determining that there is no need to additionally enable the CPU, and not closing any of the at least one application;
    若所述第一计算资源和所述第二计算资源的和大于所述第一最大计算资源,且小于或等于所述第二最大计算资源,则根据所述第一计算资源和所述第二计算资源的和以及所述第一最大计算资源确定需要额外启用的至少一个CPU,且无需关闭所述至少一个应用程序中的任一应用程序;And if 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;
    若所述第一计算资源和所述第二计算资源的和大于所述第二最大计算资源,则按照应用程序优先级由低至高的顺序关闭一个或多个应用程序,并根据所述第一计算资源和所述至少一个应用程序中未关闭的应用程序的计算资源确定需要额外启用的至少一个CPU。If the sum of the first computing resource and the second computing resource is greater than the second maximum computing resource, shutting down one or more applications in descending order of application priority, and according to the first 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.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述确定移动终端前台运行的目标应用程序处于预设内部运行场景,包括:The method according to any one of claims 1 to 7, wherein the determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario comprises:
    获取所述移动终端前台运行的目标应用程序的关键性能参数;Obtaining key performance parameters 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
    获取所述移动终端前台运行的目标应用程序发送的场景标识;Obtaining a scene identifier sent by a target application running in the foreground of the mobile terminal;
    确定所述场景标识对应的内部运行场景为预设内部运行场景。The internal running scenario corresponding to the scenario identifier is determined to be a preset internal running scenario.
  9. 根据权利要求8所述的方法,其特征在于,所述目标应用程序包括以下任意一种:游戏应用程序、即时通讯应用程序、相机应用程序、购物应用程序、视频类应用程序。The method according to claim 8, wherein the target application comprises any one of the following: a game application, an instant messaging application, a camera application, a shopping application, a video application.
  10. 一种应用程序运行控制装置,其特征在于,包括确定单元、获取单元和启用单元,其中,An application running control device, comprising: a determining unit, an obtaining unit, and an enabling unit, wherein
    所述确定单元,用于确定移动终端前台运行的目标应用程序处于预设内部运行场景;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;
    所述确定单元,还用于根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略;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;
    所述启用单元,用于利用所述配置策略中分配给所述目标应用程序的至少一个CPU对应的计算资源运行所述预设内部运行场景。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.
  11. 根据权利要求10所述的装置,其特征在于,所述配置策略包括需要额外启用的CPU的个数和每个CPU的计算资源分配,所述每个CPU的计算资源分配包括分配给所述移动终端当前运行的应用程序中每个应用程序的计算资源。The apparatus of claim 10, wherein the configuration policy comprises a number of CPUs that need to be additionally enabled and a computing resource allocation for each CPU, the computing resource allocation of each CPU including an allocation to the mobile The computing resources of each application in the application that the terminal is currently running.
  12. 根据权利要求11所述的装置,其特征在于,所述分配给所述每个应用程序的计算资源包括分配给每个应用程序的至少一个进程的计算资源。The apparatus of claim 11 wherein said computing resources allocated to said each application comprise computing resources of at least one process assigned to each application.
  13. 根据权利要求12所述的装置,其特征在于,所述进程的类型包括以下至少一种:空进程、后台进程、服务进程、可见进程和前台进程。The apparatus according to claim 12, wherein the type of the process comprises at least one of the following: an empty process, a background process, a service process, a visible process, and a foreground process.
  14. 根据权利要求10-13任一项所述的装置,其特征在于,在所述根据所述第一计算资源和所述第二计算资源,确定所述移动终端的多个中央处理单元CPU的配置策略方面,所述确定单元具体用于:根据所述第一计算资源和所述第二计算资源确定需要额外启用的CPU的个数以及需要关闭的应用程序;以及按照资源均衡分配策略建立每个CPU的计算资源与未关闭的应用程序之间的映射关系。The apparatus according to any one of claims 10-13, wherein, in the determining according to the first computing resource and the second computing resource, determining a configuration of a plurality of central processing unit CPUs of the mobile terminal In terms of a policy, the determining unit is specifically configured to: determine, 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 establish each according to a resource balancing allocation policy. The mapping between the computing resources of the CPU and the applications that are not closed.
  15. 根据权利要求14所述的装置,其特征在于,所述资源均衡分配策略是指任意两个CPU被分配的计算资源与自身所能够提供的计算资源的占比的差值小于预设差值。The device according to claim 14, wherein the resource equalization allocation policy refers to a difference between a computing resource allocated by any two CPUs and a proportion of computing resources that can be provided by itself is less than a preset difference.
  16. 根据权利要求14或15所述的装置,其特征在于,在所述根据所述第一计算资源和所述第二计算资源确定需要启用的CPU的个数以及需要关闭的应用程序方面,所述确定单元具体用于:确定所述移动终端当前启用的CPU所能提供的第一最大计算资源和所述移动终端的全部CPU所能提供的第二最大计算资源;若所述第一计算资源和所述第二计算资源的和小于或等于所述第一最大计算资源,则确定无需额外启用CPU,且无需关闭所述至少一个应用程序中的任一应用程序;若所述第一计算资源和所述第二计算资源的和大于所述第一最大计算资源,且小于或等于所述第二最大计算资源,则根据所述第一计算资源和所述第二计算资源的和以及所述第一最大计算资源确定需要额外启用的至少一个CPU,且无需关闭所述至少一个应用程序中的任一应用程序;若所述第一计算资源和所述第二计算资源的和大于所述第二最大计算资源,则按照应用程序优先级由低至高的顺序关闭一个或多个应用程序,并根据所述第一计算资源和所述至少一个应用程序中未关闭的应用程序的计算资源确定需要额外启用的至少一个CPU。The apparatus according to claim 14 or 15, wherein said determining, according to said first computing resource and said second computing resource, a number of CPUs to be enabled and an application to be shut down, said The determining unit is specifically configured to: determine 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; if the first computing resource and The sum of the second computing resources is less than or equal to the first maximum computing resource, then determining that no additional CPU is required, and there is no need to close any one of the at least one application; if the first computing resource and And a sum of the second computing resource is greater than the first maximum computing resource, and is less than or equal to the second maximum computing resource, according to a sum of the first computing resource and the second computing resource, and the first A maximum computing resource determines at least one CPU that needs to be additionally enabled, and does not need to shut down any of the at least one application; if the first computing resource And the sum of the second computing resource is greater than the second maximum computing resource, and then shutting down one or more applications in descending order of application priority, and according to the first computing resource and the at least one The computing resources of the application that are not closed in the application determine at least one CPU that needs to be additionally enabled.
  17. 根据权利要求10-16任一项所述的装置,其特征在于,在所述确定移动终端前台运行的目标应用程序处于预设内部运行场景方面,所述确定单元具体用于:获取所述移动终端前台运行的目标应用程序的关键性能参数;以及根据所述关键性能参数确定所述目标应用程序处于预设内部运行场景;或者,The device according to any one of claims 10-16, wherein the determining unit is configured to: acquire the mobile device, in the determining that the target application running in the foreground of the mobile terminal is in a preset internal running scenario. a key performance parameter of the target application running in the foreground of the terminal; and determining, according to the key performance parameter, that the target application is in a preset internal running scenario; or
    获取所述移动终端前台运行的目标应用程序发送的场景标识;以及确定所述场景标识 对应的内部运行场景为预设内部运行场景。Acquiring the scene identifier sent by the target application running in the foreground of the mobile terminal; and determining that the internal running scenario corresponding to the scenario identifier is a preset internal running scenario.
  18. 根据权利要求17所述的装置,其特征在于,所述目标应用程序包括以下任意一种:游戏应用程序、即时通讯应用程序、相机应用程序、购物应用程序、视频类应用程序。The device according to claim 17, wherein the target application comprises any one of the following: a game application, an instant messaging application, a camera application, a shopping application, and a video application.
  19. 一种移动终端,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行权利要求1-9任一项方法中的步骤的指令。A mobile terminal, comprising: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor The program includes instructions for performing the steps of the method of any of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法,所述计算机包括移动终端。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 perform the method of any one of claims 1-9 Method, the computer comprises a mobile terminal.
PCT/CN2018/109830 2017-10-11 2018-10-11 Application running control method and device WO2019072208A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710941844.X 2017-10-11
CN201710941844.XA CN107832141A (en) 2017-10-11 2017-10-11 Application program progress control method and equipment

Publications (1)

Publication Number Publication Date
WO2019072208A1 true WO2019072208A1 (en) 2019-04-18

Family

ID=61647839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109830 WO2019072208A1 (en) 2017-10-11 2018-10-11 Application running control method and device

Country Status (2)

Country Link
CN (1) CN107832141A (en)
WO (1) WO2019072208A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832141A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 Application program progress control method and equipment
CN108681436B (en) * 2018-03-13 2020-09-22 Oppo广东移动通信有限公司 Image quality parameter adjusting method, device, terminal and storage medium
CN109831585B (en) * 2019-02-22 2021-06-25 维沃移动通信有限公司 Operation parameter adjusting method and mobile terminal
CN110096315B (en) * 2019-03-22 2020-09-04 华为技术有限公司 Component loading method and device
CN110413417A (en) * 2019-08-02 2019-11-05 广州小鹏汽车科技有限公司 The running optimizatin methods, devices and systems of onboard system process
US11805013B2 (en) 2020-01-29 2023-10-31 Juniper Networks, Inc. Prioritizing policy intent enforcement on network devices
CN112764933A (en) * 2021-01-27 2021-05-07 惠州Tcl移动通信有限公司 CPU configuration method, device, terminal and computer readable storage medium
CN113975816B (en) * 2021-12-24 2022-11-25 北京蔚领时代科技有限公司 Hook-based graphics card distribution method using graphics card through DirectX interface

Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN103530185A (en) * 2012-07-02 2014-01-22 中兴通讯股份有限公司 Resource optimization method and device
CN107832141A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 Application program progress control method and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055070B (en) * 2016-05-24 2019-08-09 青岛海信移动通信技术股份有限公司 Terminal power consumption control method and device
CN106055408B (en) * 2016-05-31 2017-11-24 广东欧珀移动通信有限公司 A kind of application control method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (en) * 2012-07-02 2014-01-22 中兴通讯股份有限公司 Resource optimization method and device
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN107832141A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 Application program progress control method and equipment

Also Published As

Publication number Publication date
CN107832141A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107861814B (en) Resource allocation method and equipment
WO2019072208A1 (en) Application running control method and device
US10824470B2 (en) Method for resource allocation and terminal device
CN108762937B (en) Configuration information sending method, configuration information obtaining method, configuration information sending device, configuration information obtaining device and terminal
CN107577533B (en) Resource allocation method and related product
WO2019047709A1 (en) Resource configuration method and related product
CN107547746B (en) Resource allocation method and related product
CN109582463B (en) Resource allocation method, device, terminal and storage medium
WO2019042171A1 (en) Resource allocation method and product related thereto
WO2019042180A1 (en) Resource allocation method and related product
CN107807852B (en) Application program performance control method, device and computer readable storage medium
CN107635078B (en) Game control method and device
CN107450988B (en) Resource allocation method and related product
CN107479970B (en) Resource allocation method and related product
US10936371B2 (en) Method for resource allocation and related products
CN107797868B (en) Resource adjusting method and device
CN107786748B (en) Image display method and apparatus
WO2019109868A1 (en) Resource allocation method and related product
CN107589977B (en) Resource allocation method, resource allocation device, mobile terminal and medium
CN107832142B (en) Resource allocation method and equipment for application program
CN108536480B (en) Input method configuration method and related product
US9756674B2 (en) Method of transmitting and receiving data of electronic device and electronic device using the method
WO2019047708A1 (en) Resource configuration method and related product
CN107517306B (en) Resource allocation method and related product
WO2019076213A1 (en) Network control method and device

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