CN110032397B - Application processing method and device, electronic equipment and computer readable storage medium - Google Patents

Application processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110032397B
CN110032397B CN201810023911.4A CN201810023911A CN110032397B CN 110032397 B CN110032397 B CN 110032397B CN 201810023911 A CN201810023911 A CN 201810023911A CN 110032397 B CN110032397 B CN 110032397B
Authority
CN
China
Prior art keywords
target application
application
information
resource
unread
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
CN201810023911.4A
Other languages
Chinese (zh)
Other versions
CN110032397A (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 CN201810023911.4A priority Critical patent/CN110032397B/en
Publication of CN110032397A publication Critical patent/CN110032397A/en
Application granted granted Critical
Publication of CN110032397B publication Critical patent/CN110032397B/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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

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

Abstract

The application relates to an application processing method and device, an electronic device and a computer readable storage medium. The method comprises the following steps: receiving unread information of a target application in a frozen state; when the target application meets a wake-up condition, waking up the target application; generating prompt information of the unread information and displaying the prompt information; when a display instruction of the unread information triggered by acting on the prompt message is detected, the unread information is displayed through the awakened target application; when the target application does not meet the wake-up condition, keeping the target application in a frozen state. By the method, the resource utilization rate of the electronic equipment can be improved.

Description

Application processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to an application processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
When the application installed on the electronic device runs, certain resources, such as processor resources, interface resources, network resources, and/or memory resources, need to be occupied. When the resources occupied by the background application are too much, the running efficiency of the foreground application is affected. Therefore, the background application needs to be frozen to limit the occupation of the background application on resources, improve the available resources on the electronic device, and incline more available resources to the foreground application to improve the processing efficiency of the foreground application.
However, the frozen application is still woken up by other applications or received messages, and the woken-up application usually releases its resource restriction, so that the freezing of the application is ineffective, and it is difficult to effectively increase the available resources on the electronic device.
Disclosure of Invention
The embodiment of the application processing method and device, the electronic equipment and the computer readable storage medium can improve available resources of the equipment.
An application processing method, comprising:
receiving unread information of a target application in a frozen state;
when the target application meets a wake-up condition, waking up the target application;
generating prompt information of the unread information and displaying the prompt information;
when a display instruction of the unread information triggered by acting on the prompt message is detected, displaying the unread information through the awakened target application;
when the target application does not meet the wake-up condition, keeping the target application in a frozen state.
An application processing apparatus, the apparatus comprising:
the unread information receiving module is used for receiving the unread information of the target application in the frozen state;
the awakening module is used for awakening the target application when the target application meets awakening conditions;
the prompt module is used for generating prompt information of the unread information and displaying the prompt information;
the unread information display module is used for displaying the unread information through the awakened target application when a display instruction of the unread information triggered by acting on the prompt message is detected;
and the maintaining module is used for maintaining the target application in a frozen state when the target application does not meet the awakening condition.
An electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the application processing method described in the embodiments of the present application.
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 application processing method described in the embodiments of the present application.
According to the application processing method and device, the electronic device and the computer readable storage medium, whether the target application meets the corresponding awakening condition or not can be detected by setting the awakening condition when the target application generates the unread information, the target application is awakened when the target application meets the awakening condition and is informed to a user that prompt information of the unread information is generated, the operation is responded when a display instruction of the unread information triggered by acting on the prompt information is detected, the target application is switched to be operated in the foreground, the unread information is displayed through the awakened target application and is used for the user to look up, and the target application is kept in a frozen state and is kept limited by resources if the target application does not meet the corresponding awakening condition, so that the available resources of the electronic device are improved. The awakening condition is set for the target application, so that the target application can be prevented from being awakened each time when unread messages exist, the target application in a frozen state needs to be awakened repeatedly when the unread messages are frequently generated, and the frequent awakening application can reduce available resources of the electronic equipment instead because the terminal awakening application also needs to occupy certain resources.
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 of an internal structure of an electronic device in one embodiment;
FIG. 2 is a schematic block diagram of a portion of a system in an electronic device in one embodiment;
FIG. 3 is a flow diagram of a method of application processing in one embodiment;
FIG. 4 is a schematic diagram of an application process in one embodiment;
FIG. 5 is a flow chart of an application process flow in another embodiment;
FIG. 6 is a block diagram showing an example of the structure of an application processing apparatus;
FIG. 7 is a block diagram showing the structure of an application processing apparatus according to another embodiment;
FIG. 8 is a block diagram showing the construction of an application processing apparatus in still another embodiment;
fig. 9 is a block diagram of a partial structure of a cellular phone in one embodiment.
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 and not restrictive on the broad application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first occupancy threshold may be referred to as a second occupancy threshold, and similarly, the second occupancy threshold may be referred to as a first occupancy threshold, without departing from the scope of the present disclosure. The first occupancy threshold and the second occupancy threshold are both occupancy thresholds, but they are not the same occupancy threshold.
In one embodiment, as shown in fig. 1, a schematic diagram of an internal structure of an electronic device is provided. The electronic device includes a processor, a memory, and a display screen connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory is used for storing data, programs, and/or instruction codes, and the like, and at least one computer program is stored on the memory, and the computer program can be executed by the processor to realize the application processing method suitable for the electronic device provided in the embodiment of the application. The Memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random-Access-Memory (RAM). For example, in one embodiment, the memory includes non-volatile storage media and internal memory. The non-volatile storage medium stores an operating system, a database, and a computer program. The database stores data related to implementing an application processing method provided in the above embodiments, for example, information such as a name of each application and a memory page allocated to each application may be stored. The computer program can be executed by a processor to implement an application processing method provided by various embodiments of the present application. The internal memory provides a cached operating environment for the operating system, databases, and computer programs in the non-volatile storage medium. The display screen can be the touch-sensitive screen, for example for capacitive screen or electronic screen for the interface show information that shows foreground application can also be used for detecting the touch operation that acts on this display screen, generates corresponding instruction, for example carries out foreground application's switching instruction etc..
Those skilled in the art will appreciate that the architecture shown in fig. 1 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. For example, the electronic 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 electronic device, such as a server. For another example, no display is present on the electronic device connected via the system bus, or an external display device may be connected.
In one embodiment, as shown in FIG. 2, a partial architecture diagram of an electronic device is provided. The architecture system of the electronic device includes a JAVA space layer 210, a local framework layer 220, and a Kernel space layer 230. The JAVA space layer 210 may include a freezing management application 212, and the electronic device may implement a freezing policy for each application through the freezing management application 212, and perform operations such as freezing and unfreezing for related applications consuming power in the background. A resource priority and restriction management module 222 and a platform freeze management module 224 are contained in the local framework layer 220. The electronic device can maintain different applications in organizations with different priorities and different resources in real time through the resource priority and restriction management module 222, and adjust the resource groups of the application programs according to the requirements of the upper layer, thereby achieving the effects of optimizing performance and saving power consumption. The electronic device may allocate, by using the platform freezing management module 224, the task that the background can be frozen to the corresponding preset freezing layers of different layers according to the length of the time for entering the freezing, and optionally, the number of the freezing layers may include three, where the three are: CPU limited sleep mode, CPU frozen sleep mode, process deep frozen mode. The CPU sleep-restricted mode is to restrict CPU resources occupied by related processes, so that the related processes occupy less CPU resources, and the vacant CPU resources are inclined to other processes which are not frozen, so that the occupation of the CPU resources is restricted, and the occupation of network resources and I/O interface resources by the processes is correspondingly restricted; the CPU freezing sleep mode means that related processes are forbidden to use the CPU, the occupation of a memory is reserved, and when CPU resources are forbidden to use, corresponding network resources and I/O interface resources are also forbidden to use; the deep freezing mode of the process is to further recycle memory resources occupied by the relevant process except for forbidding use of CPU resources, and the recycled memory can be used by other processes. The kernel space layer 230 includes a UID management module 231, a Cgroup module 232, a Binder management module 233, a process memory recycling module 234, and a freeze timeout exit module 235. The UID management module 231 is configured to manage or freeze resources of the third-party application based on a User Identifier (UID) of the application. Compared with the Process control based on the Process Identifier (PID), the unified management of the resources of the application of one user is facilitated through the UID. The Cgroup module 232 is used to provide a complete set of resource restriction mechanisms related to Central Processing Unit (CPU), CPU set, memory, input/output (I/O) and Net. The Binder management and control module 233 is used for controlling the priority of background Binder communication. The interface module of the local framework layer 220 includes a binder interface that is issued to the upper layer, and the framework or application of the upper layer sends a resource restriction or freezing instruction to the resource priority and restriction management module 222 and the platform freezing management module 224 through the provided binder interface. The process memory recycling module 234 is used to implement a deep process freezing mode, so that when a third-party application is in a frozen state for a long time, a file area of a process is mainly released, thereby achieving a memory-saving module and increasing the speed of the application when the application is started next time. The freeze timeout exit module 235 is used to resolve the exception generated by the freeze timeout scenario. Through the above-mentioned architecture, the application processing method in each embodiment of the present application can be realized.
In one embodiment, as shown in fig. 3, an application processing method is provided, and this embodiment is described by taking an example of applying the method to the electronic device shown in fig. 1. The method comprises the following steps:
step 302, receiving unread information of the target application in the frozen state.
The execution of an Application (APP) is usually represented by the execution of a plurality of related processes. A process (process) is a running activity of a program in a computer on a data set, is a basic unit of resource allocation and scheduling of a system, and is the basis of an operating system structure. The target application may be a game-like application, a music-like application, or a social-like application or a payment-like application, among other types of applications. For example, the user may play a game through a game-like application, may watch a video through a video-like application, may play music through a music-like application, and the like.
The application program can be divided into a foreground application program and a background application program according to the running state. The foreground application program refers to an application program running in the foreground of the electronic device, and the foreground application program can be displayed in the foreground and can interact with a user. Background applications refer to applications that run in the background of an electronic device, and background applications generally cannot be displayed in the foreground and implement an interactive process with a user. The electronic equipment can control the switching of foreground application and background application, the foreground application can be switched to the background operation, and the background application can also be switched to the foreground operation.
Applications may be frozen and applications in the frozen state are typically background applications. The application in the frozen state is not closed, but temporarily does not run, so that the occupation of resources is limited. For example, the application in the frozen state does not occupy the processor resources to run, but still occupies the resources such as the memory and hardware of the electronic device. The resource priority and restriction management module in the local framework layer of the electronic device can mark the state of the application, and whether the application is in the frozen state can be known by reading the state mark of the application.
The target application in the frozen state can still receive or generate information, and the unread information represents the information in the unread state. The unread information may include push information recommended to the user, such as offer information, red envelope information, notification messages of friends or service providers, and/or application update information. For example, when the application is a music application, the unread information may be a recommendation of a certain song or singer. The electronic equipment can acquire the unread information and analyze the information content of the unread information.
And step 304, when the target application meets the awakening condition, awakening the target application.
The electronic device presets corresponding wake-up conditions, and the wake-up conditions corresponding to different applications are not necessarily the same. After receiving the unread information, it is possible to detect whether the target application satisfies the wake-up condition. And when detecting that the target application meets the corresponding awakening condition, awakening the target application. In one embodiment, the wake-up condition includes any one or more of the following conditions:
(1) Whether the importance level of the unread information reaches a preset level or not;
(2) Whether the number of the unread messages exceeds the preset number or not;
(3) Whether the current time is in a preset time period or not;
(4) Whether the current position is within a preset area.
Wherein, the electronic equipment sets the importance level corresponding to different information. The importance level can be divided into multiple levels, such as one level, two levels, three levels, four levels, etc. according to the importance degree. The preset level is a preset level threshold for determining whether the wake-up condition is reached, and may be, for example, two levels. Similarly, the preset number, the preset time period and the preset area are also a preset number threshold, a preset time period threshold and a preset area threshold for determining whether the wake-up condition is reached, respectively.
And when one or more of the importance level, the number of messages, the current time and/or the current position of the unread messages of the target application meet the corresponding conditions, judging that the target application meets the awakening conditions of the target application. And awakening the target application after judging that the awakening condition is met. Waking up an application means unfreezing the corresponding application so that the application can run.
Step 306, generating the prompt message of the unread message and displaying the prompt message.
The electronic device can generate prompt information for prompting that the unread information is generated according to the detected unread information and display the prompt information. The prompt message may include part or all of the unread message, or may further include a message informing the user that the target application generates the corresponding unread message, so that the user may know part or all of the corresponding unread message according to the prompt message, or may know that the target application generates the corresponding unread message. Optionally, the display mode of the prompt message may include multiple modes, for example, the prompt message may be displayed in a pop-up window form, or a notification of the prompt message may be generated in a status bar of the electronic device, so that the user may view the corresponding prompt message.
And 308, when a display instruction of the unread information triggered by acting on the prompt message is detected, displaying the unread information through the awakened target application.
The electronic equipment can detect the operation of the user on the unread information and respond to the operation correspondingly. The operation may be an operation of ignoring the unread information, or a lookup operation of the unread information, and the like. When the reference operation is identified, a display instruction of the unread information is triggered. For example, the prompt message may further include a virtual button for "ignore" and "view details", and when a click operation on the "ignore" button is detected, the corresponding unread message is ignored, and the corresponding target application is not started. When the clicking operation of the 'view details' button is detected, a corresponding display instruction is triggered, the awakened target application is started, and the unread information is displayed through the awakened target application for the user to view.
When the unread information is displayed through the target application, the target application is switched to foreground operation, and at the moment, the target application is changed from background application to foreground application.
And step 310, when the target application does not meet the awakening condition, keeping the target application in a frozen state.
If the target application does not meet the awakening condition, the target application does not need to be awakened so as to be in the frozen state continuously, and the resource limitation of the target application is continuously kept, so that the processing efficiency of foreground application is improved, and the available resources of the electronic equipment are improved.
According to the application processing method, the awakening condition is set, when the target application generates the unread information, whether the target application meets the corresponding awakening condition can be detected, when the target application meets the awakening condition, the target application is awakened, the user is informed of the generation of the prompt message of the unread information, when the display instruction of the unread information triggered by the prompt message is detected, the operation is responded, the target application is switched to be operated in the foreground, the unread information is displayed through the awakened target application for the user to look up, and when the target application does not meet the corresponding awakening condition, the target application is kept in the frozen state, the resource limitation of the target application is maintained, and the available resources of the electronic equipment are improved. The awakening condition is set for the target application, so that the target application can be prevented from being awakened each time when unread messages exist, the target application in a frozen state needs to be awakened repeatedly when the unread messages are frequently generated, and the frequent awakening application can reduce available resources of the electronic equipment instead because the terminal awakening application also needs to occupy certain resources.
In one embodiment, the application processing method further includes: acquiring the importance level of the unread message; and when the importance level reaches a preset level, judging that the target application meets the awakening condition.
The electronic equipment can determine the importance level of the unread information according to the content of the unread information or the type of the unread information after acquiring the unread information, and compare whether the importance level reaches a preset level corresponding to the target application, if so, the awakening condition is judged to be met, otherwise, whether the target application or other information of the unread information meets the requirement can be further detected, or the target application is directly judged not to meet the awakening condition. By setting the important level of the unread information, the target application is awakened when the preset level is met, so that the target application can be prevented from being awakened frequently, and the available resources of the terminal are reduced.
In one embodiment, the importance level division manner and the corresponding preset level of the information of different applications may not necessarily be the same. For example, the preset level set for a certain application a may be two levels, and the preset level set for a certain application B may be three levels. The important levels and the preset levels corresponding to different information are set for different applications, so that the flexibility of awakening different applications can be improved.
In one embodiment, the application processing method further includes: acquiring the number of message pieces of all unread messages of the target application in the frozen state; and when the number of the messages reaches the preset number, judging that the target application meets the awakening condition.
Alternatively, whether the preset condition is satisfied may also be determined by the number of pieces of unread information generated by the target application. The electronic equipment can update the information number of all current unread information accumulated by the target information when the unread information of the target application is acquired, detect whether the information number reaches a preset number, and judge that the awakening condition is met if the information number reaches the preset number. In one embodiment, the corresponding preset numbers set for different applications may not be the same, for example, the preset number set for a certain application C may be 3, and the preset number set for a certain application D may be 5.
In one embodiment, the application processing method further includes: acquiring current time-space information of the electronic equipment; and when the current time-space information belongs to the preset time-space information, judging that the target application meets the awakening condition.
The spatio-temporal information may include temporal information and/or spatial information, among others. The current time information includes the current time on the electronic device and/or the current location information of the electronic device. The electronic equipment can set corresponding different preset time-space information aiming at different applications. By setting the time-space information, when the current time-space information is in the preset time-space information, the target application is judged to meet the awakening condition, and the target application can be prevented from being awakened frequently.
Alternatively, the temporal-spatial information of the corresponding application may be set according to the application type to which the application itself belongs and the operation habit data of the user recorded by the electronic device. For example, when the target application is a take-away application, the preset temporal-spatial information may be one or more preset time periods, which may be specific to a time period corresponding to a meal taken by a user, such as 11:00 to 13, or can be 17 00 to 19. And when the current moment is within the preset time period, the judged current space-time information meets preset space-time information corresponding to the target application. For another example, when the target application is a game application, the corresponding preset time-space information including the corresponding preset time period and the corresponding preset area may be set according to the application type of the target application and the operation habit of the user. For example, the preset time period may be a non-working time period, and the preset area may be a non-office area, so that when the current time of the electronic device is within the non-working time period and the current position belongs to the non-office area of the user, it is determined that the current spatiotemporal information belongs to the corresponding preset spatiotemporal information, and it is determined that the target application satisfies the wake-up condition. Different preset time-space information is set for different applications, and flexibility of target application awakening is further improved.
In one embodiment, after waking up the target application, the method further includes: acquiring data recovered when the target application is frozen; loading the recycled data into a memory page allocated for the target application; displaying the unread information through the awakened target application, wherein the steps comprise: and displaying the unread information through the awakened target application loaded with the recycled data.
The application needs to occupy memory space to store data in the running process when running. The memory space occupied by different applications in different operating states is not necessarily the same. The memory page is a unit of memory management performed by the operating system, and the unit memory occupied by the memory pages set by different electronic devices is not necessarily the same in size. The data stored in the memory page is data used or generated by the corresponding application in the running process, and the data is temporarily cached in the memory. For example, the memory space in the electronic device is divided into 100000 memory pages, the memory pages occupied by the application to be processed are from memory page 100 to memory page 200, and the memory pages 130 to memory page 200 are recoverable memory pages.
In the process of freezing the target application, the electronic device may migrate data stored in part or all of the memory pages to a storage space for storing recycled data. The storage space can be a storage space in any one or more storage media of a block cache (block cache), a page cache (page cache), a virtual memory, a flash memory or an external storage medium. For the stored recovered data, the electronic device may record a target application to which the recovered data belongs, for example, may establish a correspondence between the recovered data and an application identifier of the target application, and after waking up the target application, may obtain corresponding recovered data according to the correspondence, load the recovered data into a memory page allocated to the target application, and display unread information through the woken target application to which the recovered data is loaded.
By pre-storing the data recovered by the target application, after the target application is awakened, the recovered data can be obtained and loaded into the memory page allocated to the target application, and the recovered data is the data required by the target application during the operation, so that the data required by the target application during the operation does not need to be regenerated by the target application, and the operation efficiency of the target application is improved.
In one embodiment, after waking up the target application, the method further includes: starting timing from the moment when the target application is awakened; when the timing duration reaches a duration threshold value and a display instruction is not triggered, controlling the awakened target application to enter a resource limitation state; and when the application in the resource limiting state runs in the background, the resource occupancy rate of the application to the electronic equipment is smaller than the first occupancy rate threshold value.
When the target application is awakened, the electronic device starts a timer and then starts timing by the timer. If a plurality of target applications are awakened at the same time, a corresponding timer may be defined for each target application, and each target application may count time by the corresponding timer.
In one embodiment, a corresponding relationship between the application identifier of the target application and the timing identifier of the timer may be established, so that after the target application is woken up, the timer may be searched and started to start timing through the timing identifier corresponding to the application identifier. Taking an Android system as an example, the system may pre-define a timer, and when it is detected that the target application is woken up, the application identifier searches for the corresponding timer, clears the timer by a timer.
The timing length indicates a length from the time when the target application is woken up to the current time. A time length threshold may be predefined, and when the timing time length exceeds the time length threshold and does not trigger the display instruction, the awakened target application is controlled to enter the resource limitation state. The duration threshold is generally set to a smaller threshold, so as to prevent the target application from being in a running state all the time and occupying the resources of the device. It is understood that different target applications may use the same duration threshold, and may also use different duration thresholds, which are not limited herein.
Specifically, the application type of the application program corresponding to the target application may be first obtained, and then the corresponding duration threshold may be obtained according to the application type. For example, the application program may be classified into an instant messaging application type, a social application type, a tool application type, and the like, and since the real-time requirement of the instant messaging application type is relatively high, a relatively large value may be set for a time length threshold corresponding to the application of the instant messaging application program. If the requirements on the real-time performance of the social class application program and the tool application program are low, a small value can be set for the time length threshold corresponding to the application of the social class application program and the tool application program. Therefore, different time length thresholds can be set for different applications, and for some application programs with lower real-time requirements, the awakened target application can quickly enter a frozen state so as to reduce the occupation of resources.
The resource restriction state refers to a state in which a resource of the electronic device used at runtime is restricted. The resource refers to software or hardware resources that the electronic device must use when Processing an application event, such as a Central Processing Unit (CPU), a Memory (Memory), hardware, a network resource, and an Input-Output (IO) of the electronic device. The resource occupancy rate refers to a ratio of occupied resources of the electronic device, and generally refers to a ratio of occupied resources to total resources, and can be expressed in a percentage form. For example, if the total memory of the device has 128GB and the already occupied memory has 56GB, the resource occupancy of the device can be expressed as the memory occupancy, and the obtained memory occupancy is 43.75%. It can be understood that, when the application is in the resource restriction state, the resource occupancy rate in the running process cannot exceed the first occupancy rate threshold, so that the use of the application on the resources of the electronic device can be controlled, and the resources of the electronic device are saved. For example, the CPU occupancy of the restricted application at runtime cannot exceed 10%.
In one embodiment, as shown in FIG. 4, a schematic diagram of an application process flow in one embodiment is shown. And when the application is awakened, timing is started, and when the timing duration reaches a duration threshold and does not trigger a display instruction of unread information, the awakened application is controlled to enter a resource limitation state. And limiting the occupation of the resources by the target application. The shaded portion in fig. 4 represents the resource occupied by the target application, where in the frozen state, the target application does not occupy the resource, and in the wake state but not in the resource restricted state, the occupied resource is greater than the resource occupied in the resource restricted state. The overtime indicates that the timing duration reaches the duration threshold value and does not trigger the display instruction of the unread information. It is understood that fig. 4 is only an illustrative case, and the target application does not have to occupy the same resource, such as CPU, memory, IO, and network.
According to the application processing method, when the fact that the duration of the target application in the frozen state after being awakened reaches the duration threshold value and the display instruction is not triggered is detected, the awakened target application is controlled to enter the resource limiting state, long-time occupation of resources by the application is avoided, and resource occupancy rate is further reduced.
In one embodiment, controlling the woken target application to enter a resource restricted state includes: acquiring the total resource occupancy rate of the electronic equipment; and if the total resource occupancy rate exceeds a second occupancy rate threshold value, controlling the awakened target application to enter a resource limiting state.
The total resource occupancy rate refers to the total proportion of the total occupancy rate of all applications in the electronic device to the resources. The resource occupancy rates of all the applications can be counted in real time in the running process of the electronic equipment, and then the resource occupancy rates of all the applications in the electronic equipment are added to obtain the total resource occupancy rate. The second occupancy threshold is a preset critical value used to measure whether to make the target application enter the resource restriction state. The second occupancy threshold may be any suitable predetermined empirical value. When the total resource occupancy rate of the electronic device exceeds the second occupancy rate threshold, it is considered that the remaining resources of the electronic device are relatively small, and the normal operation of foreground applications or other applications on the electronic device is affected.
Under the condition that the resources of the electronic equipment are relatively tense, in order to prevent the target application from occupying too many resources and influencing the operation of other applications, the awakened target application can be controlled to enter a resource limitation state. The application in the resource restricted state has limited resources available so that the operation of other applications is not affected. For example, in a mobile phone system, resource occupancy rates of a CPU, a memory, an IO, and the like of a target application may be controlled by a cgroups (control group), that is, the target application is controlled to enter a resource restriction state.
In one embodiment, controlling the woken target application to enter a resource restricted state includes: acquiring a priority corresponding to a target application, and acquiring a corresponding resource limitation level according to the priority; and controlling the awakened target application to enter a resource limitation state corresponding to the resource limitation level.
The priority level indicates the priority level of the resource occupation of the application, and is used for reflecting the importance degree of the corresponding application. The priority may include multiple intermediate levels, the priority of different applications is not necessarily the same, and the priority of each application may be set in advance. For example, the system-level application may be set to a higher priority and the third-party application may be set to a lower priority. Or the priority of the application program can be set according to the type of the application, the instant messaging application is set to be higher in priority, and the tool application is set to be lower in priority. The priority of the application may also be set according to other criteria, and is not particularly limited herein. The resource restriction level is a degree of restricting a resource used by an application, and the higher the resource restriction level is, the greater the degree of restricting the resource is. The electronic device may establish correspondence between different priorities and different resource restriction levels, wherein the higher the priority, the lower the corresponding resource restriction level.
Acquiring a priority corresponding to the target application, and acquiring a corresponding resource limit level according to the priority; and controlling the awakened target application to enter a resource limitation state corresponding to the resource limitation level. For example, the corresponding system-level application may be set to a light resource limit and the third-party application may be set to a deep resource limit.
It will be appreciated that different applications may depend on different resources, and the type of resource restriction of an application may be controlled according to the type of resource on which the application depends. For example, some local applications may use less network resources, while some applications that need to perform network communication use more network resources, and the network resources of the applications that use more network resources may be limited. Specifically, resource occupation history data of the target application is obtained, a dependent resource type corresponding to the target application is obtained according to the resource occupation history data, and the awakened target application is controlled to enter a resource limitation state according to the dependent resource type and the resource limitation level. The resource occupation history data refers to data of resources occupied by application history, and the dependent resource type is the type of the resource depended by the application operation.
By setting the priority and the resource limit level of the application, the awakened target application is controlled to enter the resource limit state corresponding to the resource limit level, so that the resource limit of the target application can be in a proper degree.
In one embodiment, as shown in fig. 5, another application processing method is provided, the method comprising:
step 502, receiving unread information of the target application in a frozen state.
Step 504, when the target application meets any one or more of the following conditions, judging that the target application meets the awakening condition, and awakening the target application, (1) whether the importance level of the unread information reaches a preset level; (2) Whether the number of the unread messages exceeds the preset number or not; (3) whether the current time is in a preset time period or not; and (4) whether the current position is in a preset area.
In one embodiment, when any one of the above four conditions is satisfied, the wake-up condition is determined to be satisfied. It is to be understood that the order of detection of the above four conditions may not be limited.
Step 506, acquiring data recovered when the target application is frozen; and loading the recycled data into the memory pages allocated for the target application.
In an embodiment, the electronic device may query the data recovered from the target application according to a correspondence between the recovered data and the application identifier of the target application, and migrate the recovered data back to the memory page allocated to the target application, so that the amount of data generated by the target application is not needed or reduced, and the operating efficiency of the target application is improved.
And step 508, generating a prompt message for the unread message, displaying the prompt message, and timing from the moment when the target application is awakened.
And step 510, when the timing duration reaches the duration threshold and does not trigger the display instruction, controlling the awakened target application to enter a resource limitation state.
The electronic equipment can detect whether a display instruction for the unread information is generated within a time threshold, and if not, the awakened target application is controlled to enter a resource limitation state so as to prevent the target application from occupying more resources for a long time without being operated by a user. The access to the control target application can be realized through the resource priority and restriction management module.
In one embodiment, after the target application is woken up, and when the timing duration reaches the duration threshold without triggering the display instruction, the total resource occupancy rate of the electronic device may be obtained, and if the total resource occupancy rate exceeds a second occupancy rate threshold, the woken-up target application is controlled to enter a resource limitation state.
The electronic device can store the monitoring log file in a preset storage address, and the total occupancy rate of the CPU can be obtained according to the monitoring log file. Meanwhile, a plurality of sub-folders are stored in the preset storage address, and each application log file is stored in each sub-folder. The application log files record the change of the specific operation condition of the application from the opening to the current moment, and the condition of the CPU resource occupied by the application can be obtained according to the application log files, namely the CPU occupancy rate of the application can be obtained.
For example, in the Android system, a monitoring log file storing the CPU total occupancy information may be read in a/proc directory. The/proc directory further comprises a plurality of subfolders, and the subfolders store process log files of CPU occupation information corresponding to processes in each application. The file name of the monitoring log file stored in the/proc directory is "stat", the subfolder in the/proc directory stores the process log file, and the file name of the process log file is "stat". The stat file under the/proc directory records the total CPU occupation information, and the stat file in the subfolder under the/proc directory records the CPU occupation information of each process. For example, the stat file under the/proc/PID directory records the CPU occupation information of the PID process.
The electronic device may also count the occupancy rates of resources such as memory, hardware, network resources, and IO in real time, for example, when the total memory amount of the mobile phone can be obtained by reading the information of the file "/proc/meminfo", the current available memory amount may be obtained by an activity manager. In the Android system, a top command can be directly operated to count the occupancy rates of resources such as a CPU, a memory, IO and the like.
In one embodiment, a priority corresponding to a target application is obtained, and a corresponding resource restriction level is obtained according to the priority; and controlling the awakened target application to enter a resource limitation state corresponding to the resource limitation level.
In one embodiment, a corresponding relationship between the total resource occupancy and the resource restriction level may also be established. And when the total resource occupancy rate exceeds a second occupancy rate threshold value, acquiring a resource limit level according to the total resource occupancy rate, and then controlling the awakened target application to enter a resource limit state corresponding to the resource limit level. For example, if the second occupancy threshold is 50%, when the total resource occupancy exceeds 50%, the total resource occupancy is divided into three occupancy levels, i.e., 50% to 60%, 60% to 80%, 80% to 100%, and then the three occupancy levels respectively correspond to a light resource restriction level, a normal resource restriction level, and a deep resource restriction level, and the corresponding resource restriction level can be obtained according to the total resource occupancy. It will be appreciated that the resource limit level may also be obtained in conjunction with the total resource occupancy and the priority of the target application.
And step 512, when a display instruction of the unread information triggered by acting on the prompt message is detected, displaying the unread information through the awakened target application loaded with the recycled data.
And step 514, when the target application does not meet the awakening condition, keeping the target application in a frozen state.
In the application processing method provided in the foregoing embodiment, by receiving the unread message of the target application in the frozen state, if the target application or the unread message satisfies the corresponding wake-up condition, the target application is woken up, and data recovered when the target application is frozen is obtained; and loading the recycled data into a memory page allocated to the target application so as to improve the operating efficiency of the target application when the unread message is displayed by the target application. And if the timing duration after awakening reaches the duration threshold value and the display instruction is not triggered, controlling the awakened target application to enter a resource limiting state so as to prevent the target application from occupying resources for too long time. When the unread information does not meet the preset awakening condition, the target application is kept in the frozen state, so that the resource utilization rate of the electronic equipment is further improved.
It can be understood that, in the present application, the application processing method is described by taking an Android Operating System as an example, but the application processing method of the present application is not limited to be implemented in the Android System, and may also be applied in Operating systems such as IOS (IPhone Operating System), saiban, windows, and MAC OS (MAC Operating System).
It should be understood that although the steps in the flowcharts of fig. 3 and 5 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 some of the steps in fig. 3 and 5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, an application processing apparatus is provided and includes an unread information receiving module 602, a wake-up module 604, a prompt module 606, an unread information display module 608, and a hold module 610. The unread information receiving module 602 is configured to receive unread information of a target application in a frozen state; a wake-up module 604, configured to wake up the target application when the target application satisfies a wake-up condition; a prompt module 606, configured to generate prompt information for the unread message and display the prompt information; an unread information display module 608, configured to display the unread information through the awakened target application when a display instruction for the unread information triggered by acting on the prompt message is detected; a keeping module 610, configured to keep the target application in a frozen state when the target application does not satisfy the wake condition.
In one embodiment, the wake-up module 604 is further configured to obtain an importance level of the unread message; and when the importance level reaches a preset level, judging that the target application meets the awakening condition.
In one embodiment, the wake-up module 604 is further configured to obtain the number of messages of all unread messages of the target application in the frozen state; and when the number of the messages reaches the preset number, judging that the target application meets the awakening condition.
In one embodiment, the wake-up module 604 is further configured to obtain current temporal-spatial information of the electronic device; and when the current time-space information belongs to the preset time-space information, judging that the target application meets the awakening condition.
In one embodiment, as shown in fig. 7, another application processing apparatus is provided, the apparatus further comprising:
the data loading module 612 is configured to obtain data recovered when the target application is frozen; and loading the recycled data into the memory pages allocated for the target application.
The unread information display module 608 is further configured to display the unread information through the awakened target application loaded with the recycled data.
In one embodiment, as shown in fig. 8, there is provided another application processing apparatus, further comprising:
an application limit module 614, configured to start timing from a time when the target application is woken up; when the timing duration reaches a duration threshold value and a display instruction is not triggered, controlling the awakened target application to enter a resource limitation state; and when the application in the resource limiting state runs in the background, the resource occupancy rate of the application to the electronic equipment is smaller than a first occupancy rate threshold value.
In one embodiment, the application limiting module 614 is further configured to obtain a total resource occupancy of the electronic device; and if the total resource occupancy rate exceeds a second occupancy rate threshold value, controlling the awakened target application to enter a resource limiting state.
In one embodiment, the application limiting module 614 is further configured to obtain a priority corresponding to the target application, and obtain a corresponding resource limiting level according to the priority; and controlling the awakened target application to enter a resource limitation state corresponding to the resource limitation level.
The application processing device can detect whether the target application meets the corresponding awakening condition or not by setting the awakening condition when the target application generates the unread information, awaken the target application when the target application meets the awakening condition and inform a user that the prompt message of the unread information is generated, responds to the operation when a display instruction of the unread information triggered by acting on the prompt message is detected, switches the target application to the foreground operation, displays the unread information through the awakened target application for the user to look up, keeps the target application in the frozen state and maintains the resource limitation of the target application if the target application does not meet the corresponding awakening condition, and therefore the available resources of the electronic equipment are improved. The awakening condition is set for the target application, so that the target application can be prevented from being awakened each time when unread messages exist, the target application in a frozen state needs to be awakened repeatedly when the unread messages are frequently generated, and the frequent awakening application can reduce available resources of the electronic equipment instead because the terminal awakening application also needs to occupy certain resources.
The division of the modules in the application processing apparatus is only for illustration, and in other embodiments, the application processing apparatus may be divided into different modules as needed to complete all or part of the functions of the application processing apparatus. For the specific limitations of the application processing device, reference may be made to the limitations of the application processing method above, and details are not repeated here. The modules in the application processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules may be embedded in a hardware form or may be independent of a processor in the electronic device, or may be stored in a memory in the electronic device in a software form, so that the processor calls and executes operations corresponding to the modules.
The implementation of each module in the application processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on an electronic device such as a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. The computer program, when executed by a processor, implements the steps of the application processing method described in the embodiments of the present application.
In one embodiment, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the application processing method provided in the foregoing embodiments are implemented.
In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored, which, when executed on a processor, implements the steps of the application processing method described in the embodiments of the present application.
In one embodiment, a computer program product containing instructions is provided which, when run on a computer, causes the computer to perform the application processing methods described in the embodiments of the present application.
The embodiment of the application also provides computer equipment. As shown in fig. 9, for convenience of illustration, only the portions related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portion 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. 9 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. 9, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, a processor 980, and a power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 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 910 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of a base station and then process the downlink information to the processor 980; 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 circuit 910 may also communicate with networks and other devices via wireless communication. 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 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 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 920 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 930 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 900. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 931 (e.g., operations performed by the user on or near the touch panel 931 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. In one embodiment, the touch panel 931 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 980, and can receive and execute commands sent by the processor 980. In addition, the touch panel 931 may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 930 may include other input devices 932 in addition to the touch panel 931. In particular, the other input devices 932 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 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display panel 941. In one embodiment, the Display panel 941 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 931 may overlay the display panel 941, and when the touch panel 931 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 980 to determine the type of touch event, and then the processor 980 provides a corresponding visual output on the display panel 941 according to the type of touch event. Although in fig. 9, the touch panel 931 and the display panel 941 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 may be integrated to implement the input and output functions of the mobile phone.
Cell phone 900 may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, where the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 941 and/or the backlight when the mobile phone is moved 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 960, speaker 961 and microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then outputs the audio data to the processor 980 for processing, and then the audio data can be transmitted to another mobile phone through the RF circuit 910, or the audio data can be output to the memory 920 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 9 shows WiFi module 970, it is to be understood that it does not belong to the essential components of cell phone 900 and may be omitted as desired.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. In one embodiment, processor 980 may include one or more processing units. In one embodiment, the processor 980 may integrate an application processor and a modem, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem handles primarily wireless communications. It is to be appreciated that the modem may not be integrated into the processor 980. For example, the processor 980 may integrate an application processor with a baseband processor, which may form a modem with other peripheral chips, etc. The handset 900 also includes a power supply 990 (e.g., a battery) for supplying power to various components, which may preferably be logically connected to the processor 980 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 900 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor included in the mobile phone implements the application processing method described above when executing the computer program stored on the memory.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable 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 DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and Rambus 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 application shall be subject to the appended claims.

Claims (9)

1. An application processing method, comprising:
receiving unread information of a target application in a frozen state;
when the target application meets the awakening condition, awakening the target application, and acquiring the data recovered when the target application is frozen according to the corresponding relation between the recovered data and the application identifier of the target application; loading the recovered data into a memory page allocated for a target application;
generating prompt information of the unread information and displaying the prompt information;
when a display instruction of the unread information triggered by acting on the prompt information is detected, displaying the unread information through a target application which is waken and loaded with the recycled data;
when the target application does not meet the wake-up condition, keeping the target application in a frozen state;
after the waking the target application, further comprising:
starting timing from the moment when the target application is awakened;
when the timing duration reaches a duration threshold value and the display instruction is not triggered, controlling the awakened target application to enter a resource limitation state;
and the resource occupancy rate of the application in the resource limiting state to the electronic equipment when the application runs in the background is smaller than a first occupancy rate threshold value.
2. The method of claim 1, further comprising:
acquiring the importance level of the unread information;
and when the importance level reaches a preset level, judging that the target application meets an awakening condition.
3. The method of claim 1, further comprising:
acquiring the number of message pieces of all unread messages of the target application in the frozen state;
and when the number of the messages reaches a preset number, judging that the target application meets an awakening condition.
4. The method of claim 1, further comprising:
acquiring current time-space information of the electronic equipment;
and when the current space-time information belongs to preset space-time information, judging that the target application meets an awakening condition.
5. The method of claim 1, wherein the controlling the woken target application to enter a resource restricted state comprises:
acquiring the total resource occupancy rate of the electronic equipment;
and if the total occupancy rate of the resources exceeds a second occupancy rate threshold value, controlling the awakened target application to enter a resource limiting state.
6. The method of claim 1, wherein the controlling the woken target application to enter a resource restricted state comprises:
acquiring a priority corresponding to the target application, and acquiring a corresponding resource limitation level according to the priority;
and controlling the awakened target application to enter a resource limitation state corresponding to the resource limitation level.
7. An application processing apparatus, characterized in that the apparatus comprises:
the unread information receiving module is used for receiving the unread information of the target application in the frozen state;
the awakening module is used for awakening the target application when the target application meets awakening conditions and acquiring data recovered when the target application is frozen according to the corresponding relation between the recovered data and the application identifier of the target application; loading the recycled data to a memory page allocated for the target application;
the prompt module is used for generating prompt information of the unread information and displaying the prompt information;
an unread information display module, configured to display the unread information through a target application that is awakened and loaded with the recovered data when a display instruction for the unread information that is triggered by acting on the prompt information is detected;
the maintaining module is used for maintaining the target application in a frozen state when the target application does not meet the awakening condition;
the application limiting module is used for starting timing from the moment when the target application is awakened; when the timing duration reaches a duration threshold value and a display instruction is not triggered, controlling the awakened target application to enter a resource limitation state; and when the application in the resource limiting state runs in the background, the resource occupancy rate of the application to the electronic equipment is smaller than a first occupancy rate threshold value.
8. An electronic 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 of claims 1 to 6.
9. 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 6.
CN201810023911.4A 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium Active CN110032397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810023911.4A CN110032397B (en) 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810023911.4A CN110032397B (en) 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110032397A CN110032397A (en) 2019-07-19
CN110032397B true CN110032397B (en) 2023-01-31

Family

ID=67234205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810023911.4A Active CN110032397B (en) 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110032397B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110687998A (en) * 2019-09-18 2020-01-14 华为技术有限公司 Application management method and device
CN113055277B (en) * 2021-03-10 2023-04-25 维沃移动通信有限公司 Message notification method, device and storage medium
CN113781740B (en) * 2021-09-07 2023-03-24 北京石油化工学院 Method and device for event-triggered response

Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914231A (en) * 2013-01-07 2014-07-09 上海斐讯数据通信技术有限公司 Method for quickly entering application program and mobile terminal
WO2014146082A1 (en) * 2013-03-15 2014-09-18 Bhl Patent Holdings Llc Materials and methods for treating neuropathies and related disorders including those involving a keystone nerve
CN104866200A (en) * 2015-06-08 2015-08-26 广东欧珀移动通信有限公司 Handheld device wake-up method, handheld device wake-up device and handheld device
CN105101371A (en) * 2015-08-10 2015-11-25 上海闻泰电子科技有限公司 Mobile phone power-saving management method
CN105204856A (en) * 2015-09-18 2015-12-30 北京金山安全软件有限公司 Information prompting method and device and electronic equipment
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105786607A (en) * 2016-03-24 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Multi-system freezing and awakening method and device
CN105843367A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Application processing method and electronic device
CN105915711A (en) * 2016-04-19 2016-08-31 青岛海信移动通信技术股份有限公司 Method and device for message prompt in mobile equipment
CN105975162A (en) * 2016-05-31 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and touch screen terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN106155777A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of background application managing device, terminal and background application management method
CN106201464A (en) * 2016-06-27 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application icon processing method freezing application and mobile terminal
CN205788149U (en) * 2015-06-07 2016-12-07 苹果公司 Electronic equipment and for showing the device of image
CN106227844A (en) * 2016-07-27 2016-12-14 深圳市金立通信设备有限公司 The method of a kind of application recommendation and terminal
CN106528284A (en) * 2016-10-19 2017-03-22 北京奇虎科技有限公司 Application configuration method and apparatus, and terminal device
CN106569814A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal
CN107104877A (en) * 2016-02-29 2017-08-29 艾威梯科技(北京)有限公司 It is a kind of to add the method and system for discussing and history mutual information being obtained after group
CN107222620A (en) * 2017-05-27 2017-09-29 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of people of unread information
CN107257417A (en) * 2017-07-21 2017-10-17 珠海市魅族科技有限公司 Message prompt method and terminal, computer installation and computer-readable recording medium
CN107277902A (en) * 2017-06-19 2017-10-20 努比亚技术有限公司 Terminal power consumption control method, mobile terminal and computer-readable recording medium
CN107370670A (en) * 2017-09-06 2017-11-21 叶进蓉 Unread message extracts methods of exhibiting and device
CN107479700A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Blank screen gestural control method, device, storage medium and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8371004B2 (en) * 2009-09-18 2013-02-12 Daniel A. Huber Universal lace/cord lock system
US20130223980A1 (en) * 2012-02-24 2013-08-29 Shape Corp. Active grill shutter vane design and vehicle system
US20140234488A1 (en) * 2013-02-15 2014-08-21 Alice Chang Beverage system, including bubble beverage, instant beverage, beverage with dissolved gas, and beverage with ingredient
US10172593B2 (en) * 2014-09-03 2019-01-08 Earlysense Ltd. Pregnancy state monitoring
CN106096450A (en) * 2016-06-21 2016-11-09 依偎科技(南昌)有限公司 A kind of application program freezing method and mobile terminal
CN106844029B (en) * 2017-01-19 2020-06-30 努比亚技术有限公司 Self-management Android process freezing and unfreezing device and method
CN107357407B (en) * 2017-06-29 2023-05-23 联想(北京)有限公司 Control method, electronic equipment and storage medium
CN107391120A (en) * 2017-06-30 2017-11-24 联想(北京)有限公司 One kind starts control method, electronic equipment and computer-readable recording medium

Patent Citations (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914231A (en) * 2013-01-07 2014-07-09 上海斐讯数据通信技术有限公司 Method for quickly entering application program and mobile terminal
WO2014146082A1 (en) * 2013-03-15 2014-09-18 Bhl Patent Holdings Llc Materials and methods for treating neuropathies and related disorders including those involving a keystone nerve
CN205788149U (en) * 2015-06-07 2016-12-07 苹果公司 Electronic equipment and for showing the device of image
CN104866200A (en) * 2015-06-08 2015-08-26 广东欧珀移动通信有限公司 Handheld device wake-up method, handheld device wake-up device and handheld device
CN105101371A (en) * 2015-08-10 2015-11-25 上海闻泰电子科技有限公司 Mobile phone power-saving management method
CN105204856A (en) * 2015-09-18 2015-12-30 北京金山安全软件有限公司 Information prompting method and device and electronic equipment
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN107104877A (en) * 2016-02-29 2017-08-29 艾威梯科技(北京)有限公司 It is a kind of to add the method and system for discussing and history mutual information being obtained after group
CN105786607A (en) * 2016-03-24 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Multi-system freezing and awakening method and device
CN105843367A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Application processing method and electronic device
CN105915711A (en) * 2016-04-19 2016-08-31 青岛海信移动通信技术股份有限公司 Method and device for message prompt in mobile equipment
CN105975162A (en) * 2016-05-31 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and touch screen terminal
CN106201464A (en) * 2016-06-27 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application icon processing method freezing application and mobile terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN106155777A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of background application managing device, terminal and background application management method
CN106227844A (en) * 2016-07-27 2016-12-14 深圳市金立通信设备有限公司 The method of a kind of application recommendation and terminal
CN106528284A (en) * 2016-10-19 2017-03-22 北京奇虎科技有限公司 Application configuration method and apparatus, and terminal device
CN106569814A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal
CN107222620A (en) * 2017-05-27 2017-09-29 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of people of unread information
CN107277902A (en) * 2017-06-19 2017-10-20 努比亚技术有限公司 Terminal power consumption control method, mobile terminal and computer-readable recording medium
CN107257417A (en) * 2017-07-21 2017-10-17 珠海市魅族科技有限公司 Message prompt method and terminal, computer installation and computer-readable recording medium
CN107479700A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Blank screen gestural control method, device, storage medium and mobile terminal
CN107370670A (en) * 2017-09-06 2017-11-21 叶进蓉 Unread message extracts methods of exhibiting and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"应用程序自我调度机制的设计与实现";彭毅;《电脑编程技巧与维护》;20141103;第9-11页 *

Also Published As

Publication number Publication date
CN110032397A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
US11099900B2 (en) Memory reclamation method and apparatus
CN109144232B (en) Process processing method and device, electronic equipment and computer readable storage medium
WO2019128546A1 (en) Application program processing method, electronic device, and computer readable storage medium
US10956316B2 (en) Method and device for processing reclaimable memory pages, and storage medium
CN107577508B (en) Application processing method and device, readable storage medium and mobile terminal
CN107368400B (en) CPU monitoring method and device, computer readable storage medium and mobile terminal
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN112703714A (en) Application program processing method and device, computer equipment and computer readable storage medium
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN110032321B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN110032397B (en) Application processing method and device, electronic equipment and computer readable storage medium
WO2019128537A1 (en) Application freezing method, and computer device and computer-readable storage medium
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109992380B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN109992360B (en) Process processing method and device, electronic equipment and computer readable storage medium
WO2019128586A1 (en) Application processing method, electronic device, and computer readable storage medium
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
WO2019128569A1 (en) Method and apparatus for freezing application, and storage medium and terminal
WO2019128553A1 (en) Application processing method, electronic device, and computer-readable storage medium
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN110032430B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN109992369B (en) Application program processing method and device, electronic equipment and computer readable storage medium
WO2019128570A1 (en) Method and apparatus for freezing application, and storage medium and terminal
CN109992362B (en) Application program processing method and device, electronic equipment and computer readable 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
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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,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