CN114780218A - Application control method and device, storage medium and electronic equipment - Google Patents

Application control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114780218A
CN114780218A CN202210420372.4A CN202210420372A CN114780218A CN 114780218 A CN114780218 A CN 114780218A CN 202210420372 A CN202210420372 A CN 202210420372A CN 114780218 A CN114780218 A CN 114780218A
Authority
CN
China
Prior art keywords
application
scene
running
background
information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210420372.4A
Other languages
Chinese (zh)
Inventor
鞠怀伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210420372.4A priority Critical patent/CN114780218A/en
Publication of CN114780218A publication Critical patent/CN114780218A/en
Priority to PCT/CN2022/140832 priority patent/WO2023202127A1/en
Pending legal-status Critical Current

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

The application discloses an application control method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring scene information for identifying an operation scene of foreground application; identifying the running scene of foreground application according to the scene information; and if the running scene of the foreground application is a preset running scene, pausing the running of the background application. The method and the device can avoid the phenomenon that the foreground application is stuck due to the fact that the background application occupies system resources when the running scene of the foreground application is the preset running scene.

Description

Application control method and device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of electronic technologies, and in particular, to an application management and control method, an application management and control device, a storage medium, and an electronic device.
Background
Electronic devices such as smart phones or tablet computers are usually installed with a plurality of applications with different functions to meet different requirements of users. At present, a system of an electronic device supports multiple applications to run simultaneously, that is, one application runs in the foreground, and other applications can run in the background. However, various types of behavior activities of the applications running in the background still occupy some system resources, so that the applications running in the foreground have a stuck phenomenon.
Disclosure of Invention
The embodiment of the application control method and device, the storage medium and the electronic device can avoid the phenomenon that foreground application is stuck due to the fact that background application occupies system resources when the running scene of the foreground application is a preset running scene.
In a first aspect, an embodiment of the present application provides an application management and control method, including:
acquiring scene information for identifying an operation scene of foreground application;
identifying the running scene of the foreground application according to the scene information;
and if the running scene of the foreground application is a preset running scene, pausing the running of the background application.
In a second aspect, an embodiment of the present application provides an application management and control apparatus, including:
the information acquisition module is used for acquiring scene information for identifying the running scene of the foreground application;
the scene recognition module is used for recognizing the running scene of the foreground application according to the scene information;
and the operation suspending module is used for suspending the operation of the background application if the operation scene of the foreground application is a preset operation scene.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer program is enabled to execute an application management and control method provided by the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the application management and control method provided in the embodiment of the present application by calling a computer program stored in the memory.
In the embodiment of the application, scene information used for identifying the running scene of the foreground application is acquired; identifying the running scene of the foreground application according to the scene information; if the running scene of the foreground application is the preset running scene, the running of the background application is suspended, and the running of the background application can be suspended when the running scene of the foreground application is the preset running scene, so that the phenomenon that the foreground application is blocked due to the fact that the background application occupies system resources when the running scene of the foreground application is the preset running scene can be avoided.
Drawings
The technical solutions and advantages of the present application will be apparent from the following detailed description of specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an application management and control method provided in an embodiment of the present application.
Fig. 2 is a schematic diagram of the inside of an application provided in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an application management and control apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference is made to the drawings, wherein like reference numerals refer to like elements, which are illustrated in the various figures, and which are implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
An embodiment of the present application provides an application control method, an application control apparatus, a storage medium, and an electronic device, where an execution subject of the application control method may be the application control apparatus provided in the embodiment of the present application, or the electronic device integrated with the application control apparatus, where the application control apparatus may be implemented in a hardware or software manner. The electronic device may be a device which is provided with a processor and has application control capability, such as a smart phone, a tablet computer, a palm computer, a notebook computer, and the like.
Referring to fig. 1, fig. 1 is a schematic flowchart of an application management and control method provided in an embodiment of the present application, where the flowchart may include:
101. scene information for identifying an operation scene of a foreground application is acquired.
Electronic devices such as smart phones or tablet computers are usually installed with a plurality of applications with different functions to meet different requirements of users. Currently, a system of an electronic device supports multiple applications to run simultaneously, that is, one application runs in the foreground and the other applications run in the background. The foreground running application may be referred to as a foreground application, and the background running application may be referred to as a background application.
As shown in fig. 2, from the inside of the application, the following contents are included:
the main thread: the thread that spawns the other child thread, the control of the executive, typically the main thread, must eventually complete execution because it performs various shutdown actions. In addition, when the application runs in the foreground, the main thread may be responsible for distributing events, including draw events, to the UI components.
Activity: an application component that interacts with the screen. Each Activity gets a window that draws its user interface, which may be full of the screen or smaller and float above the other windows.
Service: the method is a solution for realizing background running of the program, and is suitable for executing tasks which do not need to interact with users and still run for a long time. Independent of any user interface, can remain independent.
The interaction mechanism is as follows: the interprocess communication related tasks comprise the following tasks:
(1) network heartbeat packet: and maintaining network connection between the two communication parties and judging whether the communication client is normally online or not.
(2) Broadcast receiving and transmitting: the mechanism for passing messages between applications is a global listener, broadcasting using observer mode. Based on the publishing of the message and the subscription of the event model, the sender and the receiver of the broadcast are decoupled, so that the system is convenient to integrate and easier to expand.
(3) Content provision: the content provider supplies some specific application data to other applications for use. The data may be stored in a file system, SQLite database, or other location. The content parser has a session with any content provider and cooperates with it to manage all relevant interactive communications.
(4) Timing synchronization: the alarm clock type timing task is mainly managed through an AlarmManager class, service is started at certain set time points for event processing, and certain long-time operation can be initialized, such as data acquisition of daily weather forecast.
(5) And (3) a task scheduler: the application uses a task scheduler, needs to judge which tasks are not urgent, discards the work with low timeliness to the application, packages a plurality of tasks to be executed in one scene, adds the tasks into a queue if the specific execution requirement is not met within a certain period, and then executes the tasks, but often the function is used for background keep-alive irregularly.
(6) Account number synchronization: the data synchronization method refers to that any third-party application can synchronize data to a server within a certain time through the function, such as data synchronization of WeChat accounts and Google accounts. When the system synchronizes the account number, the dormant application process is also pulled alive.
(7) And (3) notification in process: the persistent notification is repeated until the user cancels, such as an alarm notification.
It can be understood that, when the foreground application is in some preset operation scenes, more system resources are usually needed, and when the background application is running in the background, corresponding tasks, such as account synchronization, in-process notification or task scheduling, are indirectly executed, and the execution of the tasks often occupies some system resources, so that the foreground application is stuck due to insufficient resources. Based on the method, the electronic equipment can acquire scene information used for identifying the running scene of the foreground application, and identifies the running scene of the foreground application so as to identify whether the running scene of the foreground application is a preset running scene.
The game application comprises game plan play realization logic, a game engine such as unity or nonreal, state synchronization transceiving between a local network and a server of the game application, and a scene exchange SDK cooperating with an OEM manufacturer, wherein the SDK can send important information in the game application to a system end, for example, an operation scene signal of a key scene such as a parachuting scene, a playoff circle scene or a double-shot scene in a chicken game application, a group battle scene or a game play scene in a moba game application, or a game play scene in a competition game application is sent to the system end, and the system end sends the operation scene signal to an application management and control device to inform electronic equipment integrated with the application management and control device that the game application is in the key operation scene or enters the key operation scene after a corresponding time length. For other types of foreground applications, when the foreground applications are in a key scene, the running scene information of the key scene can be sent to the system end, for example, the camera application can send running scene signals of the key scene such as a preview scene to the system end, the video application can send running scene signals of the key scene such as a high-definition video playing scene to the system end, and the instant messaging application can send running scene signals of the key scene such as a video chat to the system end and the system end to the application control device, so that the electronic device integrated with the application control device is informed that the electronic device is in the key running scene or enters the key running scene after a corresponding time length. The scene information may include the operation scene signal.
Continuing with the example of the foreground application as a game-like application, in addition to the above-mentioned running scene signal, the scene information may further include the number of drawing frames per second, an average frame rate, a blocking rate, a frequency or load status of a central processing unit, a graphics processing unit, an input/output (IO) and the like in the system on chip, a utilization rate of the central processing unit or the graphics processing unit, rendering pipeline status information, a public drawing API such as an OpenGl graphics sync command, a funce command and the like, surface view real-time quantity information, that is, a frame buffer quantity, which is generally 2, user touch information, a temperature, power consumption, a network condition of the electronic device, and the like. It will be appreciated that for applications other than game-like applications, the context information may include information other than context information specific to the game-like application in addition to the operational context signals described above.
102. And identifying the running scene of the foreground application according to the scene information.
After the scene information is acquired, the electronic device can identify the running scene of the foreground application according to the scene information.
For example, when the scene information includes a running scene signal, the electronic device may determine, according to the scene signal, that the running scene of the foreground application is a preset running scene or enters the preset running scene after a corresponding duration.
For another example, when the scene information includes a utilization rate of the CPU, the electronic device may determine that the operation scene of the foreground application is the preset operation scene when the utilization rate of the CPU increases abruptly.
For another example, when the scene information includes a utilization rate of the GPU and a number of drawing frames per second, the electronic device may determine that the operation scene of the foreground application is a preset operation scene when the utilization rate of the GPU increases steeply and the number of drawing frames per second decreases suddenly.
It should be noted that the above are only some examples of determining the running scene of the foreground application according to the scene information, and are not intended to limit the present application.
103. And if the running scene of the foreground application is a preset running scene, suspending the running of the background application.
In this embodiment, if the operation scene of the foreground application is the preset operation scene, it indicates that relatively more system resources need to be provided for the foreground application to maintain the normal operation of the foreground application, and some tasks executed by the background application often have smaller instantaneity requirements, so that the electronic device can pause the operation of the background application when the operation scene of the foreground application is the preset operation scene in order to avoid the foreground application from being stuck due to the execution of the corresponding task by the background application. For example, the electronic device may suspend running all background applications.
It can be understood that suspending running the background application refers to controlling the background application to suspend executing a corresponding task, such as account synchronization, in-process notification, task scheduling, or the like.
It can also be understood that when the foreground application enters the non-preset running scene from the preset running scene, the electronic device may resume normal running of the background application. When the foreground application is in a non-preset running scene, the electronic equipment can keep normal running of the background application.
In the embodiment of the application, scene information used for identifying the running scene of the foreground application is acquired; identifying the running scene of foreground application according to the scene information; if the running scene of the foreground application is the preset running scene, the running of the background application is suspended, and the running of the background application can be suspended when the running scene of the foreground application is the preset running scene, so that the phenomenon that the foreground application is blocked due to the fact that the background application occupies system resources when the running scene of the foreground application is the preset running scene can be avoided.
In an optional embodiment, the context information may include a running context signal, and identifying a running context of the foreground application according to the context information may include:
and identifying the operation scene of the foreground application according to the operation scene signal.
In this embodiment, the electronic device may directly determine the operation scene of the foreground application as the preset operation scene when acquiring the operation scene signal.
For example, taking a chicken game application as an example, when the electronic device is in a scene of open-mirrors, the foreground application generates a signal of the scene of open-mirrors and sends the signal to the application control device to inform the electronic device integrated with the application control device that the electronic device is in the scene of open-mirrors, so that the electronic device can determine that the foreground application is in a preset operating scene.
In an optional embodiment, the context information may include a running context signal and application running information, and identifying the running context of the foreground application according to the running context signal may include:
and identifying the operation scene of the foreground application according to the operation scene signal and the application operation information.
For example, when the foreground application is a game application, the application running information may include the number of drawing frames per second, an average frame rate, a katon rate, frequencies or load states of a central processor, a graphics processor, an input/output (IO) and the like in the system on chip, a utilization rate of the central processor or the graphics processor, rendering pipeline state information, public drawing APIs such as an open gl graphics sync command and a feng command, surface view real-time quantity information, that is, the number of frame buffers, which is generally 2, user touch information, and the like. It will be appreciated that for applications other than game-like applications, the application launch information may include information other than application launch information specific to the game-like application.
It can be understood that, when the configuration of the electronic device is high, the foreground application installed on the electronic device can be operated smoothly when being in some key scenes, and at this time, the background application can be operated without being suspended, and the normal operation of the background application is maintained, and when the foreground application is in some key scenes incapable of being operated smoothly, the electronic device can suspend the operation of the background application, so as to avoid the problem that the foreground application is stuck due to the operation of the background application.
For example, the application running information during the foreground application pause can be collected in advance by a developer, and a corresponding condition is formed based on the application running information, so that when the application running information currently acquired by the electronic device meets the corresponding condition, the electronic device can determine that the running scene of the foreground application is a preset running scene.
For example, taking the application running information including the CPU load and the GPU load as an example, when the CPU load exceeds the corresponding load range, the CPU load range is set as a preset CPU load range, and the GPU exceeds the corresponding load range, and the preset GPU load range is set, the foreground application often has a pause phenomenon, and then, when the running scene signal is received, the electronic device may determine whether the CPU load exceeds the preset CPU load range, and the GPU load exceeds the preset GPU load range; if the CPU load exceeds a preset CPU load range and the GPU load exceeds a preset GPU load range, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range, or the GPU load does not exceed the preset GPU load range, the electronic device may determine that the operation scene of the foreground application is a non-preset operation scene.
For another example, taking the application operation information including the CPU frequency and the frame rate as an example, when the CPU load exceeds the corresponding load range, the CPU load range is set as a preset CPU load range, and the frame rate is smaller than the corresponding frame rate, and the frame rate is set as a preset frame rate, the foreground application often has a pause phenomenon, and then, when the operation scene signal is received, the electronic device may determine whether the CPU load exceeds the preset CPU load range, and whether the frame rate is greater than or equal to the preset frame rate; if the CPU load exceeds a preset CPU load range and the frame rate is greater than or equal to a preset frame rate, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range or the frame rate is less than the preset frame rate, the electronic device can determine that the operation scene of the foreground application is a non-preset operation scene.
It should be understood that the above are only examples given in the present application, and are not limited to the present application, and in practical applications, a person skilled in the art may determine which information the application running information specifically includes according to needs or experience, and determine, according to needs or experience, what condition the application running information needs to satisfy when the running scene signal is received, to determine that the running scene of the foreground application is the preset running scene.
In an optional embodiment, the context information may include a running context signal, application running information, and device state information, and identifying the running context of the foreground application according to the running context signal and the application running information may include:
and identifying the operation scene of the foreground application according to the operation scene signal, the application operation information and the equipment state information.
The device state information may include, among other things, the temperature, power consumption, or network conditions of the electronic device.
It can be understood that, when the configuration of the electronic device is high, the foreground application installed on the electronic device can be smoothly run when the foreground application is in some key scenes, and at this time, the background application can be kept running normally without suspending running the background application, and when the foreground application is in some key scenes which cannot be smoothly run, the electronic device can suspend running the background application so as to avoid the problem that the foreground application is stuck due to running of the background application.
For example, the application running information and the device state information during the foreground application pause can be collected in advance by a developer, and corresponding conditions are formed based on the application running information and the device state information, so that when the application running information and the device state information which are currently acquired by the electronic device meet the corresponding conditions, the electronic device can determine that the running scene of the foreground application is a preset running scene.
For example, taking the application operation information including a CPU load and a GPU load, and the device state information including a temperature of the electronic device as an example, when the CPU load exceeds a corresponding load range, it is set as a preset CPU load range, and the GPU exceeds a corresponding load range, it is set as a preset GPU load range, and the temperature of the electronic device exceeds a corresponding temperature, and it is set as a preset temperature, the foreground application often has a stuck phenomenon, and then, when the operation scene signal is received, the electronic device may determine whether the CPU load exceeds the preset CPU load range, whether the GPU load exceeds the preset GPU load range, and whether the temperature of the electronic device exceeds the preset temperature; if the CPU load exceeds a preset CPU load range, the GPU load exceeds a preset GPU load range, and the temperature of the electronic equipment exceeds a preset temperature, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range, or the GPU load does not exceed the preset GPU load range, or the temperature of the electronic device does not exceed the preset temperature, the electronic device may determine that the operation scene of the foreground application is a non-preset operation scene.
For another example, taking the application operation information including the CPU frequency and the frame rate, and the device state information including the power consumption of the electronic device as an example, when the CPU load exceeds the corresponding load range, setting the CPU load range as a preset CPU load range, and setting the frame rate smaller than the corresponding frame rate, setting the frame rate as a preset frame rate, and the power consumption of the electronic device larger than the corresponding power consumption, and setting the power consumption as a preset power consumption, the foreground application often has a stuck phenomenon, and then, when the operation scene signal is received, the electronic device may determine whether the CPU load exceeds the preset CPU load range, whether the frame rate is greater than or equal to the preset frame rate, and whether the power consumption of the electronic device is greater than the preset power consumption; if the CPU load exceeds the preset CPU load range, the frame rate is greater than or equal to the preset frame rate, and the power consumption of the electronic equipment is greater than the preset power consumption, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range, or the frame rate is less than the preset frame rate, or the power consumption of the electronic equipment is less than or equal to the preset power consumption, the electronic equipment can determine that the operation scene of the foreground application is a non-preset operation scene.
It can be understood that the above are only examples given by the present application, and are not limited to the present application, in an actual application, a person skilled in the art may determine, according to needs or experience, which information the application running information specifically includes, which information the scene running information specifically includes, and determine, according to needs or experience, what condition needs to be met by the application running information when the running scene signal is received, and determine, according to what condition needs to be met by the device state information, that the running scene of the foreground application is the preset running scene.
In an optional embodiment, the context information may include application running information, and identifying a running context of the foreground application according to the context information may include:
and identifying the operation scene of the foreground application according to the application operation information.
For example, the application running information during the foreground application pause can be collected in advance by a developer, and a corresponding condition is formed based on the application running information, so that when the application running information currently acquired by the electronic device meets the corresponding condition, the electronic device can determine that the running scene of the foreground application is a preset running scene.
For example, taking the application running information including the CPU load and the GPU load as an example, when the CPU load exceeds the corresponding load range, the CPU load range is set as a preset CPU load range, and the GPU exceeds the corresponding load range, and the CPU load range is set as a preset GPU load range, the foreground application often has a stuck phenomenon, and then, when the CPU load and the GPU load are obtained, the electronic device may determine whether the CPU load exceeds the preset CPU load range, and whether the GPU load exceeds the preset GPU load range; if the CPU load exceeds a preset CPU load range and the GPU load exceeds a preset GPU load range, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range or the GPU load does not exceed the preset GPU load range, the electronic equipment can determine that the operation scene of the foreground application is a non-preset operation scene.
For another example, taking the application running information including the CPU frequency and the frame rate as an example, when the CPU load exceeds the corresponding load range, the CPU load range is set as a preset CPU load range, and the frame rate is smaller than the corresponding frame rate, and the frame rate is set as a preset frame rate, the foreground application often has a pause phenomenon, and then, when the CPU frequency and the frame rate are obtained, the electronic device may determine whether the CPU load exceeds the preset CPU load range, and whether the frame rate is greater than or equal to the preset frame rate; if the CPU load exceeds a preset CPU load range and the frame rate is greater than or equal to a preset frame rate, the electronic equipment can determine that the operation scene of foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range or the frame rate is less than the preset frame rate, the electronic device can determine that the operation scene of the foreground application is a non-preset operation scene.
It should be understood that the above are only examples given in the present application, and are not intended to limit the present application, and in practical applications, a person skilled in the art may determine, according to needs or experience, which information the application running information specifically includes, and determine, according to needs or experience, what condition the application running information needs to satisfy to determine that the running scene of the foreground application is the preset running scene.
In some embodiments, the context information may include application execution information, and identifying an execution context of the foreground application according to the context information may include:
and identifying the running scene of the foreground application according to the equipment state information.
For example, device state information during foreground application pause can be collected in advance by a developer, and corresponding conditions are formed based on the device state information, so that when the device state information currently acquired by the electronic device meets the corresponding conditions, the electronic device can determine that the running scene of the foreground application is a preset running scene.
For example, taking the example that the device state information includes the temperature of the electronic device, when the temperature of the electronic device exceeds the corresponding temperature and is set as the preset temperature, the foreground application often has a pause phenomenon, and then when the temperature of the electronic device is obtained, whether the temperature of the electronic device exceeds the preset temperature or not can be determined by the electronic device; if the temperature of the electronic equipment exceeds the preset temperature, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the temperature of the electronic equipment does not exceed the preset temperature, the electronic equipment can determine that the running scene of the foreground application is a non-preset running scene.
For another example, taking the case that the device state information includes the power consumption of the electronic device, when the power consumption of the electronic device is greater than the corresponding power consumption and is set as the preset power consumption, the foreground application often has a pause phenomenon, and then, when the power consumption of the electronic device is obtained, the electronic device may determine whether the power consumption of the electronic device is greater than the preset power consumption; if the power consumption of the electronic equipment is larger than the preset power consumption, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the power consumption of the electronic device is less than or equal to the preset power consumption, the electronic device can determine that the operation scene of the foreground application is a non-preset operation scene.
It should be understood that the above are only examples given herein, and are not intended to limit the present application, and in practical applications, a person skilled in the art may determine which information is specifically included in the scene operation information according to needs or experience, and determine what condition needs to be met by the device state information according to needs or experience to determine that the operation scene of the foreground application is the preset operation scene.
In an optional embodiment, the context information may include application running information and device state information, and identifying the running context of the foreground application according to the context information may include:
and identifying the running scene of the foreground application according to the application running information and the equipment state information.
For example, the application running information and the device state information during the foreground application pause can be collected in advance by a developer, and corresponding conditions are formed based on the application running information and the device state information, so that when the application running information and the device state information which are currently acquired by the electronic device meet the corresponding conditions, the electronic device can determine that the running scene of the foreground application is a preset running scene.
For example, taking the application operation information including the CPU load and the GPU load, and the device state information including the temperature of the electronic device as an example, when the CPU load exceeds the corresponding load range, it is set as a preset CPU load range, and the GPU exceeds the corresponding load range, it is set as a preset GPU load range, and the temperature of the electronic device exceeds the corresponding temperature, and it is set as a preset temperature, the foreground application often has a stuck phenomenon, and then, when the temperatures of the CPU load, the GPU load, and the electronic device are obtained, the electronic device may determine whether the CPU load exceeds the preset CPU load range, whether the GPU load exceeds the preset GPU load range, and whether the temperature of the electronic device exceeds the preset temperature; if the CPU load exceeds a preset CPU load range, the GPU load exceeds a preset GPU load range, and the temperature of the electronic equipment exceeds a preset temperature, the electronic equipment can determine that the operation scene of the foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range, or the GPU load does not exceed the preset GPU load range, or the temperature of the electronic device does not exceed the preset temperature, the electronic device may determine that the operation scene of the foreground application is a non-preset operation scene.
For another example, taking the application running information including the CPU frequency and the frame rate, and the device state information including the power consumption of the electronic device as an example, when the CPU load exceeds the corresponding load range, the CPU load range is set as a preset CPU load range, the frame rate is smaller than the corresponding frame rate, the frame rate is set as a preset frame rate, and the power consumption of the electronic device is greater than the corresponding power consumption, and the preset power consumption is set as a preset power consumption, the foreground application often has a pause phenomenon, and then, when the CPU frequency, the frame rate, and the power consumption of the electronic device are obtained, the electronic device may determine whether the CPU load exceeds the preset CPU load range, whether the frame rate is greater than or equal to the preset frame rate, and whether the power consumption of the electronic device is greater than the preset power consumption; if the CPU load exceeds a preset CPU load range, the frame rate is greater than or equal to a preset frame rate, and the power consumption of the electronic equipment is greater than the preset power consumption, the electronic equipment can determine that the operation scene of foreground application is a preset operation scene; if the CPU load does not exceed the preset CPU load range, or the frame rate is less than the preset frame rate, or the power consumption of the electronic device is less than or equal to the preset power consumption, the electronic device may determine that the operation scene of the foreground application is a non-preset operation scene.
It should be understood that the above are only examples given by the present application, and are not limited to the present application, in an actual application, a person skilled in the art may determine, according to needs or experience, which information the application running information specifically includes, which information the scene running information specifically includes, and determine, according to needs or experience, what condition needs to be met by the application running information, and what condition needs to be met by the device state information to determine that the running scene of the foreground application is the preset running scene.
In an optional embodiment, identifying the running scene of the foreground application according to the scene information may include:
inputting the scene information into an operation scene scoring model to obtain an operation scene score;
and identifying the operation scene of the foreground application according to the operation scene score.
For example, the electronic device may preset an operation scene scoring model, and then, after acquiring the scene information, the electronic device may input the scene information into the operation scene scoring model to obtain a corresponding operation scene score; then, the electronic device can identify the operation scene of the foreground application according to the operation scene score. For example, when the running scene score is greater than or equal to the preset score, the electronic device may determine that the running scene of the foreground application is the preset running scene, and when the running scene score is less than the preset score, the electronic device may determine that the running scene of the foreground application is a non-preset running scene. The preset score may be determined according to actual conditions, and is not limited in particular. For example, the preset score may be 70, 75, or 80, and so on.
For example, if the scene information includes an operation scene signal, and after the operation scene signal is input into the scene scoring model, the scene scoring model determines a score corresponding to the operation scene signal, and takes the score corresponding to the operation scene signal as an operation scene score. The scores corresponding to the signals of different operation scenes can be set by developers or determined by the electronic equipment based on certain rules.
For example, if the operating scene signal is a parachuting scene signal, and the score corresponding to the parachuting scene signal is 100, the operating scene score is 100, and if the preset score is 80, the electronic device may determine that the operating scene of the foreground application is the preset operating scene.
For another example, assuming that the scene information includes an operation scene signal and application operation information, and after the operation scene signal and the application operation information are input into the scene scoring model, the scene scoring model may determine a score and a weight corresponding to the operation scene signal and a score and a weight corresponding to the application operation information, respectively; and then, the scene scoring model performs weighting operation based on the score and the weight corresponding to the operation scene signal and the score and the weight corresponding to the application operation information to obtain the operation scene score. The scores and the weights respectively corresponding to different operation scene signals, and the scores and the weights respectively corresponding to different application operation information can be set by developers or determined by the electronic equipment based on a certain rule.
For example, assuming that the playoff circle scene signal includes a playoff circle scene signal, the application running information includes a CPU frequency and a GPU frequency, and after the playoff circle scene signal, the CPU frequency and the GPU frequency are input into the scene scoring model, the scene scoring model will respectively determine a score and a weight corresponding to the playoff circle scene signal, a score and a weight corresponding to the CPU frequency and a score and a weight corresponding to the GPU frequency; then, the scene scoring model calculates the product of the score corresponding to the playoff circle scene signal and the weight corresponding to the playoff circle scene signal to obtain a first weight score, the product of the score corresponding to the CPU frequency and the score corresponding to the CPU frequency to obtain a second weight score, and the product of the score corresponding to the GPU frequency and the weight corresponding to the GPU frequency to obtain a third weight score; the electronic device may determine a sum of the first weight score, the second weight score, and the third weight score as the operational scenario score. Assuming that the score corresponding to the playoff circle scene signal is 100, the weight is 0.8, the score corresponding to the CPU frequency is 90, the weight is 0.1, the score corresponding to the GPU frequency is 80, and the weight is 0.1, then the scene score is 97, and assuming that the preset score is 80, the electronic device may determine that the operation scene of the foreground application is the preset operation scene.
For example, assuming that the scene information includes an operation scene signal, application operation information, and device state information, and after the operation scene signal, the application operation information, and the device state information are input into the scene scoring model, the scene scoring model may respectively determine a score and a weight corresponding to the operation scene signal, a score and a weight corresponding to the application operation information, and a score and a weight corresponding to the device state information; and then, the scene scoring model performs weighting operation based on the score and the weight corresponding to the operation scene signal, the score and the weight corresponding to the application operation information and the score and the weight corresponding to the equipment state information to obtain an operation scene score. The scores and the weights respectively corresponding to different operation scene signals, and the scores and the weights respectively corresponding to different application operation information can be set by developers or determined by the electronic equipment based on a certain rule.
For example, assuming that the operation scene signal includes a local loading scene signal, the application operation information includes a CPU frequency and a GPU frequency, the device state information includes a temperature of the electronic device, and after the local loading scene signal, the CPU frequency, the GPU frequency and the temperature of the electronic device are input into the scene scoring model, the scene scoring model respectively determines a score and a weight corresponding to the local loading scene signal, a score and a weight corresponding to the CPU frequency, a score and a weight corresponding to the GPU frequency and a score and a weight corresponding to the temperature of the electronic device; then, the scene scoring model calculates a product of a score corresponding to the pair of office loading scene signals and a weight corresponding to the operating scene to obtain a fourth weight score, a product of a score corresponding to the CPU frequency and a weight corresponding to the CPU frequency to obtain a fifth weight score, a product of a score corresponding to the GPU frequency and a weight corresponding to the GPU frequency to obtain a sixth weight score, and a product of a score corresponding to the temperature of the electronic device and a weight corresponding to the temperature of the electronic device to obtain a seventh weight score; the electronic device may determine a sum of the fourth weight score, the fifth weight score, the sixth weight score, and the seventh weight score as the operational scenario score. For example, if the score corresponding to the office load scene signal is 90, the weight is 0.7, the score corresponding to the CPU frequency is 90, the weight is 0.1, the score corresponding to the GPU frequency is 80, the weight is 0.1, the score corresponding to the temperature of the electronic device is 90, and the weight is 0.1, then the operating scene score is 89, and if the preset score is 80, the electronic device may determine that the operating scene of the foreground application is the preset operating scene.
For another example, if the scene information includes application running information, and the application running information is input into the scene scoring model, the scene scoring model may determine a running scene score according to the application running information.
For example, assuming that the application running information includes a CPU frequency and a GPU frequency, and after the CPU frequency and the GPU frequency are input into the scene scoring model, the scene scoring model respectively determines a score and a weight corresponding to the CPU frequency and a score and a weight corresponding to the GPU frequency; then, the scene scoring model calculates the product of the score corresponding to the CPU frequency and the weight corresponding to the CPU frequency to obtain an eighth weight score, and the product of the score corresponding to the GPU frequency and the weight corresponding to the GPU frequency to obtain a ninth weight score; the electronic device may determine a sum of the eighth weight score and the ninth weight score as the operating scenario score. For example, if the score corresponding to the CPU frequency is 90, the weight is 0.5, the score corresponding to the GPU frequency is 80, and the weight is 0.5, then the running scene score is 85, and if the preset score is 80, the electronic device may determine that the running scene of the foreground application is the preset running scene. The scores and the weights corresponding to different CPU frequencies can be set by developers or determined by the electronic equipment based on certain rules.
It is understood that when the application running information includes only one kind of information, such as only the CPU frequency, the electronic device may directly use the score corresponding to the CPU frequency as the running scene score.
For example, if the scene information includes device state information, and the device state information is input into the scene scoring model, the scene scoring model may determine an operating scene score according to the device state information.
For example, assuming that the device state information includes a temperature of the electronic device and a power consumption of the electronic device, and after the temperature of the electronic device and the power consumption of the electronic device are input into the scene scoring model, the scene scoring model may determine a score and a weight corresponding to the temperature of the electronic device and a score and a weight corresponding to the power consumption of the electronic device, respectively; then, the scene scoring model calculates a product of the score corresponding to the temperature of the electronic device and the weight corresponding to the temperature of the electronic device to obtain a tenth weight score and a product of the score corresponding to the power consumption of the electronic device and the weight corresponding to the power consumption of the electronic device to obtain an eleventh weight score; the electronic device may determine a sum of the tenth weight score and the eleventh weight score as the operational scenario score. For example, if the score corresponding to the temperature of the electronic device is 90, the weight is 0.5, the score corresponding to the power consumption of the electronic device is 80, and the weight is 0.5, the running scene score is 85, and if the preset score is 80, the electronic device may determine that the running scene of the foreground application is the preset running scene. The scores and the weights corresponding to the temperatures of different electronic devices respectively can be set by developers or determined by the electronic devices based on certain rules.
It is understood that when the device status information includes only one type of information, such as only the temperature of the electronic device, the electronic device may directly use the score corresponding to the temperature of the electronic device as the operation scene score.
For another example, assuming that the scene information includes application operation information and device state information, and after the application operation information and the device state information are input into the scene scoring model, the scene scoring model may respectively determine a score and a weight corresponding to the application operation information and a score and a weight corresponding to the device state information; and then, the scene scoring model performs weighting operation based on the score and the weight corresponding to the application running information and the score and the weight corresponding to the equipment state information to obtain a running scene score. The scores and the weights corresponding to different operation scene signals respectively can be set by developers and can also be determined by the electronic equipment based on certain rules.
Assuming that the application operation information comprises a CPU frequency and a GPU frequency, the equipment state information comprises the temperature of the electronic equipment, and after the CPU frequency, the GPU frequency and the temperature of the electronic equipment are input into the scene scoring model, the scene scoring model respectively determines a score and a weight corresponding to the CPU frequency, a score and a weight corresponding to the GPU frequency and a score and a weight corresponding to the temperature of the electronic equipment; then, the scene scoring model calculates a product of the score corresponding to the CPU frequency and the score corresponding to the CPU frequency to obtain a twelfth weight score, a product of the score corresponding to the GPU frequency and the weight corresponding to the GPU frequency to obtain a thirteenth weight score, and a product of the score corresponding to the temperature of the electronic device and the weight corresponding to the temperature of the electronic device to obtain a fourteenth weight score; the electronic device may determine a sum of the twelfth weight score, the thirteenth weight score, and the fourteenth weight score as the scene score. For example, if the score corresponding to the CPU frequency is 90, the weight is 0.4, the score corresponding to the GPU frequency is 80, the weight is 0.4, the score corresponding to the temperature of the electronic device is 90, and the weight is 0.2, then the scene score is 86, and if the preset score is 80, the electronic device may determine that the operation scene of the foreground application is the preset operation scene.
In an alternative embodiment, suspending the running of the background application may include:
when a plurality of background applications exist, determining required system resources corresponding to a preset running scene, foreground occupied system resources occupied by foreground application running, background occupied system resources occupied by each background application and current remaining system resources;
determining system resources to be supplemented according to the required system resources and the system resources occupied by the foreground;
determining the released system resources to be released according to the system resources to be compensated and the current residual system resources;
determining a target background application needing to be suspended from a plurality of background applications according to the released system resources and the background occupied system resources occupied by each background application;
suspending running of the target background application.
The required system resources corresponding to the preset operation scene refer to system resources required for maintaining the foreground application in the preset operation scene without being stuck.
For example, assuming that there are 5 background applications, where the sum of the system resources occupied by any 3 background applications is greater than the system resources to be compensated, the electronic device may determine any 3 background applications as the target background applications, and suspend running the target background applications.
In an optional embodiment, determining, from the plurality of background applications, a target background application that needs to be suspended according to the released system resources and the background occupied by each background application may include:
and determining a target background application needing to be suspended from the plurality of background applications according to the background occupied system resources, the released system resources and the running priority of the background applications, wherein the background occupied system resources are not less than the released system resources.
For example, the electronic device may preset the running priority of each application based on a corresponding rule, and determine a target background application that needs to be suspended from the multiple background applications according to the sequence that the background occupied by each background application occupies system resources, releases the system resources, and increases the running priority of the background application, that is, an application with a lower running priority may be suspended preferentially.
For example, assume background applications a1, a2, A3, a4 and a5, where the running priority of background application a1 is lower than the running priority of background application a2, the running priority of background application a2 is lower than the running priority of background application A3, the running priority of background application A3 is lower than the running priority of background application a4, the running priority of background application a4 is lower than the running priority of background application a5, when it is determined that the system resources are released, the electronic device may first determine whether the system resources occupied by background application a1 are not less than the system resources released, if the system resources occupied by background application a1 are not less than the system resources released, the electronic device may only suspend background application a1, if the system resources occupied by background of background application a1 are less than the system resources released, the electronic device may determine whether the system resources occupied by background application a1 and background application a2 release the system resources, if the background occupation of the system resources by the background application a1 and the background application a2 is not less than the release of the system resources, the electronic device may suspend the background application a1 and the background application a 2. By analogy, the electronic device may determine which background applications need to be suspended specifically in the manner described above, and then suspend the determined background applications that need to be suspended.
For another example, the electronic device may preset the running priority of each application based on a corresponding rule, and determine a target background application that needs to be suspended from the plurality of background applications according to the sequence that the background occupied by each background application occupies the system resource, releases the system resource, and runs the background application from high to low, that is, an application with a higher running priority may be suspended preferentially.
For example, assume background applications A6, a7, A8, a9 and a10, wherein the running priority of background application A6 is higher than the running priority of background application a7, the running priority of background application a7 is higher than the running priority of background application A8, the running priority of background application A8 is higher than the running priority of background application a9, the running priority of background application a9 is higher than the running priority of background application a10, after determining to release the system resources, the electronic device may first determine whether the system resources occupied by background application A6 are not less than the released system resources, if the system resources occupied by background application A6 are not less than the released system resources, the electronic device may only suspend background application A6, if the system resources occupied by background application A6 are less than the released system resources, the electronic device may determine whether the system resources occupied by background applications A6 and application a7 release the system resources, if the background occupation of the system resources by the background application a6 and the background application a7 is not less than the release of the system resources, the electronic device may suspend the background application a6 and the background application a 7. By analogy, the electronic device may determine which background applications need to be suspended specifically in the manner described above, and then suspend the determined background applications that need to be suspended.
In an optional embodiment, the running priority of the background application is determined according to the use parameters of the background application.
Wherein the usage parameter may include at least one of a frequency of use, a length of time of operation, and a last open time, and the like.
For example, the electronic device may determine the running priority of the background application according to the usage frequency of the background application. For example, a plurality of usage frequency ranges may be divided, and the different usage frequency ranges correspond to different operation priorities, and then the electronic device may determine the usage frequency range in which the usage frequency of each background application is located, so as to determine the operation priority corresponding to each background application.
For another example, the electronic device may determine the running priority of the background application according to the use frequency and the running duration of the background application. For example, the electronic device may pre-establish a preset mapping relationship between the use frequency and the operation duration of the application and the operation priority, so that the electronic device may determine the operation priority of the background application according to the use frequency and the operation duration of the background application and the preset mapping relationship.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an application management and control apparatus according to an embodiment of the present disclosure. The application managing apparatus 200 includes: an information acquisition module 201, a scene recognition module 202 and a pause module 203.
An information obtaining module 201, configured to obtain scene information used for identifying an operation scene of a foreground application;
a scene recognition module 202, configured to recognize an operation scene of the foreground application according to the scene information;
and a running suspension module 203, configured to suspend running of the background application if the running scene of the foreground application is a preset running scene.
In an optional embodiment, the scene information includes a running scene signal, and the scene recognition module 202 may be configured to: and identifying the operation scene of the foreground application according to the operation scene signal.
In an optional embodiment, the scenario information further includes application running information, and the scenario identification module 202 may be configured to: and identifying the running scene of the foreground application according to the running scene signal and the application running information.
In an optional embodiment, the context information further includes device status information, and the context identification module 202 may be configured to: and identifying the operation scene of the foreground application according to the operation scene signal, the application operation information and the equipment state information.
In an alternative embodiment, the scene recognition module 202 may be configured to: inputting the scene information into an operation scene scoring model to obtain an operation scene score; and identifying the operation scene of the foreground application according to the operation scene score.
In an alternative embodiment, the pause module 203 may be configured to: when a plurality of background applications exist, determining required system resources corresponding to a preset running scene, foreground occupied system resources occupied by foreground application running, background occupied system resources occupied by each background application and current remaining system resources; determining system resources to be compensated according to the required system resources and the system resources occupied by the foreground; determining the released system resources to be released according to the system resources to be compensated and the current residual system resources; determining a target background application needing to be suspended from a plurality of background applications according to the released system resources and the background occupied system resources occupied by each background application; suspending running of the target background application.
In an alternative embodiment, the pause module 203 may be configured to: and determining a target background application needing to be suspended from the plurality of background applications according to the sequence of the background occupied by each background application from low to high of the system resources, the released system resources and the running priority of the background application, wherein the system resources occupied by the target background application are not less than the released system resources.
In an optional embodiment, the running priority of the background application is determined according to the use parameters of the background application.
It should be noted that the application management and control apparatus 200 provided in the embodiment of the present application and the application management and control method in the foregoing embodiment belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments, and are not described herein again.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program stored in the storage medium is executed on a processor of an electronic device provided in the embodiment of the present application, the processor of the electronic device is caused to execute any of the steps in the application management and control method suitable for the electronic device. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
Referring to fig. 4, the electronic device 300 includes a processor 301 and a memory 302. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The processor 301 in the embodiment of the present application may be a general purpose processor, such as a processor of the ARM architecture.
The memory 302 stores a computer program, which may be a high speed random access memory, but also may be a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302. The processor 301, by executing the computer program in the memory 302, is configured to perform:
acquiring scene information for identifying an operation scene of foreground application;
identifying the running scene of foreground application according to the scene information;
and if the running scene of the foreground application is a preset running scene, pausing the running of the background application.
In an optional embodiment, the context information includes a running context signal, and when the processor 301 identifies a running context of the foreground application according to the context information, the following steps may be performed: and identifying the operation scene of the foreground application according to the operation scene signal.
In an optional embodiment, the context information further includes application running information, and when the processor 301 identifies a running context of the foreground application according to the running context signal, the following steps may be performed: and identifying the running scene of the foreground application according to the running scene signal and the application running information.
In an optional embodiment, the context information further includes device status information, and when the processor 301 identifies the running context of the foreground application according to the running context signal and the application running information, the processor may perform: and identifying the operation scene of the foreground application according to the operation scene signal, the application operation information and the equipment state information.
In an optional embodiment, when the processor 301 identifies the running scene of the foreground application according to the scene information, it may perform: inputting the scene information into an operation scene scoring model to obtain an operation scene score; and identifying the operation scene of the foreground application according to the operation scene score.
In an alternative embodiment, when the processor 301 executes the suspended background application, it may execute: when a plurality of background applications exist, determining required system resources corresponding to a preset running scene, foreground occupied system resources occupied by foreground application running, background occupied system resources occupied by each background application and current remaining system resources; determining system resources to be compensated according to the required system resources and the system resources occupied by the foreground; determining the released system resources to be released according to the system resources to be compensated and the current residual system resources; determining a target background application needing to be suspended from a plurality of background applications according to the released system resources and the background occupied system resources occupied by each background application; and suspending the running of the target background application.
In an optional embodiment, when the processor 301 determines, from the multiple background applications, that the target background application needs to be suspended according to the released system resources and the background occupied by each background application, the following steps may be performed: and determining a target background application needing to be suspended from the plurality of background applications according to the sequence of the background occupied by each background application from system resources to system resources, the released system resources and the running priority of the background application from low to high, wherein the system resources occupied by the target background application are not less than the released system resources.
In an optional embodiment, the running priority of the background application is determined according to the use parameters of the background application.
The application control method, the application control device, the storage medium and the electronic device provided by the present application are introduced in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An application management and control method is characterized by comprising the following steps:
acquiring scene information for identifying an operation scene of foreground application;
identifying the running scene of the foreground application according to the scene information;
and if the running scene of the foreground application is a preset running scene, suspending the running of the background application.
2. The application management and control method according to claim 1, wherein the context information includes a running context signal, and the identifying the running context of the foreground application according to the context information includes:
and identifying the operation scene of the foreground application according to the operation scene signal.
3. The application management and control method according to claim 2, wherein the context information further includes application execution information, and the identifying, according to the execution context signal, the execution context of the foreground application includes:
and identifying the operation scene of the foreground application according to the operation scene signal and the application operation information.
4. The application management and control method according to claim 3, wherein the context information further includes device status information, and identifying the running context of the foreground application according to the running context signal and the application running information includes:
and identifying the operation scene of the foreground application according to the operation scene signal, the application operation information and the equipment state information.
5. The application management and control method according to claim 1, wherein the identifying, according to the context information, the running context of the foreground application includes:
inputting the scene information into an operation scene scoring model to obtain an operation scene score;
and identifying the operation scene of the foreground application according to the operation scene score.
6. The application management and control method according to any one of claims 1 to 5, wherein the suspending the running of the background application includes:
when a plurality of background applications exist, determining required system resources corresponding to the preset running scene, foreground occupied system resources occupied by foreground application running, background occupied system resources occupied by each background application and current remaining system resources;
determining system resources to be compensated according to the required system resources and the system resources occupied by the foreground;
determining the released system resources to be released according to the system resources to be compensated and the current residual system resources;
determining a target background application needing to be suspended from the plurality of background applications according to the released system resources and the background occupied system resources occupied by each background application;
suspending running of the target background application.
7. The application management and control method according to claim 6, wherein the determining, according to the released system resource and the background occupied system resource occupied by each background application, a target background application that needs to suspend running from the plurality of background applications includes:
and determining a target background application needing to be suspended from the plurality of background applications according to the background occupied system resources, the released system resources and the running priority of the background applications, wherein the background occupied system resources of each background application are not less than the released system resources.
8. The application management and control method according to claim 7, wherein the running priority of the background application is determined according to the usage parameters of the background application.
9. An application management and control apparatus, comprising:
the information acquisition module is used for acquiring scene information for identifying the running scene of the foreground application;
the scene recognition module is used for recognizing the operation scene of the foreground application according to the scene information;
and the operation suspending module is used for suspending the operation of the background application if the operation scene of the foreground application is a preset operation scene.
10. A storage medium, characterized in that a computer program is stored therein, which when run on a computer, causes the computer to execute an application management and control method according to any one of claims 1 to 8.
11. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the application management method according to any one of claims 1 to 8 by calling the computer program stored in the memory.
CN202210420372.4A 2022-04-20 2022-04-20 Application control method and device, storage medium and electronic equipment Pending CN114780218A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210420372.4A CN114780218A (en) 2022-04-20 2022-04-20 Application control method and device, storage medium and electronic equipment
PCT/CN2022/140832 WO2023202127A1 (en) 2022-04-20 2022-12-21 Application control method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210420372.4A CN114780218A (en) 2022-04-20 2022-04-20 Application control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114780218A true CN114780218A (en) 2022-07-22

