CN107608744B - Application process management method and device and mobile terminal - Google Patents

Application process management method and device and mobile terminal Download PDF

Info

Publication number
CN107608744B
CN107608744B CN201710792747.9A CN201710792747A CN107608744B CN 107608744 B CN107608744 B CN 107608744B CN 201710792747 A CN201710792747 A CN 201710792747A CN 107608744 B CN107608744 B CN 107608744B
Authority
CN
China
Prior art keywords
priority level
preset
application
application program
mobile terminal
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.)
Active
Application number
CN201710792747.9A
Other languages
Chinese (zh)
Other versions
CN107608744A (en
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201710792747.9A priority Critical patent/CN107608744B/en
Publication of CN107608744A publication Critical patent/CN107608744A/en
Application granted granted Critical
Publication of CN107608744B publication Critical patent/CN107608744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the technical field of application program management, in particular to an application process management method and device and a mobile terminal. The method is applied to the mobile terminal, the mobile terminal runs a plurality of processes with different priority levels, and the plurality of processes comprise a first process. The method comprises the following steps: when the application program runs in a first process, determining the application type of the application program and the priority level of the first process; and managing the plurality of processes according to the application type of the application program and the priority level of the first process. Therefore, it is possible to selectively manage a plurality of processes according to the application type of the application program and the priority level of the first process.

Description

Application process management method and device and mobile terminal
Technical Field
The invention relates to the technical field of application program management, in particular to an application process management method and device and a mobile terminal.
Background
With the technical development of smart phones, the performance of smart phones is increasingly powerful, and the function types are increasingly diversified. In order to meet the consumption requirements of users, existing smart phones have customized some functional applications for the users according to the specific requirements of the users. For example: for some game enthusiasts, some mobile phone manufacturers configure the mobile phone by adopting a high-performance processor, when the game application is started, the mobile phone can quickly run the game application, and the game application is not easy to cause blocking.
In the process of implementing the invention, the inventor finds that the traditional technology has at least the following problems: the traditional technology is mainly to improve the running speed of the application program on the mobile phone system by improving the hardware performance. However, when a plurality of applications are started, and a user starts a target application again, even if hardware overhead is increased, the phenomena of blocking and slow running speed are inevitable.
Disclosure of Invention
An object of the embodiments of the present invention is to provide an application process management method, an application process management apparatus, and a mobile terminal, which solve a technical problem that a process cannot be selectively managed according to an application type of an application program in a conventional technology.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides an application process management method, which is applied to a mobile terminal, where the mobile terminal runs a plurality of processes configured in advance with different priority levels, where the plurality of processes includes a first process, and the method includes: when an application program runs in a first process, determining the application type of the application program and the priority level of the first process; and managing the plurality of processes according to the application type of the application program and the priority level of the first process.
Optionally, the managing the plurality of processes according to the application type of the application program and the priority level of the first process includes: judging whether the application type of the application program is matched with a preset application type or not; if so, determining the available memory of the mobile terminal and a preset memory warning threshold value of the application program, and managing the processes according to the available memory of the mobile terminal, the preset memory warning threshold value of the application program and the priority level of the first process; and if not, managing the processes according to the preset priority level.
Optionally, the managing the plurality of processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application program, and the priority level of the first process includes: judging whether the available memory is larger than the preset memory warning threshold value or not; if the available memory is larger than the preset memory warning threshold value, managing the processes according to a preset priority level; and if the available memory is smaller than the preset memory warning threshold value, managing the processes according to the priority level of the first process.
Optionally, the plurality of processes further includes a second process; the managing the plurality of processes according to the priority level of the first process includes: determining a priority level of the second process; judging whether the priority level of the second process is higher than that of the first process; if the current time is higher than the preset time, the running of the first process and the second process is maintained; if the value is less than the preset value, closing the running of the second process and maintaining the running of the first process.
Optionally, after the operation of the second process is closed and the operation of the first process is maintained, the managing the plurality of processes according to the priority level of the first process further includes: responding to an input operation, and judging whether the operation is matched with a preset operation; if so, managing the first process according to a pre-configured priority level; and if not, closing the running of the second process.
In a second aspect, an embodiment of the present invention provides an application process management apparatus, which is applied to a mobile terminal, where the mobile terminal runs a plurality of processes configured in advance with different priority levels, where the plurality of processes includes a first process, and the apparatus includes: the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining the application type of an application program and the priority level of a first process when the application program runs in the first process; and the management module is used for managing the processes according to the application type of the application program and the priority level of the first process.
Optionally, the management module includes: the judging unit is used for judging whether the application type of the application program is matched with a preset application type; the first management unit is used for determining the available memory of the mobile terminal and the preset memory warning threshold of the application program if the available memory of the mobile terminal is matched with the preset memory warning threshold of the application program, and managing the processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application program and the priority level of the first process; and the second management unit is used for managing the processes according to the preset priority level if the processes are not matched.
Optionally, the first management unit includes: a judging subunit, configured to judge whether the available memory is greater than the preset memory warning threshold; the first management subunit is used for managing the plurality of processes according to a pre-configured priority level if the available memory is larger than the preset memory warning threshold; and the second management subunit is used for managing the processes according to the priority level of the first process if the available memory is smaller than the preset memory warning threshold.
Optionally, the plurality of processes further includes a second process; the second management subunit is specifically configured to: determining a priority level of the second process; judging whether the priority level of the second process is higher than that of the first process; if the current time is higher than the preset time, the running of the first process and the second process is maintained; if the value is less than the preset value, closing the running of the second process and maintaining the running of the first process.
Optionally, the second management subunit is further specifically configured to: responding to an input operation, and judging whether the operation is matched with a preset operation; if so, managing the first process according to a pre-configured priority level; and if not, closing the running of the second process.
In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the application process management methods.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to execute any one of the application program process management methods.
In the embodiments of the present invention, when an application program runs in a first process, an application type of the application program and a priority level of the first process are determined, and a plurality of processes are managed according to the application type of the application program and the priority level of the first process. Therefore, it is possible to selectively manage a plurality of processes according to the application type of the application program and the priority level of the first process.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an application process management apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a management module according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a first management unit according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an application process management method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart of a step 52 provided by the embodiment of the present invention;
FIG. 7 is a flowchart illustrating a step 522 according to an embodiment of the present invention;
FIG. 8 is a flowchart of step 5223 according to an embodiment of the present invention;
fig. 9 is a flowchart of a step 5223 according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The application process management method of the embodiment of the invention can be executed in any suitable type of mobile terminal which takes a flexible display screen as a user interaction interface and has the calculation capability, such as: smart phones, computers, Personal Digital Assistants (PDAs), tablet computers, smart watches, electronic books, and the like.
The mobile terminal provided by the embodiment of the invention supports the installation of various application programs, such as one or more of the following application programs: a drawing application, a presentation application, a word processing application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, a training support application, a photo application, a digital camera application, a digital video recorder application, a web browsing application, a digital music player application, and a digital video player application, among others.
The operating system supported by the mobile terminal provided by the embodiment of the invention comprises: UNIX system, Linux system, MacOS X system, Windows system, iOS system, Android system, WP system, Chrome OS system, and the like.
The embodiment of the invention is described in detail by taking an example that a mobile terminal supports an Android system, and is worth reminding that: the embodiment of the invention takes the example that the mobile terminal supports the Android system, and the protection scope of the embodiment of the invention is not limited.
In a mobile terminal supporting an Android system, the mobile terminal runs a plurality of processes with different priority levels, for example: the plurality of processes includes: foreground process (forego), Visible process (Visible), Secondary service (Secondary Server), background process (Hiden App), Content Provider node (Content Provider), and null process (Empty). The priority levels of the foreground process, the visible process, the service process, the background process, the content supply node and the empty process are sequentially reduced.
Foreground processes are processes currently being displayed on the screen and some system processes. For example: when the browser is operated and the browser interface is displayed in the foreground, the browser belongs to the foreground process, but once the home button is pressed to return to the main interface, the browser becomes a background program.
Visible processes are processes that are not displayed in the foreground, but are still visible to the user. For example: although the input method application is not displayed in the foreground process, the input method application is closely related to the use of the user, the user does not want the input method application to be terminated, otherwise, the input method application needs to be repeatedly executed every time the user types and edits.
The secondary services are the services required by some of the primary services currently running. For example: some browser runs secondary services such as built-in mailbox components, internal storage of contacts, and the like. Secondary services are associated with some system functions.
The background process is a process which is switched to the background operation after being started. For example: and switching the browser from foreground operation to background operation, and switching the browser to the background process.
A content providing node is a non-program entity that only provides content for use by other applications, such as: calendar provisioning nodes, mail provisioning nodes, and the like.
An empty process is a process that runs without any program in it. After some programs are exited, an empty process still resides in the process, no data is running in the process, and the effect is to improve the next starting speed of the program or record some historical information of the program.
The Android system evaluates the importance of each process, and expresses and assigns the importance to each process with a value of "oom _ adj". Generally, the Android system can determine which processes need to be terminated according to "oom _ adj", and generally, the larger the value of "oom _ adj" is, the higher the possibility that the process is selected and terminated by the Android system is. The "oom _ adj" value of the foreground program is 0, which means it will not be terminated by the system, and once it is inaccessible, it will get a higher "oom _ adj", presumably the value of "oom _ adj" is determined by the location of the software in the LRU list.
Starting with Linux kernel 2.6.11, Linux provides an OOM control mechanism for processes, using OOM _ adj values for process control. In case of insufficient memory of the mobile terminal, it can select the process that needs to be closed according to the value of oom _ adj, thereby reclaiming the memory.
The Android system has a process management means, and process management can be performed through an updateomaadd locked function of an ActivityManager Service.
In this embodiment, the Android system calculates an oom _ adj value for each process, and the value range thereof is-1000 to 1000. oom _ adj is higher, oom _ adj is lower in priority level of the process, and is easier to close to recycle the memory.
In addition, the Android system adds a Low Memory Killer (LMK) mechanism to the linux kernel. In the ProcessList class of Android N, the following threshold definitions are performed for highly configured mobile terminals:
Figure BDA0001399639840000061
the definition of the threshold value is as follows: 1. when the available memory is 73728KB, finding out other processes of which the oom _ adj value is larger than the oom _ adj value corresponding to the foreground process, and closing the other processes; 2. when the available memory is 92160KB, finding out other processes with oom _ adj values larger than oom _ adj values corresponding to the visible processes, and closing the other processes; 3. when the available memory is 110592, the remaining processes with the oom _ adj value greater than the oom _ adj value corresponding to the secondary service are found, and the remaining processes are closed … … and so on.
In the present embodiment, the mobile terminal is capable of selectively managing a plurality of processes.
Firstly, a user selects an application program to run on a desktop of the mobile terminal. When the application program runs in the first process, the mobile terminal determines the application type of the application program and the priority level of the first process.
The application programs may be various application programs as described above, and each application program has a corresponding character string for identifying the application type of the application program. Therefore, the application type of the application program can be determined by acquiring the character string of the application program.
The first process may be any of the six processes described above. When the application program runs in the foreground process, the first process is carried out for the foreground, but when the user uses the home return key to switch the application program to the background process, the first process at the moment is the background process. Similarly, after the application program runs in the background process, the user clicks and starts the application program again to enable the application program to run in the foreground process, and the first process at this time is the foreground process.
The mobile terminal may determine a priority level of the first process according to a location of the first process where the application is running. As mentioned above, in the present embodiment, each process is pre-configured with a different priority level.
And finally, the mobile terminal manages a plurality of processes according to the application type of the application program and the priority level of the first process. For example: when a user starts the game application program to run in the foreground process, the mobile terminal can automatically close the visible process, the secondary service, the background process, the content supply node and the idle process, so that the running speed of the game application program is improved, and the pause phenomenon of the game application program during running is reduced. For another example: when the user starts the game application program to run in the background process, the mobile terminal can automatically close the content supply node and the idle process. Therefore, the mobile terminal can increase the running rate of the application program in the first process by selectively managing the plurality of processes.
Generally, a user typically has a preference for a particular application or applications within the mobile terminal during use of the mobile terminal. When the user uses the specific application or applications, the requirement for the multitasking handover of the mobile terminal is not high due to the concentration on the specific application or applications, such as: when a user uses the mobile phone, the use frequency of the game application program is very high, the use frequency of the weather application program or the reading application program is very low, and the user rarely switches the weather application program to the foreground process for running on the assumption that the mobile phone automatically starts the weather application program to run in the background process and starts the game application program to run in the foreground process.
In order to improve the fluency of a specific application program or application programs, in some embodiments, when the mobile terminal manages a plurality of processes according to the application type of the application program and the priority level of the first process, the mobile terminal judges whether the application type of the application program matches a preset application type, if so, determines an available memory of the mobile terminal and a preset memory warning threshold of the application program, and manages the plurality of processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application program and the priority level of the first process; and if not, managing a plurality of processes according to the preset priority level.
The preset application types are customized by the user, for example: the preset application types include a game application type, a video application type, and a browser application type.
The available memory is the memory which is left by the mobile terminal and can be used for running any application program, and the capacity of the available memory changes along with the change of the running of the application program.
The preset memory warning threshold value is defined by a user, and the user correspondingly modifies the LMK threshold value into the preset memory warning threshold value by setting the preset memory warning threshold value. For example: the preset memory warning threshold may be 80000 KB. Generally, when using a mobile terminal, the mobile terminal presents a guidance interface to enable a user to set a preset memory warning threshold for a specific application. For example: when a user uses the mobile phone for the first time, the mobile phone is booted to guide, and a plurality of application modes are presented for the user to select, for example: the plurality of application modes include: a game application mode, a browser application mode, a video application mode, and so forth. When the user selects the game application mode, the mobile phone system automatically assigns the game application program to the game application mode. Further, in the game application mode, the user may set a preset memory warning threshold 80000KB for the game application. When the user does not use the mobile phone for the first time, the user can also operate the mobile phone, so that the mobile phone presents the guide interface for the user to set the preset memory warning threshold value for the specific application mode. Of course, the user may cancel the guidance interface when the user does not want to enter any application mode.
In this embodiment, the mobile terminal does not manage the processes in which all the applications are located.
For example: as mentioned above, when a user starts a news application, since the news application does not match a preset application type (game, browser, video), the mobile terminal manages a plurality of processes according to a pre-configured priority level, that is: assuming the available memory is 73728KB, the remaining processes with oom _ adj values greater than the oom _ adj value corresponding to the foreground process are found, and so on. The pre-configured priority level here may be the priority level of the six processes described in the above embodiments.
For another example: as described above, when the user starts the game application, since the game application matches the preset reference type, the multiple processes are managed according to the available memory of the mobile terminal, the preset memory warning threshold of the application, and the priority level of the first process when the mobile terminal is moved. Specifically, the mobile terminal judges whether the available memory is greater than a preset memory warning threshold, and manages a plurality of processes according to a pre-configured priority level if the available memory is greater than the preset memory warning threshold. If the available memory is smaller than the preset memory warning threshold value, managing a plurality of processes according to the priority level of the first process, in some embodiments, judging whether the priority level of the second process is higher than that of the first process by the mobile terminal, and if so, maintaining the operation of the first process and the second process; if the value is less than the preset value, closing the running of the second process and maintaining the running of the first process. The second process is different from the first process and is any one or more of the six processes. For example: the user starts the game application program to run in the foreground process, meanwhile, the news application program runs in the background process, and the Bluetooth application program runs in the idle process. Further, the configuration parameter examples of the six processes at this time are respectively: 1. foreground process: 10; 2. visible process: 30, of a nitrogen-containing gas; 3. secondary services: 50; 4. background process: 150; 5. the content providing node: 170; 6. and (5) null process 200. And the preset memory warning threshold set by the user for the game application program is 80000 KB. When the mobile terminal detects that the current available memory is 80000KB, the mobile terminal closes the background process and the empty process according to the size of the configuration parameter sample, the background process and the empty process can be regarded as a second process at the moment, and the foreground process is a first process. Therefore, by squeezing the background process, the content supply node and the empty process, the memory is reserved for the foreground process and the system as much as possible, and when the game application program runs, on one hand, the starting speed is high, and on the other hand, the game application program is not easy to jam and is smoother to run.
When the mobile terminal closes the operation of the second process and maintains the operation of the first process, in some embodiments, a user needs to work in a multi-task switching state, so that the user inputs an operation or operates a physical key on a touch display screen of the mobile terminal, then the mobile terminal judges whether the operation is matched with a preset operation, and if the operation is matched with the preset operation, the first process is managed according to a preset priority level; and if not, closing the running of the second process. The preset operation may be a track with a certain shape, a password, or a preset physical key operation logic, for example: the preset operation may be "S" shaped, volume up key + volume down key + volume up key ", and so on.
In this embodiment, when the operation input by the user matches the preset operation, the mobile terminal cancels the preset memory warning threshold set by the user, and manages the first process according to the pre-configured priority level.
Therefore, with such a method, the mobile terminal can quickly switch to the operating state of multitasking.
In the above embodiments, as shown in fig. 1, the mobile terminal 10 includes: at least one processor 11 and a memory 12 communicatively coupled to the at least one processor 11; in fig. 1, one processor 11 is taken as an example. The processor 11 and the memory 12 may be connected by a bus or other means, such as the bus connection in fig. 1.
Wherein the memory 12 stores instructions executable by the at least one processor to enable the at least one processor 11 to perform the control logic of the application process management described above.
As another aspect of the embodiments of the present invention, an application process management apparatus is provided in an embodiment of the present invention, and is applied to a mobile terminal. The application process management apparatus is a software system, which can be stored in the mobile terminal illustrated in fig. 1. The application process management device comprises a plurality of instructions, wherein the instructions are stored in a memory, and a processor can access the memory and call the instructions to execute so as to complete the application process management device.
As shown in fig. 2, the application process management apparatus 20 is applied to a mobile terminal. The mobile terminal runs with a plurality of processes with different priority levels, and the processes comprise a first process. The application process management device 20 includes: the determining module 21 and the managing module 22, wherein the determining module 21 is configured to determine an application type of the application and a priority level of the first process when the application is running in the first process. The management module 22 is configured to manage the plurality of processes according to the application type of the application program and the priority level of the first process.
Therefore, it is possible to selectively manage a plurality of processes according to the application type of the application program and the priority level of the first process.
As shown in fig. 3, the management module 22 includes: a determination unit 221, a first management unit 222, and a second management unit 223.
The determining unit 221 is configured to determine whether the application type of the application program matches a preset application type.
The first management unit 222 is configured to determine, if the available memory of the mobile terminal matches the preset memory warning threshold of the application, and manage a plurality of processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application, and the priority level of the first process.
The second management unit 223 is configured to manage a plurality of processes according to a pre-configured priority level if the processes are not matched.
As shown in fig. 4, the first management unit 222 includes:
the judging subunit 2221 is configured to judge whether the available memory is greater than a preset memory warning threshold;
the first management subunit 2222 is configured to manage the multiple processes according to the pre-configured priority level if the available memory is greater than the preset memory warning threshold.
The second management subunit 2223 is configured to manage the multiple processes according to the priority level of the first process, if the available memory is smaller than the preset memory warning threshold.
In some embodiments, the plurality of processes further includes a second process. The second management subunit 2223 is specifically configured to: determining a priority level of a second process; judging whether the priority level of the second process is higher than that of the first process; if the current time is higher than the preset time, the running of the first process and the second process is maintained; if the value is less than the preset value, closing the running of the second process and maintaining the running of the first process.
In some embodiments, the second management subunit 2223 is further specifically configured to: responding to the input operation, and judging whether the operation is matched with a preset operation; if so, managing the first process according to a pre-configured priority level; and if not, closing the running of the second process.
Since the device embodiment and the above embodiments are based on the same concept, the content of the device embodiment may refer to the above embodiments on the premise that the contents do not conflict with each other, and will not be described herein.
As yet another aspect of the embodiments of the present invention, an embodiment of the present invention provides an application process management method. In addition to the functions of the application process management method according to the embodiment of the present invention being executed by the software system of the application process management apparatus described in fig. 2 to fig. 4, the functions of the application process management method according to the embodiment of the present invention can also be executed by a hardware platform. For example: the application process management method may be implemented in a mobile terminal having a processor with computing capabilities of a suitable type, for example: a single chip, a Digital Signal Processing (DSP), a Programmable Logic Controller (PLC), and so on.
The functions corresponding to the application process management method of each embodiment described below are stored in the form of instructions in a memory of the mobile terminal, and when the functions corresponding to the application process management method of each embodiment described below are to be executed, a processor of the mobile terminal accesses the memory, calls and executes the corresponding instructions, so as to implement the functions corresponding to the application process management method of each embodiment described below.
The memory, as a non-volatile computer-readable storage medium, may be used to store a non-volatile software program, a non-volatile computer-executable program, and modules, such as program instructions/modules (e.g., the respective modules and units described in fig. 2 to 4) corresponding to the application process management apparatus 20 in the foregoing embodiments, or steps corresponding to the application process management method in the following embodiments. The processor executes various functional applications and data processing of the application process management apparatus 20 by running the nonvolatile software program, instructions and modules stored in the memory, that is, functions of the respective modules and units of the application process management apparatus 20 according to the following embodiments or functions of steps corresponding to the application process management method according to the following embodiments.
The memory may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory and, when executed by the one or more processors, perform the application process management method in any of the above method embodiments, e.g., perform the steps shown in fig. 5-9 described in the following embodiments; the functions of the various modules and units described in fig. 2-4 may also be implemented.
As shown in fig. 5, the application process management method 50 is applied to a mobile terminal running a plurality of processes with different priority levels configured in advance. The plurality of processes includes a first process, and the application process management method 50 includes:
step 51, when the application program runs in the first process, determining the application type of the application program and the priority level of the first process;
step 52, managing the plurality of processes according to the application type of the application program and the priority level of the first process.
Therefore, it is possible to selectively manage a plurality of processes according to the application type of the application program and the priority level of the first process.
In some embodiments, as shown in FIG. 6, step 52 comprises:
step 521, judging whether the application type of the application program is matched with a preset application type;
step 522, if the available memory of the mobile terminal is matched with the preset memory warning threshold of the application program, and managing a plurality of processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application program and the priority level of the first process;
step 523, if not, manage the plurality of processes according to the pre-configured priority level.
In some embodiments, as shown in FIG. 7, step 522 includes:
5221, determining whether the available memory is larger than a preset memory warning threshold;
5222, if the available memory is greater than the preset memory warning threshold, managing the plurality of processes according to the pre-configured priority level;
5223, if the available memory is less than the predetermined memory warning threshold, the plurality of processes are managed according to the priority of the first process.
In some embodiments, the plurality of processes further includes a second process. As shown in fig. 8, step 5223 comprises:
step 52231, determining the priority level of the second process;
52232, determining whether the priority level of the second process is higher than that of the first process;
52233, if yes, maintaining the operation of the first process and the second process;
and 52234, if the value is lower than the preset value, closing the running of the second process and maintaining the running of the first process.
In some embodiments, as shown in fig. 9, step 5223 further comprises:
step 52235, responding to the input operation, and judging whether the operation matches the preset operation;
52236, if matching, managing the first process according to the pre-configured priority;
and 52237, if not, closing the running of the second process.
As yet another aspect of the embodiments of the present invention, the embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to execute the application process management method as described in any one of the above.
Therefore, it is possible to selectively manage a plurality of processes according to the application type of the application program and the priority level of the first process.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (5)

1. An application process management method is applied to a mobile terminal, the mobile terminal runs a plurality of processes with different pre-configured priority levels, the plurality of processes comprise a first process, and the method is characterized by comprising the following steps:
when an application program runs in a first process, determining the application type of the application program and the priority level of the first process, wherein the first process is any one of the multiple processes;
managing the plurality of processes according to the application type of the application program and the priority level of the first process;
the managing the plurality of processes according to the application type of the application program and the priority level of the first process includes:
judging whether the application type of the application program is matched with a preset application type or not;
if so, determining the available memory of the mobile terminal and a preset memory warning threshold value of the application program, and managing the processes according to the available memory of the mobile terminal, the preset memory warning threshold value of the application program and the priority level of the first process;
if not, managing the plurality of processes according to a preset priority level;
the plurality of processes further includes a second process;
if the available memory of the mobile terminal is smaller than the preset memory warning threshold of the application program, managing the plurality of processes according to the priority level of the first process includes:
determining a priority level of the second process;
judging whether the priority level of the second process is higher than that of the first process;
if the current time is higher than the preset time, the running of the first process and the second process is maintained;
if the current time is less than the preset time, closing the running of the second process and maintaining the running of the first process;
after the operation of the second process is closed and the operation of the first process is maintained, the managing the plurality of processes according to the priority level of the first process further comprises:
responding to an input operation, and judging whether the operation is matched with a preset operation;
if so, managing the first process according to a pre-configured priority level;
and if not, closing the running of the second process.
2. The method according to claim 1, wherein the managing the plurality of processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application program, and the priority level of the first process comprises:
judging whether the available memory is larger than the preset memory warning threshold value or not;
if the available memory is larger than the preset memory warning threshold value, managing the processes according to a preset priority level;
and if the available memory is smaller than the preset memory warning threshold value, managing the processes according to the priority level of the first process.
3. An application process management device applied to a mobile terminal, wherein the mobile terminal runs a plurality of processes with different pre-configured priority levels, and the plurality of processes comprise a first process, the device comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining the application type of an application program and the priority level of a first process when the application program runs in the first process, and the first process is any one of the processes;
the management module is used for managing the processes according to the application type of the application program and the priority level of the first process;
the management module comprises:
the judging unit is used for judging whether the application type of the application program is matched with a preset application type;
the first management unit is used for determining the available memory of the mobile terminal and the preset memory warning threshold of the application program if the available memory of the mobile terminal is matched with the preset memory warning threshold of the application program, and managing the processes according to the available memory of the mobile terminal, the preset memory warning threshold of the application program and the priority level of the first process;
the second management unit is used for managing the processes according to the preset priority level if the processes are not matched;
the management module further comprises a second management subunit, and the plurality of processes further comprises a second process;
the second management subunit is specifically configured to: determining a priority level of the second process; judging whether the priority level of the second process is higher than that of the first process; if the current time is higher than the preset time, the running of the first process and the second process is maintained; if the current time is less than the preset time, closing the running of the second process and maintaining the running of the first process;
the second management subunit is further specifically configured to: responding to an input operation, and judging whether the operation is matched with a preset operation; if so, managing the first process according to a pre-configured priority level; and if not, closing the running of the second process.
4. The apparatus of claim 3, wherein the first management unit comprises:
a judging subunit, configured to judge whether the available memory is greater than the preset memory warning threshold;
the first management subunit is used for managing the plurality of processes according to a pre-configured priority level if the available memory is larger than the preset memory warning threshold;
and the second management subunit is used for managing the processes according to the priority level of the first process if the available memory is smaller than the preset memory warning threshold.
5. A mobile terminal, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the application process management method of any of claims 1 to 2.
CN201710792747.9A 2017-09-05 2017-09-05 Application process management method and device and mobile terminal Active CN107608744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710792747.9A CN107608744B (en) 2017-09-05 2017-09-05 Application process management method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710792747.9A CN107608744B (en) 2017-09-05 2017-09-05 Application process management method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107608744A CN107608744A (en) 2018-01-19
CN107608744B true CN107608744B (en) 2020-09-25

Family

ID=61057341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710792747.9A Active CN107608744B (en) 2017-09-05 2017-09-05 Application process management method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107608744B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871280A (en) * 2019-03-18 2019-06-11 北京智明星通科技股份有限公司 Background process management method and device
CN110794714A (en) * 2019-10-28 2020-02-14 恒大智慧科技有限公司 Automatic cleaning method and system for community seats
CN112612633B (en) * 2021-01-06 2023-10-03 Oppo广东移动通信有限公司 Inter-process communication method, inter-process communication device, storage medium and terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201600A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 Application program for mobile terminal progress control method and operating system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129475B (en) * 2011-04-21 2016-04-27 北京中创信测科技股份有限公司 A kind of conflict avoiding method and system of resolution system resource-constrained
JP5915656B2 (en) * 2011-08-09 2016-05-11 富士通株式会社 Scheduling method and scheduling system
CN103914322A (en) * 2013-01-05 2014-07-09 腾讯科技(深圳)有限公司 Terminal acceleration method and terminal
US9135084B2 (en) * 2013-01-13 2015-09-15 Verizon Patent And Licensing Inc. Service provider class application scalability and high availability and processing prioritization using a weighted load distributor and throttle middleware
CN106708615A (en) * 2016-11-21 2017-05-24 珠海市魅族科技有限公司 Application management method and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201600A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 Application program for mobile terminal progress control method and operating system

Also Published As

Publication number Publication date
CN107608744A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN108363593B (en) Application program preloading method and device, storage medium and terminal
EP3567477B1 (en) Method for preloading application, storage medium, and terminal
US11467855B2 (en) Application preloading method and device, storage medium and terminal
US11099861B2 (en) Method for preloading application, storage medium, and terminal
CN107943650B (en) Application program control method and device, storage medium and terminal
CN108595224B (en) Application program prompting method and device, storage medium and terminal
CN104951335B (en) The processing method and processing device of application program installation kit
CN108762831B (en) Application program preloading method and device, storage medium and terminal
EP3171270A1 (en) Method and device for information push
CN105389173B (en) Interface switching display method and device based on long connection task
CN106227585B (en) Application program starting method, device and equipment
CN107479953B (en) Process management method, device, storage medium and electronic equipment
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN107608744B (en) Application process management method and device and mobile terminal
US20160224397A1 (en) Exploiting limited context streams
CN107402777B (en) Resource updating method and electronic equipment
CN115576645B (en) Virtual processor scheduling method and device, storage medium and electronic equipment
EP3486823A1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN110868693A (en) Application program flow control method, terminal device and storage medium
CN107748697B (en) Application closing method and device, storage medium and electronic equipment
EP3654156A1 (en) Method and apparatus for customizing status bar on terminal, and electronic device
CN108762838B (en) Application program preloading method and device, storage medium and terminal
CN108293197B (en) Resource statistical method, device and terminal
CN108089781B (en) Interface display method and device
CN111143830A (en) Method and device for limiting application use, terminal equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant