CN112433831A - Application freezing method, storage medium and electronic device - Google Patents

Application freezing method, storage medium and electronic device Download PDF

Info

Publication number
CN112433831A
CN112433831A CN202011284761.6A CN202011284761A CN112433831A CN 112433831 A CN112433831 A CN 112433831A CN 202011284761 A CN202011284761 A CN 202011284761A CN 112433831 A CN112433831 A CN 112433831A
Authority
CN
China
Prior art keywords
party application
application
queue
freezing
current
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.)
Withdrawn
Application number
CN202011284761.6A
Other languages
Chinese (zh)
Inventor
唐桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011284761.6A priority Critical patent/CN112433831A/en
Publication of CN112433831A publication Critical patent/CN112433831A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The application discloses an application freezing method, a storage medium and electronic equipment, wherein the method comprises the steps of acquiring the current behavior of a third-party application when the third-party application is switched to a background operation; and according to the current behavior and the freezing condition of the third-party application, putting the identifier of the third-party application into a freezing queue to freeze the third-party application. When the third-party application is transferred to the background operation, the third-party application can be frozen according to the current behavior and the freezing condition of the third-party application, so that the problem of poor system performance caused by the fact that the third-party application still occupies system resources when the third-party application is transferred to the background operation in the prior art is solved.

Description

Application freezing method, storage medium and electronic device
Technical Field
The present application relates to the field of computers, and in particular, to an application freezing method, a storage medium, and an electronic device.
Background
Currently, third-party applications in electronic devices have a problem of consuming system resources without throttling, and particularly, when the third-party applications are transferred to a background, the third-party applications still occupy the system resources, which may cause system performance to be deteriorated, wherein the third-party applications do not belong to applications carried by an operating system of the electronic device.
Disclosure of Invention
In order to solve the problem that the system performance is poor due to the fact that a third-party application occupies system resources, the application freezing method, the storage medium and the electronic device are provided, and the following steps are shown:
in a first aspect, an application freezing method is provided, including:
when a third-party application which is switched to run in a background exists, acquiring the current behavior of the third-party application;
and according to the current behavior and the freezing condition of the third-party application, putting the identifier of the third-party application into a freezing queue to freeze the third-party application, wherein when the current behavior of the third-party application meets the freezing condition, the identifier of the third-party application is put into the freezing queue.
Optionally, when the current behavior of the third-party application does not satisfy the freezing condition, further comprising:
putting the identifier of the third-party application into a queue to be frozen, and acquiring first putting time of the third-party application into the queue to be frozen;
and when the first putting time meets a first preset time, returning to execute the step of acquiring the current behavior of the third-party application until the current behavior of the third-party application meets the freezing condition.
Optionally, when there is a third-party application that is switched to the background running, before acquiring the current behavior of the third-party application, the method further includes:
when a third-party application which is switched to the background running exists, putting the identifier of the third-party application into the queue to be frozen;
acquiring second putting time of the third-party application in the queue to be frozen;
and when the second putting time exceeds second preset time, taking out the identifier of the third-party application from the queue to be frozen, and acquiring the current behavior of the third-party application according to the taken out identifier of the third-party application.
Optionally, when the first placing time does not exceed the first preset time, the method further includes:
and when the third-party application is switched to foreground operation, deleting the identifier of the third-party application in the queue to be frozen.
Optionally, the freezing condition comprises a combination of one or more of the following preset conditions:
the third party application is not transmitting data, and the transmitting data comprises uploading data or downloading data;
the third party application is not playing sound;
the third party application is not navigating.
Optionally, when the freeze condition includes that the application is not transmitting data, the application is not playing sound, and the application is not navigating, placing an identifier of the third-party application into a freeze queue according to a current behavior of the third-party application and the freeze condition, including:
and when the current behavior of the third-party application is not the transmission data, the playing sound and the navigation, putting the identification of the third-party application into the freezing queue.
Optionally, when the current behavior of the third-party application is not the transmission data, not the playing sound, and not the navigation, placing the identifier of the third-party application into the freeze queue, including:
monitoring the current flow change of the third-party application, and judging whether the current flow change meets a change condition, wherein when the current flow change does not meet the change condition, the current behavior of the third-party application is not the transmission data;
when the current flow change does not meet the change condition, judging whether the third-party application plays sound;
if the third-party application does not play the sound, judging whether the third-party application is navigating;
and if the third-party application is not under navigation, putting the identifier of the third-party application into the freezing queue.
Optionally, monitoring a current traffic change of the third-party application, and determining whether the current traffic change satisfies a change condition, including:
acquiring the current flow of the third-party application;
when the current flow is not the initial flow in the flow record, acquiring the latest flow from the flow record;
determining a difference between the current flow and the last flow;
and when the difference value is not larger than a preset flow gate threshold value, determining that the current flow change does not meet the change condition.
In a second aspect, a storage medium is provided, the storage medium comprising a stored program, wherein the program is operable to perform the method steps of any of the above first aspects.
In a third aspect, a controller is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface, and the memory complete communication with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any one of the first aspect by executing a program stored on a memory.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
in the technical scheme provided by the embodiment of the application, when the third-party application is transferred to the background operation, the third-party application can be frozen according to the current behavior and the freezing condition of the third-party application, so that the problem that the system performance is poor due to the fact that the third-party application still occupies system resources when transferred to the background operation is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an application freezing method provided in an embodiment of the present application;
fig. 2 is another schematic flow chart of an application freezing method provided in an embodiment of the present application;
fig. 3 is another schematic flow chart of an application freezing method according to an embodiment of the present application;
fig. 4 is another schematic flow chart of an application freezing method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an application freezing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides an application freezing method, which is applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, when a third-party application which is switched to be operated in a background exists, acquiring the current behavior of the third-party application.
In the embodiment of the application, whether application switching exists in the electronic equipment can be monitored in a timing polling mode. When the application is switched, the application running in the foreground is switched to the background, and the application running in the background returns to the foreground to run. Therefore, whether the application switched to the background running exists can be determined by monitoring whether the application is switched or not.
In the embodiment of the application, when the application runs on the foreground, the user can see the application running on the foreground through the display interface of the electronic equipment; when an application is running in the background, the user cannot see the application running in the background.
In this embodiment, the operating system of the electronic device has an application program, and the application program in the operating system includes a system application and a third-party application, so that the application switching may include switching between different system applications, switching between a system application and a third application, or switching between different third-party applications.
It will be appreciated that there may be a switch to a third party application running in the background when a switch between a system application and the third party application occurs, or a switch between different third party applications.
In this embodiment, the current behavior of the third-party application indicates a function currently executed by the third-party application, for example, the current behavior of the third-party application may be that a recording is being performed, a timing is being performed, or music is being played.
And 102, putting the identifier of the third-party application into a freezing queue according to the current behavior and the freezing condition of the third-party application so as to freeze the third-party application.
And when the current behavior of the third-party application meets the freezing condition, putting the identifier of the third-party application into a freezing queue.
When the current behavior of the third-party application does not meet the freezing condition, in order to not freeze the third-party application with the specific behavior, the identifier of the third-party application can be placed in a queue to be frozen, first placing time of the third-party application in the queue to be frozen is obtained, and when the first placing time exceeds first preset time, the step of obtaining the current behavior of the third-party application is returned until the current behavior of the third-party application meets the freezing condition.
In practical applications, the third party application with specific behavior includes but is not limited to: a third party application that is transmitting data, playing sound, or navigating.
In the embodiment of the application, the third-party application with the identifier put into the queue to be frozen can normally run in the background of the electronic equipment.
In the embodiment of the application, after the application is frozen, the operating system prohibits the application from running in the background and releases the memory occupied by the application, so that for the identifier of the third-party application placed in the frozen queue, the operating system prohibits the third-party application corresponding to the identifier of the third-party application from running in the background according to the identifier of the third-party application in the frozen queue and simultaneously releases the memory occupied by the third-party application.
In the technical scheme provided by the embodiment of the application, when the third-party application is transferred to the background operation, the third-party application can be frozen according to the current behavior and the freezing condition of the third-party application, so that the problem that the system performance is poor due to the fact that the third-party application still occupies system resources when transferred to the background operation is solved.
In the practical application, due to the misoperation of the user, the third-party application running in the foreground is switched to the background running, therefore, in order to enable the user to quickly switch the third-party application running in the background to the third-party application caused by the misoperation, the third-party application running in the foreground is switched back to the foreground running.
And when the user switches the third-party application back to the foreground operation, deleting the identifier of the third-party application in the queue to be frozen.
When the second putting time exceeds the second preset time, the operation that the user switches the third-party application to the background running is not misoperation, at the moment, the identifier of the third-party application needs to be taken out of the queue to be frozen, the current behavior of the third-party application is obtained according to the identifier of the third-party application, and therefore the third-party application is frozen according to the current behavior and the freezing condition of the third-party application.
The first preset time and the second preset time may be the same or different, and this embodiment is not specifically limited in this respect. In an alternative embodiment, the first preset time and the second preset time may both be 3 s.
Optionally, in an embodiment of the present application, the freezing condition includes a combination of one or more of the following preset conditions:
the third party application is not transmitting data, and the transmitting data comprises uploading data or downloading data;
the third party application is not playing sound;
the third party application is not navigating.
It should be understood that the preset conditions are only alternative embodiments of the present application, and the examples of the present application are not limited thereto.
For example, when the freezing condition includes one or two of the preset conditions, before the identifier of the third-party application is placed in the freezing queue according to the current behavior of the third-party application and the freezing condition, the application type of the third-party application switched to the background running may be further identified, and the freezing condition may be determined from the preset conditions according to the application type of the third-party application.
For example, when the application type of the third-party application is a navigation class application, the freeze condition determined based on the navigation class application may be that the third-party application is not navigating, that is, as long as the third-party application of the navigation class is not navigating, the identification of the third-party application of the navigation class may be placed in the freeze queue.
For example, when the freeze condition includes the above three preset conditions, the identifier of the third-party application may be directly placed in the freeze queue according to the freeze condition without determining the application type of the third-party application. Specifically, when the current behavior of the third party application is not to transmit data, not to play sound, and not to navigate, the identification of the third party application is placed in a freeze queue. That is, when the third-party application does not transmit data, play sound and navigate, the third-party application is frozen. In other words, when the third-party application has any one of the actions of transmitting data, playing sound, and navigating, the third-party application is not frozen.
Optionally, when the current behavior of the third-party application is not data transmission, not sound playing, and not navigation, the identifier of the third-party application is put into a frozen queue, as shown in fig. 2, which may include the following steps:
step 201, monitoring the current traffic change of the third-party application, and determining whether the current traffic change meets a change condition, if yes, performing step 205, otherwise, performing step 202.
The current traffic change includes an uplink traffic change and a downlink traffic change.
Wherein the uplink flow change indicates that the third-party application is uploading data; the downstream traffic change indicates that a third party application is downloading data.
And when the current flow change does not meet the change condition, the current behavior of the third-party application is not data transmission.
In the embodiment of the application, when the current behavior of the third-party application is that data is being transmitted, the third-party application is not frozen, and meanwhile, in order to realize that the third-party application is frozen in time when the data transmission of the third-party application is finished, the current behavior of the third-party application is determined to be that the data is being transmitted, the identifier of the third-party application is placed into a queue to be frozen, the first placing time of the queue to be frozen is obtained, and when the first placing time exceeds the first preset time, the current flow change of the third-party application is monitored again until the current flow change of the third-party application does not meet the change condition, namely, the data is not transmitted any more by the third-party application.
Optionally, as shown in fig. 3, step 201 may include the following steps:
and 301, acquiring the current flow of the third-party application.
And 302, when the current flow is not the initial flow in the flow record, acquiring the latest flow from the flow record.
The primary flow rate refers to the first existing flow rate record in the flow rate record.
In the process of monitoring whether the current flow change of the third-party application meets the change condition, when the current flow change meets the change condition, the current flow change of the third-party application needs to be circularly monitored by means of the queue to be frozen until the current flow change of the third party does not meet the change condition, so that the primary flow refers to the flow of the third-party application which is monitored for the first time in the process of circularly monitoring the current flow change of the third-party application.
It can be understood that, when the current traffic is the initial traffic, the identifier of the third-party application is put into the queue to be frozen, so that when the first putting time of the third-party application in the queue to be frozen exceeds the first preset time, the monitoring of the third-party application is continued.
Step 303, determining the difference between the current flow rate and the latest flow rate.
And step 304, when the difference value is not greater than the preset flow gate threshold value, determining that the current flow change does not meet the change condition.
The flow gate valve value is an artificially preset value, an empirical value or is obtained according to the empirical value.
Step 202, determining whether the third party application is playing sound, if yes, performing step 205, otherwise, performing step 203.
In practical applications, when the third-party application plays the sound, the third-party application can be implemented by using the operating system of the electronic device, so that for the operating system of the electronic device, whether the third-party application plays the sound can be judged by judging whether the current process for controlling the electronic device to play the sound exists.
Step 203, determining whether the third party application is navigating, if yes, executing step 205, otherwise, executing step 204.
When the third-party application is navigating, the progress service based on the position movement exists in the progress of the third-party application, so that whether the third-party application is navigating or not can be judged according to the progress of the third-party application.
And step 204, putting the identifier of the third-party application into a freezing queue.
Step 205, the third party application is placed in a queue to be frozen.
In the embodiment of the application, in order to not freeze the third-party application which is transmitting data, playing sound or navigating, the identifier of the third-party application with the three behaviors is put into the queue to be frozen. In other words, only third party applications identified in the queue to be frozen cannot be frozen in the background of the electronic device.
Optionally, when the third-party application is switched to the foreground operation, in order to not affect the judgment of whether the third-party application has the behavior of transmitting data when the third-party application is switched to the background operation next time, in the embodiment of the present application, in addition to deleting the identifier of the third-party application in the queue to be frozen, a flow record of the third-party application is also deleted.
Optionally, an embodiment of the present application further provides an application freezing method, as shown in fig. 4, including:
step 401, monitoring whether application switching exists, if so, executing step 402;
step 402, acquiring a first application switched to a background and a second application switched back to a foreground, executing step 403 for the first application, and executing step 413 for the second application;
step 403, judging whether the first application switched to the background is a third-party application, if so, executing step 404, otherwise, ending the process;
step 404, putting the identifier of the first application into a queue to be frozen;
step 405, judging whether the time for putting the identifier of the first application into the queue to be frozen exceeds 3s, if so, executing step 406, otherwise, not processing;
step 406, taking out the identifier of the first application from the queue to be frozen, and acquiring the current flow of the third-party application;
step 407, judging whether the current flow is obtained for the first time, if so, executing step 404, otherwise, executing step 408;
step 408, obtaining the latest flow and determining the difference value between the current flow and the latest flow;
step 409, judging whether the difference value is larger than a preset flow gate threshold value, if so, executing step 404, otherwise, executing step 410;
step 410, judging whether the first application plays sound, if so, executing step 404, otherwise, executing step 411;
step 411, determining whether the first application is navigating, if yes, executing step 404, otherwise executing step 412;
step 412, freezing the first application;
step 413, judging whether the queue to be frozen has the identifier of the second application, if so, executing step 414, otherwise, not processing;
step 414, deleting the identifier of the second application in the queue to be frozen;
step 415, judging whether a flow record corresponding to the second application exists, if so, executing step 416, otherwise, not processing;
and step 416, deleting the flow record corresponding to the second application.
The embodiment of the present application further provides an electronic device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
when a third-party application which is switched to run in a background exists, acquiring the current behavior of the third-party application;
and according to the current behavior and the freezing condition of the third-party application, putting the identifier of the third-party application into a freezing queue to freeze the third-party application.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present application, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform the application freezing method described in any of the above embodiments.
In a further embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the application freezing method of any of the above embodiments.
An embodiment of the present application further provides an application freezing apparatus, as shown in fig. 6, including:
an obtaining unit 601, configured to obtain a current behavior of a third-party application when the third-party application is switched to a background operation;
a freezing unit 602, configured to place an identifier of the third-party application into a freezing queue according to the current behavior of the third-party application and a freezing condition, so as to freeze the third-party application, where the identifier of the third-party application is placed into the freezing queue when the current behavior of the third-party application meets the freezing condition.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An application freezing method, comprising:
when a third-party application which is switched to run in a background exists, acquiring the current behavior of the third-party application;
and according to the current behavior and the freezing condition of the third-party application, putting the identifier of the third-party application into a freezing queue to freeze the third-party application, wherein when the current behavior of the third-party application meets the freezing condition, the identifier of the third-party application is put into the freezing queue.
2. The method of claim 1, wherein when the current behavior of the third-party application does not satisfy the freeze condition, further comprising:
putting the identifier of the third-party application into a queue to be frozen, and acquiring first putting time of the third-party application into the queue to be frozen;
and when the first putting time meets a first preset time, returning to execute the step of acquiring the current behavior of the third-party application until the current behavior of the third-party application meets the freezing condition.
3. The method of claim 2, wherein when there is a third-party application that is switched to a background running, before obtaining the current behavior of the third-party application, further comprising:
when a third-party application which is switched to the background running exists, putting the identifier of the third-party application into the queue to be frozen;
acquiring second putting time of the third-party application in the queue to be frozen;
and when the second putting time exceeds second preset time, taking out the identifier of the third-party application from the queue to be frozen, and acquiring the current behavior of the third-party application according to the taken out identifier of the third-party application.
4. The method of claim 3, further comprising, when the first put time does not exceed the first preset time:
and when the third-party application is switched to foreground operation, deleting the identifier of the third-party application in the queue to be frozen.
5. The method of claim 1, wherein the freezing condition comprises a combination of one or more of the following preset conditions:
the third party application is not transmitting data, and the transmitting data comprises uploading data or downloading data;
the third party application is not playing sound;
the third party application is not navigating.
6. The method of claim 5, wherein placing the identity of the third-party application in a freeze queue according to the current behavior of the third-party application and the freeze condition when the freeze condition includes that the application is not transmitting data, that the application is not playing sound, and that the application is not navigating comprises:
and when the current behavior of the third-party application is not the transmission data, the playing sound and the navigation, putting the identification of the third-party application into the freezing queue.
7. The method of claim 6, wherein placing the identification of the third-party application in the freeze queue when the current behavior of the third-party application is not the transfer data, not the play sound, and not the navigation comprises:
monitoring the current flow change of the third-party application, and judging whether the current flow change meets a change condition, wherein when the current flow change does not meet the change condition, the current behavior of the third-party application is not the transmission data;
when the current flow change does not meet the change condition, judging whether the third-party application plays sound;
if the third-party application does not play the sound, judging whether the third-party application is navigating;
and if the third-party application is not under navigation, putting the identifier of the third-party application into the freezing queue.
8. The method of claim 7, wherein monitoring the current traffic change of the third-party application and determining whether the current traffic change satisfies a change condition comprises:
acquiring the current flow of the third-party application;
when the current flow is not the initial flow in the flow record, acquiring the latest flow from the flow record;
determining a difference between the current flow and the last flow;
and when the difference value is not larger than a preset flow gate threshold value, determining that the current flow change does not meet the change condition.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of any of the preceding claims 1 to 8.
10. A controller comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus; wherein:
a memory for storing a computer program;
a processor for performing the method steps of any one of claims 1-8 by executing a program stored on a memory.
CN202011284761.6A 2020-11-17 2020-11-17 Application freezing method, storage medium and electronic device Withdrawn CN112433831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011284761.6A CN112433831A (en) 2020-11-17 2020-11-17 Application freezing method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011284761.6A CN112433831A (en) 2020-11-17 2020-11-17 Application freezing method, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112433831A true CN112433831A (en) 2021-03-02

Family

ID=74700670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011284761.6A Withdrawn CN112433831A (en) 2020-11-17 2020-11-17 Application freezing method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112433831A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525404A (en) * 2022-02-22 2022-12-27 荣耀终端有限公司 Method, device and storage medium for releasing memory
WO2023124801A1 (en) * 2021-12-31 2023-07-06 中兴通讯股份有限公司 Freeze management method and apparatus for application, electronic device, and storage medium
WO2024027544A1 (en) * 2022-07-30 2024-02-08 华为技术有限公司 Memory management method and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150160976A1 (en) * 2013-12-06 2015-06-11 Samsung Electronics Co., Ltd. Multitasking method and electronic device therefor
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150160976A1 (en) * 2013-12-06 2015-06-11 Samsung Electronics Co., Ltd. Multitasking method and electronic device therefor
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124801A1 (en) * 2021-12-31 2023-07-06 中兴通讯股份有限公司 Freeze management method and apparatus for application, electronic device, and storage medium
CN115525404A (en) * 2022-02-22 2022-12-27 荣耀终端有限公司 Method, device and storage medium for releasing memory
CN115525404B (en) * 2022-02-22 2023-09-19 荣耀终端有限公司 Method, device and storage medium for releasing memory
WO2024027544A1 (en) * 2022-07-30 2024-02-08 华为技术有限公司 Memory management method and electronic device

Similar Documents

Publication Publication Date Title
CN112433831A (en) Application freezing method, storage medium and electronic device
US10083177B2 (en) Data caching among interconnected devices
CN107172208B (en) Server deployment method and system
WO2020094034A1 (en) Wireless network connection method for terminal
CN109150751B (en) Network control method and device
EP3522449B1 (en) Service state transition method and device
CN109996117B (en) Method and device for acquiring streaming media playing time
US9363157B2 (en) Remotely controlling devices and processing asynchronous events for testing
CN110535861B (en) Method and device for counting SYN packet number in SYN attack behavior identification
CN106294188A (en) Memory space processing method and processing device
KR20150082781A (en) Method and user terminal for controlling routing dynamically
JP6368659B2 (en) Base station congestion management system and base station congestion management method
CN109151784B (en) Network connection method and device and electronic equipment
CN105406989A (en) Message processing method, network card and system, information updating method and host
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN115514800A (en) Equipment network connection method, device, electronic equipment, server and system
KR102004503B1 (en) Notification method about game, client, server and iot apparatus for performing the method
CN112416253B (en) Storage area dynamic adjustment method and device based on distributed storage
CN112261680A (en) Method, device, equipment and storage medium for adjusting network
EP3518513A1 (en) Streaming data acquisition method, device, and system
CN106598473B (en) Message persistence method and device
JP4089506B2 (en) File sharing system, server and program
CN112306371A (en) Method, apparatus and computer program product for storage management
CN114422831B (en) Media playing method and device, electronic equipment and readable storage medium
CN108345431A (en) A kind of method and device of digital independent

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210302