Family

ID=82430678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210420372.4A Pending CN114780218A (en) 2022-04-20 2022-04-20 Application control method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN114780218A (en)
WO (1) WO2023202127A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023202127A1 (en) * 2022-04-20 2023-10-26 Oppo广东移动通信有限公司 Application control method and apparatus, storage medium, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866903A (en) * 2011-09-01 2013-01-09 微软公司 Decoupling backstage work with forestage work
CN104699218A (en) * 2013-12-10 2015-06-10 华为终端有限公司 Task management method and equipment
CN107544842A (en) * 2017-08-25 2018-01-05 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN107562539A (en) * 2017-08-25 2018-01-09 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN108664329A (en) * 2018-05-10 2018-10-16 努比亚技术有限公司 A kind of resource allocation method, terminal and computer readable storage medium
CN109408223A (en) * 2018-03-13 2019-03-01 广东欧珀移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN111666140A (en) * 2020-05-28 2020-09-15 北京百度网讯科技有限公司 Resource scheduling method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102492996B1 (en) * 2018-06-08 2023-01-31 삼성전자주식회사 Electronic device for processing background task using external input and storage medium thereof
CN110457125A (en) * 2019-08-05 2019-11-15 深圳传音控股股份有限公司 Freezing method, terminal device and the storage medium of terminal applies
CN114780218A (en) * 2022-04-20 2022-07-22 Oppo广东移动通信有限公司 Application control method and device, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866903A (en) * 2011-09-01 2013-01-09 微软公司 Decoupling backstage work with forestage work
CN104699218A (en) * 2013-12-10 2015-06-10 华为终端有限公司 Task management method and equipment
CN107544842A (en) * 2017-08-25 2018-01-05 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN107562539A (en) * 2017-08-25 2018-01-09 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN109408223A (en) * 2018-03-13 2019-03-01 广东欧珀移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108664329A (en) * 2018-05-10 2018-10-16 努比亚技术有限公司 A kind of resource allocation method, terminal and computer readable storage medium
CN111666140A (en) * 2020-05-28 2020-09-15 北京百度网讯科技有限公司 Resource scheduling method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023202127A1 (en) * 2022-04-20 2023-10-26 Oppo广东移动通信有限公司 Application control method and apparatus, storage medium, and electronic device

Also Published As

Publication number Publication date
WO2023202127A1 (en) 2023-10-26

Similar Documents

Publication Publication Date Title
CN108763012B (en) Card pause information acquisition method and device and terminal
US9104476B2 (en) Opportunistic multitasking of VOIP applications
US9201693B2 (en) Quota-based resource management
KR101855552B1 (en) Global composition system
CN110300328B (en) Video playing control method and device and readable storage medium
JP7100154B2 (en) Processor core scheduling method, equipment, terminals and storage media
CN110955499B (en) Processor core configuration method, device, terminal and storage medium
CN111124668A (en) Memory release method and device, storage medium and terminal
CN111813520A (en) Thread scheduling method and device, storage medium and electronic equipment
CN107391274B (en) Offline message processing method and device
CN114780218A (en) Application control method and device, storage medium and electronic equipment
CN114748873A (en) Interface rendering method, device, equipment and storage medium
WO2021037228A1 (en) System application management method and apparatus
CN112131029B (en) Broadcast processing method, apparatus, computer device and storage medium
CN112256354B (en) Application starting method and device, storage medium and electronic equipment
US20230244621A1 (en) Reducing interrupts using buffering for data processing
CN117435355A (en) Data processing method and related equipment
CN114217969A (en) Execution function execution method and related equipment
CN116302485A (en) CPU scheduling method and device, electronic equipment and readable storage medium
CN116320518A (en) Live message current limiting method, device, equipment and storage medium
CN115190097A (en) Message pushing method, device, equipment and storage medium
CN115469823A (en) Display device and background processing method
CN115220879A (en) Asynchronous calling method and device, computer equipment and readable storage medium
CN113918350A (en) Garbage recycling method and device, storage medium and electronic equipment
Goldberg et al. Multiple independent processes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination