CN110018901B - Memory recovery method and device, computer equipment and computer readable storage medium - Google Patents

Memory recovery method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN110018901B
CN110018901B CN201810023220.4A CN201810023220A CN110018901B CN 110018901 B CN110018901 B CN 110018901B CN 201810023220 A CN201810023220 A CN 201810023220A CN 110018901 B CN110018901 B CN 110018901B
Authority
CN
China
Prior art keywords
application program
memory
background application
background
recovery
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
CN201810023220.4A
Other languages
Chinese (zh)
Other versions
CN110018901A (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.)
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 CN201810023220.4A priority Critical patent/CN110018901B/en
Publication of CN110018901A publication Critical patent/CN110018901A/en
Application granted granted Critical
Publication of CN110018901B publication Critical patent/CN110018901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Abstract

The application provides a memory recovery method, a memory recovery device, computer equipment and a computer readable storage medium. The method comprises the following steps: if an instruction for recovering the memory is received, acquiring running information and an occupied memory value of the background application program; determining the sequence of memory recovery of the background application program and the proportion of memory recovery of the background application program according to the running information and the occupied memory value; and respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs. According to the method, the computer equipment sets the memory recovery sequence and the memory recovery proportion for the background application program, so that the computer equipment can recover the memory value of the background application program according to the recovery sequence and the recovery proportion, and the method for recovering the memory of the background application program is more intelligent.

Description

Memory recovery method and device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a memory recycling method and apparatus, a computer device, and a computer-readable storage medium.
Background
With the development of intelligent computer devices and the continuous improvement of user requirements, more and more intelligent computer devices have larger and larger screens, more and more executable application programs, and larger power consumption of the intelligent computer devices. In order to save power consumption of the intelligent computer device, the intelligent computer device can perform resource limitation on the running application program, and limit system resources available for the application program.
Disclosure of Invention
The embodiment of the application provides a memory recovery method, a memory recovery device, computer equipment and a computer-readable storage medium, which can set the memory recovery sequence and the memory recovery ratio for a background application program.
A memory reclamation method, comprising:
if an instruction for recovering the memory is received, acquiring running information and an occupied memory value of the background application program;
determining the sequence of memory recovery of the background application program and the proportion of memory recovery of the background application program according to the running information and the occupied memory value;
and respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs.
A memory reclamation apparatus, comprising:
the acquisition module is used for acquiring the running information and the occupied memory value of the background application program if receiving the instruction of recovering the memory;
the determining module is used for determining the sequence of memory recovery of the background application program and the proportion of memory recovery of the background application program according to the running information and the occupied memory value;
and the processing module is used for respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs.
A computer device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as set forth above.
In the embodiment of the application, the computer device sets the memory recovery sequence and the memory recovery ratio for the background application program, so that the computer device can recover the memory value of the background application program according to the recovery sequence and the recovery ratio, and the method for recovering the memory of the background application program is more intelligent.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram showing an internal configuration of a computer device according to an embodiment;
FIG. 2 is a partial block diagram of a computer device in one embodiment;
FIG. 3 is a flow diagram of a method for memory reclamation in one embodiment;
FIG. 4 is a flow chart of a memory reclamation method in another embodiment;
FIG. 5 is a flowchart illustrating a memory reclamation method according to another embodiment;
FIG. 6 is a flow chart of a memory reclamation method in another embodiment;
FIG. 7 is a block diagram illustrating an exemplary memory reclamation apparatus;
FIG. 8 is a block diagram of a memory reclamation apparatus in another embodiment;
FIG. 9 is a block diagram of a memory reclamation apparatus in another embodiment;
fig. 10 is a block diagram of a partial structure of a mobile phone related to a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an internal structure of a computer device according to an embodiment. As shown in fig. 1, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment. The storage is used for storing data, programs and the like, and the storage stores at least one computer program which can be executed by the processor to realize the memory recovery method suitable for the computer device provided in the embodiment of the application. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a memory reclamation method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external computer device. The computer device may be a mobile phone, a tablet computer or a personal digital assistant or a wearable device, etc.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. For example, the computer device further includes a network interface connected via the system bus, where the network interface may be an ethernet card or a wireless network card, and the like, and is used for communicating with an external computer device, such as a server.
FIG. 2 is a diagram illustrating a portion of the architecture of a computer device, in accordance with one embodiment. As shown in FIG. 2, the architectural system of the computer device includes a Java space layer 210, a local framework layer 220, and a Kernel space layer 230. The Java space layer includes a freezing and unfreezing module 212, and the freezing and unfreezing module 212 is used for implementing a freezing policy for each application program, for example, freezing the application program consuming power in the background.
The local framework layer 220 includes a resource priority and restriction management module 222 and a platform freeze management module 224. The resource priority and restriction management module 222 may perform different resource restrictions on different applications, so that different applications are in different resource priorities. The resource priority and restriction management module 222 may also adjust the resource priority of the application according to the requirements of the upper layers so that the computer device can make it reasonable for the application to use the resources. The platform freezing management module 224 may determine the level of resource limitation on the process application program according to the time length of the application program entering the background, the platform freezing management module 224 may preset different levels of resource limitation, and the longer the time length of the application program entering the background is, the higher the level of resource limitation on the application program by the platform freezing management module 224 is, that is, the higher the degree of resource limitation on the application program is. Optionally, the resource restriction level may include: a CPU restricted sleep mode, a CPU frozen sleep mode, and a process deep frozen mode. The CPU restricted sleep mode is to restrict a Central Processing Unit (CPU) resource that can be used by a process of an application, so that the process of the application can use less CPU resource; network resources and input/output (I/O) resources that can be used by processes of the application may be further limited in the CPU limited sleep mode. The CPU freeze sleep mode is a deep restricted mode in which resources available to an application are not recovered, but CPU resources, network resources, and I/O resources are prohibited from being used by the process of the application. The process deep freezing mode is to prohibit the process of the application program from using CPU resources, network resources and I/O resources, and recycle the memory resources occupied by the process of the application program. The interface module of the local framework layer 220 includes a binder interface that is developed to the upper layer, and the framework or the application program of the upper layer can send a resource restriction instruction to the resource restriction management module 222 and send a freeze instruction to the platform freeze management module 224 through the binder interface.
The kernel space layer 230 includes a UID management module 231, a Cgroup module 232, a binder management and control module 233, a process memory recycling module 234, and a timeout freeze exit module 235. Currently, Process management for an application is implemented based on a Process Identification (PID), and a Process does not correspond to an application, which is not beneficial to uniformly managing resources corresponding to all processes of an application. The UID management module 231 may manage resources of the application program through a User Identifier (UID) of the application program, and may also freeze the application program through the UID of the application program. The Cgroup module 232 may provide a CPU, CPUSET, memory, I/O resources and Net related resource restriction mechanism. binder management module 233 may be used to limit the priority of background inter-process binder communications. The process memory recycling module 234 is configured to implement a process deep freeze mode, and release a file area of a process when the process enters the process deep freeze mode, thereby saving memory and speeding up the next start of an application program corresponding to the process. The timeout freeze exit module 235 is used to solve the problem that the process is abnormal during the freeze timeout.
Through the above framework, the memory recovery method in each embodiment of the application can be realized.
FIG. 3 is a flowchart illustrating a memory reclamation method according to an embodiment. As shown in fig. 3, a memory reclamation method includes:
step 302, if an instruction of recovering the memory is received, acquiring the running information and the occupied memory value of the background application program.
When the application program returns from the foreground to the background, the computer equipment can limit the resource of the application program, recover and release the system resource occupied by the application program, so that the computer equipment can provide sufficient system resource for the foreground application program to run. When the computer equipment receives the instruction of recovering the memory, the running information and the occupied memory value of the background application program can be obtained. The instruction for recovering the memory is an instruction for recovering the memory occupied by the background application program. In one embodiment, a computer device receives an instruction to reclaim memory when at least one of the following conditions is met:
(1) the current available memory value is lower than the memory value required by the foreground application program to run. The computer equipment can obtain the memory resource value required by the foreground application program, and when the currently available memory resource value of the computer equipment is lower than the memory resource value required by the foreground application program, the kernel space in the computer equipment can send a memory recovery instruction to the user space, so that the user space can release the memory resource occupied by the background application program according to the memory recovery instruction.
(2) The sum of the used memory values of the background applications reaches a first threshold. The computer device may obtain a sum of memory resource values occupied by each background application. When the sum of the memory resource values occupied by the background application programs is not less than the first threshold value, the kernel space in the computer equipment can send a memory recovery instruction to the user space, so that the user space can release the memory resources occupied by the background application programs according to the memory recovery instruction. The first threshold may be a value set by the computer device or a value set by a user, for example, 60% of the total memory resource value of the computer device.
(3) The computer device is in a standby state. When the computer equipment is in a standby state, the kernel space in the computer equipment can send an instruction for recovering the memory to the user space, so that the user space can release the memory resources occupied by the background application program according to the instruction for recovering the memory. When the computer device receives the screen-off broadcast, the computer device can be judged to be in a standby state.
The running information of the background application program comprises: the loading duration of the application program, the frequency of the application program entering the foreground, the accumulated use duration of the application program and the like. The computer equipment can be preset with a decision model, the decision model can acquire the weight of the background application program according to the running information of the background application program, and the weight of the background application program is used for expressing the degree of using the background application program by a user. The higher the weight of the background application, the deeper the user is using the background application. The application program loading duration is positively correlated with the weight, the frequency of the application program entering a foreground is positively correlated with the weight, and the application program accumulated use duration is positively correlated with the weight.
And step 304, determining the sequence of memory recovery of the background application program and the proportion of memory recovery of the background application program according to the running information and the occupied memory value.
The computer equipment can respectively acquire the running information of the background application program and the memory value occupied by the background application program, and determines the sequence of memory recovery of the background application program and the proportion of memory recovery of each background application program according to the running information of the background application program and the memory value occupied by the background application program. Specifically, the computer device may determine, according to the running information of the background application program, an order of performing memory recovery on the background application program, and the computer device may determine, according to the memory value occupied by the background application program, a proportion of performing memory recovery on the background application program.
And step 306, respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs.
The computer equipment can sequentially recycle the memory values occupied by the background application program according to the memory recycling sequence. When the memory value occupied by each background application program is recovered, the computer equipment can acquire the recovery proportion corresponding to each background application program, and the memory value occupied by the background application program is recovered according to the recovery proportion. Optionally, when the computer device recovers the memory value occupied by the background application program, sequentially recovering the memory resources occupied by the background application program from a low weight to a high weight, that is, recovering the application programs with low frequency, short loading time, and long accumulated use time that enter the foreground first. By the memory recycling method, the problem that the loading time is too long when the application program enters the foreground again due to the fact that memory resources are completely recycled after the background application program with the long loading time enters the background can be solved, and the loading time is effectively shortened when the application program enters the foreground again.
According to the method in the embodiment of the application, the computer device sets the memory recovery sequence and the memory recovery proportion for the background application program, so that the computer device can recover the memory value of the background application program according to the recovery sequence and the recovery proportion, and the method for recovering the memory of the background application program is more intelligent.
In an embodiment, the determining, according to the operation information and the occupied memory value, the sequence of memory recovery for the background application and the ratio of memory recovery for the background application include: determining the weight of the background application program according to the loading duration, the using frequency and the occupied memory value, and determining the sequence of memory recovery of the background application program according to the weight. And determining the proportion of memory recovery of the background application program according to the size of the occupied memory value.
The decision model can be preset in the computer equipment, and the weight of the application program can be determined according to the loading duration, the use frequency and the occupied memory value of the application program. The weight of the application program is used for representing the use degree of the application program by the user. The higher the weight of the application program is, the higher the use degree of the application program by the user is. The loading duration is positively correlated with the weight, the frequency of use is positively correlated with the weight, and the memory value is positively correlated with the weight. The computer equipment can also obtain a first score corresponding to the loading duration, a second score corresponding to the use frequency and a third score corresponding to the occupied memory value. The corresponding relation between the loading duration and the score, the corresponding relation between the use frequency and the score, and the corresponding relation between the occupied memory value and the score can be preset in the computer equipment. And calculating the weight of the application program according to the first score, the second score and the third score. After obtaining the weight of the background application program, the computer device may determine that the order of the weight of the background application program is small to large as the order of memory recovery for the background application program.
The computer equipment can determine the proportion of memory recovery of the background application program according to the size of the memory value occupied by the application program. The computer equipment can preset the recovery proportion corresponding to the memory value occupied by the application program, and when the size of the memory value occupied by the background application program is obtained, the corresponding recovery proportion can be searched according to the size of the memory value occupied by the background application program.
According to the method, the memory recovery sequence and the memory recovery ratio can be set for the background application program, and the intellectualization of the background application program in the memory recovery can be realized.
In one embodiment, the method further comprises: and acquiring the time length of the background application program entering the background, and adjusting the proportion of memory recovery of the background application program according to the time length.
The computer equipment can acquire the time length of the background application program entering the background, and adjust the proportion of memory recovery of the background application program according to the time length of the background application program entering the background. Specifically, the longer the duration of the background application program entering the background is, the higher the proportion of the computer device to the recycled memory of the background application program is. Optionally, the computer device may set a plurality of level thresholds for the duration of the background application entering the background, for example, a first level threshold of 1 hour, a second level threshold of 3 hours, and a third level threshold of 5 hours. With the increase of the grade threshold, the proportion of the computer equipment to the recycled memory of the background application program is gradually increased. For example, the first-level recycled memory proportion is 30%, the second-level recycled memory proportion is 50%, and the third-level recycled memory proportion is 80%. By the method, the memory resources occupied by the background application program can be gradually recycled, the longer the background application program enters the background, the more the recycled memory resources are, and the user experience is improved.
According to the method in the embodiment of the application, the computer equipment can adjust the proportion of memory recovery of the background application program according to the time length of the application program entering the background, and the intellectualization of the memory resource recovery of the background application program can be realized.
In one embodiment, the method further comprises:
and 308, freezing the background application program if the time length of the background application program after entering reaches a second threshold value, wherein the step of freezing the background application program means that the background application program is prohibited from using system resources.
In step 310, if a wake-up message for the background application program in the frozen state is received, a wake-up duration corresponding to the background application program is obtained.
In step 312, if the time difference between the current time and the last awakened time of the background application is not less than the awakening duration, the background application is awakened according to the awakening message.
The computer device may also resource limit the application, wherein a level of resource limit for the application may be determined based on a length of time the application enters the background. The longer the application enters the background, the higher the level of resource restriction on the application. When the computer equipment limits the resources of the application program, if the application program is switched to a process deep freezing mode, the application program is in a freezing state. When an application is in a frozen state, the application cannot use system resources and therefore cannot respond to communication messages of other applications. The freeze wakeup duration is a time difference for waking up the application program from the frozen state twice, which is preset by the computer device.
When the computer device receives a communication message or a system message for the application program in the frozen state, the computer device can be switched from the frozen state to a state in which system resources can be used, so that the application program can respond to the communication message or the system message. The state that the application program is switched from the freezing state to the usable system resource can be a state that the application program is switched from the process freezing state to the CPU restricted sleep state, so that the application program can use the system resource. The computer device can also unfreeze the application program, and the application program is not limited to using system resources.
Upon receiving a wake-up message for a background application in a frozen state, the computer device does not wake-up the background application each time a wake-up message is received. The computer device may compare the time difference between the current time and the last wake-up time of the background application with the wake-up duration. And if the time difference is greater than or equal to the awakening duration, the computer equipment immediately awakens the background application program according to the awakening message. If the time difference is smaller than the awakening time length, the computer equipment awakens the background application program when the time difference between the current time and the last awakened time of the background application program is equal to the awakening time length. That is, when detecting that the time difference between the current time and the last time when the application program is awakened is smaller than the awakening time, the computer device accumulates the awakening messages received in the awakening time, and when the time difference between the current time and the last time when the background application program is awakened is equal to the awakening time, awakens the background application program according to the accumulated awakening messages. If the wake-up message is not received within the wake-up duration after the last application is woken up, the computer device may immediately wake up the background application when the wake-up message is received after the wake-up duration is exceeded.
In general, in order to save power consumption of a computer device and increase available resources of a foreground application, the resources available to the background application are limited, for example, the background application is frozen. When the computer equipment receives the awakening message of the background application program, the background application program needs to be awakened, otherwise, the background application program generates no-response errors, but the frequent awakening of the background application program can cause the resource limit rate of the computer equipment to the background application program to be reduced, and the available resources of the foreground application program cannot be improved.
According to the method in the embodiment of the application, the computer equipment can set the wake-up duration for the application program in the frozen state, so that the application program is not frequently woken up to waste the power consumption of the computer equipment, and the problem that the application program is not responded after being in the frozen state for a long time is solved.
In one embodiment, the method further comprises:
and step 314, if a termination command for the application program in the frozen state is received, unfreezing the application program, setting the unfrozen application program to be in a non-frozen state, and terminating the unfrozen application program according to the termination command.
If the resources of the computer equipment are in short supply, the computer equipment sends a termination command to the application program in the frozen state, closes the application program in the frozen state and releases the system resources occupied by the application program. However, when the application program is in the frozen state, the application program cannot receive any message, and even if the application program in the frozen state is woken up, the application program can be quickly restored to the frozen state after the application program is woken up, so that the computer device cannot close the application program in the frozen state. Typically, a computer device will use two sets of code to terminate an application, one for terminating frozen state applications and the other for terminating other applications.
When the computer equipment receives a termination command for an application program in a frozen state, if the application program is detected to be in the frozen state of the frozen state, the application program in the frozen state is unfrozen, and the unfrozen application program is set to be in a non-unfrozen state, the unfrozen application program can correctly respond to the termination command, namely the unfrozen application program can be closed. The unfreezing of the application program can be to not limit the system resource used by the application program, or to switch the application program from a state of not using the system resource to a state of using the system resource, such as to switch the application program to a CPU limited sleep mode.
According to the method, the application program in the frozen state can be safely terminated, the situation that the application program cannot be terminated is avoided, the computer equipment can terminate the application program in the frozen state and other application programs according to a uniform termination instruction, the compatibility of the application program in the frozen state and other application programs is achieved, the difficulty in software development is reduced, and the mobile operating system is convenient to maintain.
In one embodiment, the method further comprises:
step 316, set the corresponding resource priority to the application.
Step 318, if it is detected that the background application program and the foreground application program have at least one of a communication mechanism and a synchronization mechanism, the background application program is used as a depended application program.
In step 320, if it is detected that the resource priority of the depended application is lower than the resource priority of the foreground application, the resource priority of the depended application is increased.
The computer device may set a resource priority for the application. The computer device can set resource priority to the application program according to the type of the application program, the use frequency of the application program and the like. The resource priority is a limit level of resources available to the application, and if the resource priorities corresponding to the applications are different, the limit levels of the resources available to the applications are different. The higher the priority of the resource corresponding to the application, the less the limitation on the resources available to the application. The usable resources include: CPU resources, memory resources, I/O resources, and network resources. For example, the computer device may set a 5-level priority for the application including: stage 1, stage 2, stage 3, stage 4, and stage 5. Wherein, the 1 st priority is the highest, and the 5 th priority is the lowest. When the application program is in priority level 1, the usable proportion of each resource is 80%, that is, the usable CPU resource is 80% of the total CPU resource, the usable memory resource is 80% of the total memory resource, the usable I/O resource is 80% of the total I/O resource, and the usable network resource is 80% of the total network resource. When the application program is in the priority level 2, the usable proportion of each resource is 60 percent; when the application program is in the 3 rd priority level, the usable proportion of each resource is 40 percent; when the application program is in the 4 th priority level, the usable proportion of each resource is 20 percent; when the application is in priority 5, the proportion of each resource available is 10%.
The interprocess communication mechanism of the application program comprises socket, binder, shared memory and the like. Two programs on the network effect the exchange of data via a bidirectional communication link, one end of which is called a socket. Binder is an interprocess communication mechanism that provides remote procedure call functionality. Shared memory is a very efficient way to allow two unrelated processes to access the same logical memory, and shared memory is a very efficient way to share and transfer data between two running processes, and memory shared between different processes is usually arranged as the same physical memory. The inter-process synchronization mechanism of the application program means that in concurrent programming, access of processes to common variables must be restricted, and the restriction is called synchronization. In an operating system, the synchronization mechanism for user mode (user mode) may be implemented by calling a futex system call. Wherein the user state refers to a non-privileged state. The synchronization mechanism includes a semaphore, a mutex, etc. When the process of the background application program with any synchronization mechanism existing with the process of the foreground application program is detected through the futex system call, the detected background application program can be used as the depended application program. When the background application program and the foreground application program have one or more of a communication mechanism and a synchronization mechanism, the background application program can be regarded as a depended application program of the foreground application program, namely the foreground application program can be executed smoothly only by calling data of the background application program.
In general, a computer device sets a higher priority for resources of a foreground application and a lower priority for resources of a background application. When the computer device detects that the background application program is the application program depended on by the foreground application program, whether the resource priority of the background application program is the same as the resource priority of the foreground application program can be detected, and if the resource priority of the background application program is lower than the resource priority of the foreground application program, the resource priority of the background application program can be improved to the resource priority of the foreground application program by the computer device.
According to the method, when the background application program is detected to be the application program depended by the foreground application program, the resource priority of the background application program can be improved, the available resources of the background application program are increased, and the speed of the background application program responding to the foreground application program is increased.
In one embodiment, further comprising: and when detecting that the foreground application program finishes the dependence on the background application program, reducing the resource priority of the background application program. And when the background application program is not the application program depended by the foreground application program any more, restoring the resource priority of the background application program to the lower resource priority before adjustment.
In one embodiment, a memory reclamation method includes:
(1) and if the instruction of recovering the memory is received, acquiring the running information and the occupied memory value of the background application program.
(2) And determining the sequence of memory recovery of the background application program and the proportion of memory recovery of the background application program according to the running information and the occupied memory value.
(3) And respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs.
Optionally, the running information includes loading duration of the background application and usage frequency of the background application; determining the sequence of memory recovery of the background application program and the proportion of memory recovery of the background application program according to the running information and the occupied memory value, wherein the sequence comprises the following steps: determining a weight of the background application program according to the loading duration, the using frequency and the occupied memory value, and determining the sequence of memory recovery of the background application program according to the weight; and determining the proportion of memory recovery of the background application program according to the size of the occupied memory value.
Optionally, the computer device receives an instruction to reclaim the memory when at least one of the following conditions is met: the current available memory value is lower than the memory value required by the foreground application program to run; the sum of the used memory values of the background application program reaches a first threshold value; the computer device is in a standby state.
Optionally, the method further includes: acquiring the time length of a background application program entering a background; and adjusting the proportion of memory recovery of the background application program according to the duration.
Optionally, the method further includes: if the time length of the background application program after entering reaches a second threshold value, freezing the background application program, wherein the step of freezing the background application program means that the background application program is forbidden to use system resources; if receiving a wake-up message of the background application program in the frozen state, acquiring a wake-up duration corresponding to the background application program; and if the time difference between the current time and the last awakened time of the background application program is not less than the awakening duration, awakening the background application program according to the awakening message.
Optionally, the method further includes: and if a termination command for the application program in the frozen state is received, unfreezing the application program, setting the unfrozen application program to be in a non-frozen state, and terminating the unfrozen application program according to the termination command.
Optionally, the method further includes: setting corresponding resource priority for the application program; if the background application program and the foreground application program are detected to have at least one of a communication mechanism and a synchronization mechanism, taking the background application program as a depended application program; and if the resource priority of the depended application program is lower than that of the foreground application program, the resource priority of the depended application program is improved.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
Fig. 7 is a block diagram illustrating a memory reclamation apparatus according to an embodiment. As shown in fig. 7, a memory recycling apparatus includes:
the obtaining module 702 is configured to obtain the running information and the occupied memory value of the background application program if an instruction to recycle the memory is received.
The determining module 704 is configured to determine, according to the running information and the occupied memory value, an order of performing memory recovery on the background application and a proportion of performing memory recovery on the background application.
The processing module 706 is configured to separately recycle the memories of the background applications according to the sequence and the ratio of memory recycling for the background applications.
In one embodiment, the running information comprises the loading duration of the background application and the use frequency of the background application; the determining module 704 determines the order of performing memory recovery on the background application and the proportion of performing memory recovery on the background application according to the running information and the occupied memory value, including: determining a weight of the background application program according to the loading duration, the using frequency and the occupied memory value, and determining the sequence of memory recovery of the background application program according to the weight; and determining the proportion of memory recovery of the background application program according to the size of the occupied memory value.
In one embodiment, a computer device receives an instruction to reclaim memory when at least one of the following conditions is met: the current available memory value is lower than the memory value required by the foreground application program to run; the sum of the used memory values of the background application program reaches a first threshold value; the computer device is in a standby state.
In one embodiment, the obtaining module 702 is further configured to obtain a duration of the background application entering the background; the processing module 706 is further configured to adjust a ratio of memory reclamation for the background application according to the duration.
Fig. 8 is a block diagram of a memory reclamation apparatus in another embodiment. As shown in fig. 8, a memory recycling apparatus includes: an acquisition module 802, a determination module 804, a processing module 806, a freezing module 808, and a wake-up module 810. The acquiring module 802, the determining module 804 and the processing module 806 have the same functions as the corresponding modules in fig. 7.
The freezing module 808 is configured to freeze the background application program if the duration of the background application program after entering reaches a second threshold, where freezing the background application program means that the background application program is prohibited from using system resources;
the wake-up module 810 is configured to, if a wake-up message for the background application program in the frozen state is received, obtain a wake-up duration corresponding to the background application program; and if the time difference between the current time and the last awakened time of the background application program is not less than the awakening duration, awakening the background application program according to the awakening message.
Fig. 9 is a block diagram of a memory reclamation apparatus in another embodiment. As shown in fig. 9, a memory recycling apparatus includes: an acquisition module 902, a determination module 904, a processing module 906, and a termination module 908. The acquiring module 902, the determining module 904 and the processing module 906 have the same functions as the corresponding modules in fig. 7.
A termination module 908, configured to, if a termination command for the application program in the frozen state is received, unfreeze the application program, set the application program after unfreezing to a non-frozen state, and terminate the application program after unfreezing according to the termination command.
In one embodiment, the processing module 906 is further configured to set a corresponding resource priority for the application; if the background application program and the foreground application program are detected to have at least one of a communication mechanism and a synchronization mechanism, taking the background application program as a depended application program; and if the resource priority of the depended application program is lower than that of the foreground application program, the resource priority of the depended application program is improved.
The division of each module in the memory recovery device is only for illustration, and in other embodiments, the memory recovery device may be divided into different modules as needed to complete all or part of the functions of the memory recovery device.
For specific limitations of the memory recovery device, reference may be made to the above limitations of the memory recovery method, which is not described herein again. All or part of the modules in the memory recovery device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The implementation of each module in the memory recovery device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media embodying computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the memory reclamation method of the embodiments herein.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the memory reclamation method of the embodiments of the present application.
The embodiment of the application also provides computer equipment. As shown in fig. 10, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the mobile phone as an example:
fig. 10 is a block diagram of a partial structure of a mobile phone related to a computer device provided in an embodiment of the present application. Referring to fig. 10, the cellular phone includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (WiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 1010 may be configured to receive and transmit signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the received downlink information to the processor 1080; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 1020 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 volatile solid state storage device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1000. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, which may also be referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 1031 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The display unit 1040 may include a display panel 1041. In one embodiment, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 1031 can overlay the display panel 1041, and when the touch panel 1031 detects a touch operation on or near the touch panel 1031, the touch operation is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 10, the touch panel 1031 and the display panel 1041 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1000 may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
Audio circuitry 1060, speaker 1061, and microphone 1062 may provide an audio interface between a user and a cell phone. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and the audio data is processed by the audio data output processor 1080 and then transmitted to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1070, it is to be understood that it does not belong to the essential constitution of the handset 1000 and may be omitted as needed.
The processor 1080 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. In one embodiment, processor 1080 may include one or more processing units. In one embodiment, processor 1080 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset 1000 also includes a power supply 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system that may be configured to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 1000 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor 1080 included in the computer device executes the steps of the memory recovery method in the embodiment of the present application when executing the computer program stored in the memory.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A memory reclamation method, comprising:
if an instruction for recovering the memory is received, acquiring running information and an occupied memory value of the background application program; the running information comprises the loading duration of the application program, the frequency of the application program entering a foreground and the accumulated use duration of the application program;
determining the sequence of memory recovery of the background application program from low weight to high weight according to the running information and the occupied memory value; the loading time length of the application program, the frequency of the application program entering a foreground and the accumulated use time length of the application program are positively correlated with the weight;
determining the proportion of memory recovery of the background application program according to the occupied memory value, and adjusting the proportion of memory recovery according to the time length of the background application program entering a background; the time length of the background application program entering the background is positively correlated with the proportion of the memory recovery;
and respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs.
2. The method of claim 1, wherein:
the running information comprises the loading duration of the background application program and the use frequency of the background application program;
the determining the order of memory recovery for the background application program according to the running information and the occupied memory value includes:
determining the weight of the background application program according to the loading duration, the using frequency and the occupied memory value, and determining the sequence of memory recovery of the background application program according to the weight.
3. The method of claim 2, wherein determining the weight of the background application according to the loading duration, the frequency of use, and the occupied memory value comprises:
acquiring a first score corresponding to the loading duration, a second score corresponding to the use frequency and a third score corresponding to the occupied memory value;
and calculating the weight of the background application program according to the first score, the second score and the third score.
4. The method of claim 1, wherein the computer device receives the instructions to reclaim memory when at least one of the following conditions is met:
the current available memory value is lower than the memory value required by the foreground application program to run;
the sum of the used memory values of the background application program reaches a first threshold value;
the computer device is in a standby state.
5. The method of any of claims 1 to 4, further comprising:
freezing the background application program if the time length of the background application program entering the background reaches a second threshold value, wherein the step of freezing the background application program means that the background application program is forbidden to use system resources;
if a wake-up message of the background application program in the frozen state is received, acquiring a wake-up duration corresponding to the background application program;
and if the time difference between the current time and the last awakened time of the background application program is not less than the awakening duration, awakening the background application program according to the awakening message.
6. The method of claim 5, comprising:
and if a termination command for the application program in the frozen state is received, unfreezing the application program, setting the unfrozen application program to be in a non-frozen state, and terminating the unfrozen application program according to the termination command.
7. The method according to any one of claims 1 to 4, comprising:
setting corresponding resource priority for the application program;
if the background application program and the foreground application program are detected to have at least one of a communication mechanism and a synchronization mechanism, taking the background application program as a depended application program;
and if the resource priority of the depended application program is lower than the resource priority of the foreground application program, improving the resource priority of the depended application program.
8. A memory recycling device, comprising:
the acquisition module is used for acquiring the running information and the occupied memory value of the background application program if receiving the instruction of recovering the memory; the running information comprises the loading duration of the application program, the frequency of the application program entering a foreground and the accumulated use duration of the application program;
the determining module is used for determining that the sequence of memory recovery of the background application program is the sequence from low weight to high weight for recovery according to the running information and the occupied memory value; the loading time length of the application program, the frequency of the application program entering a foreground and the accumulated use time length of the application program are positively correlated with the weight; determining the proportion of memory recovery of the background application program according to the occupied memory value, and adjusting the proportion of memory recovery according to the time length of the background application program entering a background; the time length of the background application program entering the background is positively correlated with the proportion of the memory recovery;
and the processing module is used for respectively recovering the memories of the background application programs according to the sequence and the proportion of the memory recovery of the background application programs.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201810023220.4A 2018-01-10 2018-01-10 Memory recovery method and device, computer equipment and computer readable storage medium Active CN110018901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810023220.4A CN110018901B (en) 2018-01-10 2018-01-10 Memory recovery method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810023220.4A CN110018901B (en) 2018-01-10 2018-01-10 Memory recovery method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110018901A CN110018901A (en) 2019-07-16
CN110018901B true CN110018901B (en) 2021-08-03

Family

ID=67188085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810023220.4A Active CN110018901B (en) 2018-01-10 2018-01-10 Memory recovery method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110018901B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673956B (en) * 2019-09-24 2022-04-15 Oppo广东移动通信有限公司 Recovery thread creating method and device, computer equipment and storage medium
CN110727607B (en) * 2019-09-27 2022-08-12 Oppo广东移动通信有限公司 Memory recovery method and device and electronic equipment
CN110727606A (en) * 2019-09-27 2020-01-24 Oppo(重庆)智能科技有限公司 Memory recovery method and device and electronic equipment
CN111078586B (en) * 2019-12-10 2022-03-01 Oppo(重庆)智能科技有限公司 Memory recovery method and device, storage medium and electronic equipment
CN113392037A (en) * 2020-03-12 2021-09-14 深圳市万普拉斯科技有限公司 Memory recovery method and device, computer equipment and storage medium
CN112114965A (en) * 2020-09-15 2020-12-22 深圳市欢太科技有限公司 Application program running method and device, terminal and storage medium
CN113011607B (en) * 2021-02-24 2023-09-01 腾讯科技(深圳)有限公司 Resource recycling method, device, equipment and storage medium
CN113986559B (en) * 2021-12-24 2022-06-24 荣耀终端有限公司 Memory management method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701025A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Memory recovery method and device
CN106201572A (en) * 2016-06-23 2016-12-07 努比亚技术有限公司 Mobile terminal and internal memory releasing control method
CN106304292A (en) * 2016-08-19 2017-01-04 南京酷派软件技术有限公司 A kind of application message based reminding method and terminal
CN106844032A (en) * 2017-01-23 2017-06-13 努比亚技术有限公司 The storage processing method and device of a kind of terminal applies
CN106951314A (en) * 2017-03-10 2017-07-14 清华大学 The cutting-off method automatically waken up towards android system background service
CN107220076A (en) * 2016-09-27 2017-09-29 华为技术有限公司 A kind of method for recovering internal storage and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10254337B2 (en) * 2015-10-27 2019-04-09 Marvell World Trade Ltd. System and method for establishing a trusted diagnosis/debugging agent over a closed commodity device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701025A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Memory recovery method and device
CN106201572A (en) * 2016-06-23 2016-12-07 努比亚技术有限公司 Mobile terminal and internal memory releasing control method
CN106304292A (en) * 2016-08-19 2017-01-04 南京酷派软件技术有限公司 A kind of application message based reminding method and terminal
CN107220076A (en) * 2016-09-27 2017-09-29 华为技术有限公司 A kind of method for recovering internal storage and device
CN106844032A (en) * 2017-01-23 2017-06-13 努比亚技术有限公司 The storage processing method and device of a kind of terminal applies
CN106951314A (en) * 2017-03-10 2017-07-14 清华大学 The cutting-off method automatically waken up towards android system background service

Also Published As

Publication number Publication date
CN110018901A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
CN110018901B (en) Memory recovery method and device, computer equipment and computer readable storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN107220076A (en) A kind of method for recovering internal storage and device
CN109992364B (en) Application freezing method and device, computer equipment and computer readable storage medium
WO2019128546A1 (en) Application program processing method, electronic device, and computer readable storage medium
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
US20200301731A1 (en) Information Processing Method and Device, Computer Device and Computer Readable Storage Medium
CN106775685B (en) Awakening lock release method and device and mobile terminal
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
WO2019137252A1 (en) Memory processing method, electronic device, and computer-readable storage medium
CN110018905B (en) Information processing method, information processing apparatus, computer device, and computer-readable storage medium
CN110045809A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN110018885B (en) Application program freezing method and device, storage medium and terminal
WO2019128586A1 (en) Application processing method, electronic device, and computer readable storage medium
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN108646909B (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN110045812B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109992360B (en) Process processing method and device, electronic equipment and computer readable storage medium
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
WO2019128553A1 (en) Application processing method, electronic device, and computer-readable storage medium
CN112997132A (en) Application freezing method and device and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant