CN111381952A - Process freezing method, device, terminal and storage medium - Google Patents

Process freezing method, device, terminal and storage medium Download PDF

Info

Publication number
CN111381952A
CN111381952A CN202010171056.9A CN202010171056A CN111381952A CN 111381952 A CN111381952 A CN 111381952A CN 202010171056 A CN202010171056 A CN 202010171056A CN 111381952 A CN111381952 A CN 111381952A
Authority
CN
China
Prior art keywords
application
freezing
target
target application
parameter
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.)
Granted
Application number
CN202010171056.9A
Other languages
Chinese (zh)
Other versions
CN111381952B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010171056.9A priority Critical patent/CN111381952B/en
Publication of CN111381952A publication Critical patent/CN111381952A/en
Application granted granted Critical
Publication of CN111381952B publication Critical patent/CN111381952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a process freezing method, a process freezing device, a terminal and a storage medium, and belongs to the technical field of intelligence. The method comprises the following steps: the method comprises the steps of responding to a process freezing instruction of a target application, obtaining an application type and an application running behavior of the target application, determining a target freezing parameter used for indicating a freezing processing mode based on the application type and the application running behavior, matching the target freezing parameter with the application type and the application running behavior, responding to the target freezing parameter, and freezing the process of the target application according to the freezing processing mode. In the embodiment of the application, the freezing processing mode of the target application is determined according to the application type and the application running behavior of the target application, the possibility that the user subsequently uses the target application can be predicted, so that the freezing processing mode suitable for the target application is found, the condition that the process is frozen as soon as the process quits is avoided, the process freezing can be flexibly realized, the freezing effect is good, and the operation experience of the user is improved.

Description

Process freezing method, device, terminal and storage medium
Technical Field
The present application relates to the field of intelligent technologies, and in particular, to a process freezing method, apparatus, terminal, and storage medium.
Background
When the user uses the terminal, the functions of starting, switching, quitting and the like of the application can be realized. However, when the application exits, the application is not actually killed by the system, but the application exits the system background, and the application still occupies system resources such as a network and a Central Processing Unit (CPU) of the system. In order to avoid the loss of system resources, the process freezing method can be utilized to freeze the process of the application, so that the application is in a suspended state, and the application in the suspended state does not need to be connected with a network, so that the system resources are not occupied.
Currently, the process freezing method is generally: when the system detects that a certain application exits, if the application is in a frozen blacklist, the process of the application is frozen after a preset time, and if the application is in a frozen whitelist, the process of the application does not need to be frozen.
According to the technology, the process is frozen according to the frozen blacklist and the frozen white list, the freezing process of the process is executed only based on the application set in the list, so that the process of the application is frozen once some applications which a user wants to run quit, the process of the application needs to be unfrozen when the application is restarted, the process freezing cannot be flexibly realized, the freezing effect is poor, and the user operation experience is poor.
Disclosure of Invention
The embodiment of the application provides a process freezing method, a process freezing device, a terminal and a storage medium, and can solve the problems that process freezing cannot be flexibly realized, the freezing effect is poor, and the user operation experience is poor in the related art. The technical scheme of the process freezing method, the device, the terminal and the storage medium is as follows:
in one aspect, a process freezing method is provided, and the method includes:
responding to a process freezing instruction of a target application, and acquiring an application type and an application running behavior of the target application;
determining a target freezing parameter for indicating a freezing processing mode based on the application type and the application running behavior, wherein the target freezing parameter is matched with the application type and the application running behavior;
and responding to the target freezing parameters, and freezing the process of the target application according to the freezing mode.
In one aspect, an apparatus for freezing a process is provided, the apparatus comprising:
the acquisition module is used for responding to a process freezing instruction of a target application and acquiring the application type and the application running behavior of the target application;
a determining module, configured to determine a target freezing parameter for indicating a freezing processing manner based on the application type and the application running behavior, where the target freezing parameter is matched with the application type and the application running behavior;
and the freezing module is used for responding to the target freezing parameters and freezing the process of the target application according to the freezing mode.
In one possible implementation, the determining module is configured to:
calculating the application type, the application running behavior and the behavior weight corresponding to the application running behavior to obtain importance degree information of the target application, wherein the importance degree information is used for representing the possibility that the target application is continuously used;
and determining a target freezing parameter matched with the importance degree information based on the importance degree information.
In one possible implementation manner, the determining module is further configured to:
based on the application type, inquiring in an application configuration table to obtain behavior weights of various behaviors corresponding to the application type;
and determining the behavior weight corresponding to the application operation behavior in the behavior weights of the various behaviors.
In one possible implementation, the determining module is configured to:
normalizing the importance degree information to obtain a freezing parameter identifier of the target freezing parameter;
and acquiring the target freezing parameter from the corresponding relation between the freezing parameter identification and the freezing parameter according to the freezing parameter identification.
In one possible implementation, the freezing module is configured to:
in response to the target freeze parameter indicating that freeze processing is not to be performed, not freezing the process of the target application;
in response to the target freezing parameter indicating that freezing processing is to be executed immediately, freezing the process of the target application;
and responding to the target freezing parameter indication to delay a preset time length to execute freezing processing, and after the preset time length, freezing the process of the target application.
In one possible implementation, the apparatus further includes a triggering module configured to:
if the application state of the target application is detected to be changed, triggering a notification data sending instruction, wherein the notification data sending instruction carries application state information of the target application;
determining the application state of the target application according to application state information carried in the notification data sending instruction, wherein the application state is used for indicating the target application to generate a starting event or an exiting event;
and if the target application generates an exit event, triggering the process freezing instruction.
In one possible implementation, the apparatus further comprises a thawing module for:
and if the target application has a starting event, detecting whether the process of the target application is in a frozen state, and if the process of the target application is in the frozen state, unfreezing the process of the target application.
In one possible implementation, the apparatus further includes an execution module to:
and judging whether the target application is a third-party application program, and if the target application is the third-party application program, executing a step of triggering the process freezing instruction, wherein the third-party application program is a non-system self-contained program.
In one aspect, a terminal is provided, where the terminal includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operations performed by the above process freezing method.
In one aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the above-mentioned process freezing method.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps of determining a freezing processing mode of the target application according to the application type and the application running behavior of the target application, considering the type of the target application used by a user at the current moment and the function realized by the target application at the current moment, predicting the possibility of the user for subsequently using the target application, finding the freezing processing mode suitable for the target application, avoiding the condition that the process is frozen as soon as the process exits, flexibly realizing process freezing, having a good freezing effect and improving the operation experience of the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment of a process freezing method provided by an embodiment of the present application;
fig. 2 is a system architecture diagram of a process freezing method according to an embodiment of the present application;
FIG. 3 is a flow chart of a process freezing method according to an embodiment of the present application;
FIG. 4 is a flow chart of a process freezing method according to an embodiment of the present application;
FIG. 5 is a flow chart of a system for process freezing according to an embodiment of the present application;
FIG. 6 is a power consumption diagram of a process freezing according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a process freezing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a process freezing method according to an embodiment of the present application. Referring to fig. 1, the implementation environment includes: the terminal 101, the terminal 101 may be a mobile phone, a tablet computer, a desktop computer, a notebook computer, etc. The terminal 101 may run a variety of applications such as a music application, a chat application, a video application, a navigation application, and the like.
In the embodiment of the application, the target application is used to refer to the application program with the application state changed at the current time. The process freezing process can be executed by the terminal 101, when the user operates the terminal 101 to quit the target application, the process freezing instruction can be triggered, after the terminal 101 receives the process freezing instruction, the process freezing method provided by the embodiment of the application can be adopted to obtain the freezing processing mode of the target application, and then the process of the target application is frozen according to the freezing processing mode.
The terminal 101 may be equipped with an operating system having a plurality of functional units, and the process freezing method may be performed by the plurality of functional units. Fig. 2 is a schematic diagram of a system architecture of a process freezing method provided in an embodiment of the present application, and as shown in fig. 2, the system architecture may include a system framework unit, a freezing management control unit, a freezing policy configuration unit, a freezing policy management unit, an application identification unit, an application behavior identification unit, and a freezing bottom layer implementation unit. The functional units are explained below:
the system framework unit is used for detecting the application state and the application running behavior of the application. The System Framework unit refers to an Android operating System Framework (Android System Framework), and may include an AMS (activity Manager Service), a WMS (Windows Manager Service), each Service subunit such as a network management subunit, a sensor management subunit, a GPS (Global positioning System) management subunit, and the like.
And the freezing management central control unit is used for receiving a notice (notify) sent by the system framework unit and managing the application to be frozen in the system. The freezing management control unit is a service management unit developed based on an android system and belongs to an independent process in the system.
The freezing policy configuration unit is configured to manage configuration (configuration) data of the application, where the configuration data may include a freezing blacklist, a freezing white list, a behavior weight corresponding to each application type, a freezing processing mode, and the like. The freezing policy configuration unit may embed a file system in the terminal 101 at a factory configuration stage or a terminal firmware upgrade stage according to a product requirement, specifically, the freezing policy configuration unit may receive configuration files of a user side and a cloud service side, analyze the configuration files to obtain configuration data, store the configuration data in an application configuration table of the file system, and the configuration data is used for being read and used by the freezing policy management unit.
The freezing strategy management unit is used for inquiring (query) the application classification and identification unit to obtain the application type, inquiring (query) the application behavior identification unit to obtain the application running behavior, calculating to obtain the importance degree information of the application according to the application type and the application running behavior of the application to further obtain a target freezing parameter, and returning the target freezing parameter to the freezing bottom layer implementation unit.
The application classification identification unit is used for identifying the type of the application, such as a music application, a game application, a video application, a sports application, a navigation application and the like.
The application behavior identification unit is used for identifying the current behavior of the application, such as music playing, navigation, data downloading and the like.
And the freezing bottom layer implementation unit is used for executing the freezing processing process of the application. According to the process identification of the application, the process of the application can be frozen and put in a frozen state, and the process of the application can also be unfrozen and switched to a running state.
Fig. 3 is a flowchart of a process freezing method according to an embodiment of the present application. The embodiment is described by only taking a terminal as an execution subject, and referring to fig. 3, the embodiment includes:
in step 301, the terminal responds to a process freeze instruction for the target application, and obtains an application type and an application running behavior of the target application.
In step 302, the terminal determines a target freezing parameter for indicating a freezing processing mode based on the application type and the application running behavior, and the target freezing parameter is matched with the application type and the application running behavior.
In step 303, the terminal freezes the process of the target application according to the freezing mode in response to the target freezing parameter.
According to the technical scheme provided by the embodiment of the application, the freezing processing mode of the target application is determined according to the application type and the application running behavior of the target application, the type of the application used by a user at the current moment and the function realized by the application at the current moment are considered, the possibility of the user for subsequently using the target application can be predicted, the freezing processing mode suitable for the target application is found, the condition that the process is frozen once quitting is avoided, the process freezing can be flexibly realized, the freezing effect is good, and the operation experience of the user is improved.
Fig. 4 is a flowchart of a process freezing method according to an embodiment of the present application. The embodiment is described by only taking a terminal as an execution subject, and referring to fig. 4, the embodiment includes:
in step 401, the terminal detects application states of a plurality of applications, where the application states are used to indicate that a start event or an exit event occurs for a target application.
In the embodiment of the present application, the target application is used to refer to an application program with a changed application state at the current time.
In one possible implementation, step 401 may specifically include the following steps:
step 401A, if the terminal detects that the application state of the target application in the multiple applications changes, a notification data sending instruction is triggered, where the notification data sending instruction may carry application state information of the target application. And after receiving the trigger notification data sending instruction, the terminal executes the step of sending the notification data indicated by the trigger notification data sending instruction, and then performs subsequent operation of determining the application state according to the notification data.
Step 401B, the terminal determines the application state of the target application according to the application state information carried in the notification data sending instruction.
Optionally, the terminal may add the embedded point code for detecting the application state to the code for triggering detection in a manner of embedding the point code, so as to implement a function of detecting the application states of multiple applications.
It should be noted that step 401A may be implemented by a system framework unit in the system architecture, and step 401B may be implemented by a freezing management central control unit in the system architecture. Fig. 5 is a flow chart of a system for process freezing according to an embodiment of the present application, and as shown in fig. 5, after performing application exit background detection, a system framework unit triggers a notification data sending instruction, and sends notification data to a freezing management control unit. And the freezing management central control unit can determine the application state of the target application according to the application state information carried in the notification data.
In step 402, if a target application in the plurality of applications has an exit event, it is determined whether the target application is a third-party application program, and if the target application is the third-party application program, a process freeze instruction is triggered, where the third-party application program is a non-system-owned program.
In the embodiment of the application, the process freezing instruction is used for indicating a freezing processing mode of the query target application and freezing the process of the target application. The exit event may be an application interface shutdown or a switch to a background run.
In one possible implementation, the operating system of the terminal may store a list of programs that the system has, which may include names of the programs that the system has. If the target application exits, the terminal can query in a program list of the system according to the name of the target application, and judge whether a name matched with the name of the target application exists in the program list, if so, the target application is a non-third-party application program, and if not, the target application is a third-party application program. And if the target application is a third-party application program, triggering a process freezing instruction, and performing the freezing processing mode query operation indicated by the subsequent process freezing triggering instruction.
In order to ensure the normal operation of the system, when the exit event occurs to the application of the system, the process of the application does not need to be frozen, so that if the target application is a non-third-party application program, the step of triggering the process freezing instruction is not executed, and the corresponding operation of the subsequent target application is directly carried out. In the embodiment of the application, the normal operation of the system can be ensured by judging whether the target application is the third-party application program.
For example, the target application may be a music application, and when the application state of the music application is detected to be changed, the application state of the music application is determined, and if an exit event occurs to the music application, the step of triggering a process freeze instruction is performed. For another example, the target application may be an application provided by the system itself, such as a setting function, when detecting that an application state of the setting function changes, the application state of the setting function is determined, and if an exit event occurs in the setting function, the target application directly exits from the system background, and the step of triggering the process freeze instruction is not performed.
Optionally, the user may also preset a freeze blacklist, where the freeze blacklist is used to store an application that the user wants to perform a subsequent freeze process operation after exiting the application, for example, the video application may be placed in the freeze blacklist. When the terminal detects that the target application has an exit event, judging whether the target application is in a frozen blacklist, if so, executing a step of triggering a process freezing instruction, and if not, not executing a step of triggering the process freezing instruction. In another possible implementation manner, the user may also preset a frozen white list, where the frozen white list is used to store an application that the user does not want to perform a subsequent frozen process operation after exiting the application, for example, the chat-type application may be placed in the frozen white list. When the terminal detects that the target application has an exit event, judging whether the target application is in a frozen white list, if so, not executing the step of triggering the process freezing instruction, and if not, executing the step of triggering the process freezing instruction.
Optionally, if the target application is a third-party application program, the process of the target application may be added to the list of processes to be frozen, and used for subsequent query during operation of the frozen process.
In the embodiment of the present application, it is described as an example that if the target application has an exit event, it is determined whether the target application is a third-party application program. In another possible implementation manner, the terminal may not determine whether the target application is a third-party application program, and if the target application has an exit event, directly trigger the process freezing instruction, and then perform the subsequent operation. In addition, the step of determining, by the terminal, whether the target application is the third-party application program may be performed before determining the application state of the target application, that is, after the terminal receives the notification data that the application state of the target application changes, it may be determined first whether the target application is the third-party application program, and then the step of subsequently determining the application state may be performed. Or, the step of determining, by the terminal, whether the target application is the third-party application program may be after determining the application state of the target application, that is, after the terminal receives the notification data that the application state of the target application changes, the application state of the target application may be determined first, and then the subsequent determination step is performed. The order of the determination steps is not limited in the embodiments of the present application. In the embodiment of the application, whether the target application is the third-party application program or not is judged, the application needing to be frozen for operation can be quickly determined, and then the subsequent freezing process operation is carried out, so that the efficiency of the freezing process is improved.
It should be noted that step 402 can be implemented by the freezing management central control unit in the system architecture described above. If the target application has an exit event, as shown in fig. 5, the freezing management central control unit determines whether the target application is a third-party application program, and if so, triggers a process freezing instruction, and then the freezing management central control unit sends a freezing processing mode query request to the freezing policy management module.
In step 403, the terminal acquires the application type of the target application in response to the process freeze instruction for the target application.
In the embodiment of the present application, the application type refers to a type of a target application, such as a music-type application, a game-type application, a video-type application, a sports-type application, a navigation-type application, and the like. The Process freeze instruction may carry a name of the target application and a Process identifier, where the name may be a packet name of the target application, the packet name may be a segment of identifier code of the target application, and the Process identifier may be a PID (Process Identification, Process Identification number).
In a possible implementation manner, the process of the terminal obtaining the application type of the target application may include: after receiving the process freezing instruction of the target application, the terminal analyzes the process freezing instruction, and can obtain the name of the target application carried in the process freezing instruction. Based on the name of the target application carried in the process freezing instruction, the corresponding relation between the name and the application type is inquired, and the application type corresponding to the name can be obtained and used as the application type of the target application.
For example, the package name of the target application may be the media, and the correspondence between the name and the application type may be as shown in table 1.
TABLE 1
Name (R) Identification Application type
mediacenter A Music (Music)
hwcamera M Camera (Camera)
BaiduMap N Navigate (navigation)
mtxx M Camera (Camera)
According to the packet name of the target application, the corresponding relation between the name and the application type is inquired, the application type corresponding to the media can be Music, and the identifier can be A, so that the application type of the target application is determined to be Music application.
It should be noted that step 403 may be implemented by the freezing policy management unit in the system architecture described above. As shown in fig. 5, the freezing policy management unit receives the freezing processing mode query request, and queries the application classification identification unit according to the name of the target application carried in the freezing processing mode query request, so as to obtain the application type a of the target application, where the application classification identification unit may store a corresponding relationship between the name and the application type.
In step 404, the terminal responds to the process freezing instruction of the target application, and obtains the application running behavior of the target application.
In the embodiment of the present application, the application running behavior refers to a running behavior of the target application at the current time, such as playing music, downloading data, navigating, and the like. The target application may have one or more application running behaviors, and the target application may have multiple application running behaviors at the current time, for example, a music application may play music and download data at the same time.
In a possible implementation manner, the process of acquiring, by the terminal, the application running behavior of the target application may include: the process of the terminal acquiring the application running behavior of the target application may be as follows: and after the terminal acquires the name of the target application carried in the process freezing instruction, detecting according to the name to obtain the application running behavior of the target application corresponding to the name. According to the name of the target application, the application running behavior of the target application is detected, the application running behavior of the target application can be directly obtained, and the efficiency of obtaining the application running behavior of the target application is improved.
For example, the package name of the target application may be a media, and the application running behavior of the target application may be obtained by performing detection according to the package name, and may be stored in a table form, as shown in table 2.
TABLE 2
Name (R) First application run behavior (identification) Second application run behavior (identification)
mediacenter Is downloading data (B) Music being played (C)
In table 2, according to the packet name query of the target application, two application running behaviors corresponding to the name media can be found, where a first application running behavior of the target application is downloading data, a flag may be B, a second application running behavior of the target application is playing music, and a flag may be C.
It should be noted that step 404 can be implemented by the freezing policy management unit in the system architecture described above. As shown in fig. 5, the freezing policy management unit queries the application behavior identification unit according to the name of the target application carried in the process freezing instruction, and may obtain the application running behavior B + C of the target application.
In step 405, the terminal determines importance information of the target application based on the application type and the application running behavior.
In the embodiment of the present application, the importance level information is used to indicate the possibility that the target application is used continuously, and the importance level information may be represented in a numerical form.
In one possible implementation, step 405 may specifically include the following steps:
in step 405A, the application configuration table may store application types of multiple applications and behavior weights of various corresponding behaviors. After the terminal obtains the application type and the application running behavior of the target application, based on the application type, the terminal queries in an application configuration table, and the behavior weights of various behaviors corresponding to the application type can be obtained. Based on the application running behavior of the target application, the behavior weight corresponding to the application running behavior can be determined in the behavior weights of various behaviors.
Step 405B, after the terminal obtains the application type, the application running behavior and the corresponding behavior weight of the target application, the terminal may calculate the application type, the application running behavior and the behavior weight corresponding to the application running behavior to obtain the importance information of the target application.
The behavior weight is a weight set for the application running behavior based on the user type, the behavior weight can be a numerical value, and the behavior weight can reflect the sustainability of the subsequent application use of the user. For example, the application running behavior may include navigation, downloading data, playing voice, and the like, for a navigation application, the behavior weight corresponding to the navigation may be set to a larger value, and the behavior weight corresponding to the playing voice may be set to a smaller value.
For example, the application type of the target application may be a music-like application, and the identifier may be a. The target application may correspond to one or more application execution behaviors, for example, a first application execution behavior of the target application may be data being downloaded, and the identifier may be B, and a second application execution behavior of the target application may be music being played, and the identifier may be C. The behavior weight of each type of behavior corresponding to the application type a in the application configuration table may be (x, y, z), then the behavior weight corresponding to the first application running behavior B may be x, and the behavior weight corresponding to the second application running behavior C may be y.
According to the above example, when the target application corresponds to two application running behaviors, the process of determining the importance information by the terminal may include: the terminal can obtain the importance information of the target application according to the application type, the application running behavior, the behavior weight corresponding to the application running behavior and the algorithm I ═ G (A, (B x + C y)). The method comprises the steps of obtaining importance degree information of a target application, obtaining importance degree information of the target application, obtaining importance degree.
It should be noted that step 405A and step 405B may be implemented by the freezing policy management unit in the system architecture. As shown in fig. 5, the freezing policy management unit queries the application configuration table in the freezing policy configuration unit according to the application type and the application running behavior, and may obtain the behavior weight (x, y) corresponding to the application running behavior B + C of the target application. The freezing strategy management unit calculates according to the application type of the target application, the application running behavior and the behavior weight corresponding to the application running behavior, and can obtain the importance degree information of the target application.
In step 406, the terminal determines a target freeze parameter matching the importance level information based on the importance level information.
In the embodiment of the application, the target freezing parameter is a freezing parameter of the target application and is used for indicating a freezing processing mode of the target application, and the target freezing parameter is matched with the application type and the application running behavior.
In a possible implementation manner, the process of determining, by the terminal, the target freeze parameter may include: after the terminal obtains the importance degree information of the target application, normalization (normalization) processing is carried out on the importance degree information, so that a freezing parameter identifier of the target freezing parameter can be obtained, and the freezing parameter identifier corresponds to the freezing processing mode of the target application. The terminal may store a correspondence between the freezing parameter identifier and the freezing parameter, and according to the freezing parameter identifier, the target freezing parameter may be obtained from the correspondence between the freezing parameter identifier and the freezing parameter, and the target freezing parameter may carry a freezing processing mode of the target application.
For example, the freezing parameter identifier of the target freezing parameter obtained by the terminal may be N, the target freezing parameter may be-1, 0, or 1, the freezing processing mode may be unfreezing when N is-1, the freezing processing mode may be immediate freezing when N is 0, and the freezing processing mode may be freezing with a delay of a preset time duration when N > is 1.
It should be noted that step 406 may be implemented by the freezing policy management unit in the system architecture described above. As shown in fig. 5, the freezing policy management unit performs normalization processing on the importance degree information to obtain a freezing parameter identifier of the target freezing parameter, and further obtains the target freezing parameter. And the freezing strategy management unit inquires an application configuration table in the freezing strategy configuration unit, can obtain a freezing processing mode matched with the target freezing parameter, and sends the target freezing parameter to the freezing bottom layer implementation unit.
In step 407, the terminal, in response to the target freezing parameter, freezes the process of the target application according to the freezing mode.
In this embodiment of the application, the freezing processing mode may include unfreezing, immediate freezing, and delaying freezing for a preset time duration, where the preset time duration may be a fixed time preset by a user, such as 3s, 4s, and the like.
In a possible implementation manner, after receiving the target freezing parameter, the terminal may determine a freezing processing manner matched with the target freezing parameter according to the target freezing parameter. And the terminal responds to the target freezing parameter indication to not execute the freezing processing, and then does not execute the freezing processing on the process of the target application. And the terminal responds to the target freezing parameter indication to immediately execute the freezing processing, and then the freezing processing is carried out on the process of the target application. And the terminal responds to the target freezing parameter indication to delay the preset time length to execute the freezing processing, and after the preset time length, the process of the target application is frozen.
For example, if the target freezing parameter of the target application indicates that the freezing process is not to be performed, after the target application exits the system background, the freezing process is not performed on the process of the target application, so that the process of the target application continues to occupy system resources and continues to run in the system background.
For another example, if the target freezing parameter indicates that the freezing process is to be executed immediately, according to the process identifier of the target application carried in the process freezing instruction, the process corresponding to the process identifier is queried in the process list to be frozen. Based on a linux group mechanism, the process is immediately migrated (migrate) to a Frozen group (freezing control process) group, so as to realize the freezing process of the process.
For another example, if the target freezing parameter indicates that the freezing process is executed with a delay of a preset time length, according to the process identifier of the target application carried in the process freezing instruction, the process corresponding to the process identifier is inquired in the process list to be frozen. Based on a linux group mechanism, after a preset time length, the process is migrated to a Frozen group, so that the freezing processing of the process is realized.
It should be noted that step 407 can be implemented by freezing the bottom-layer implementation unit in the system architecture described above. As shown in fig. 5, after the freezing bottom layer implementation unit receives the target freezing parameter, the freezing process is performed on the process of the target application according to the freezing processing mode indicated by the target freezing parameter.
It should be noted that, in the embodiment of the present application, multiple units may cooperate to complete, and in order to reduce code coupling between the units, the units such as the freezing management control unit and the freezing policy management unit may all separately implement corresponding tasks. As shown in fig. 5, the solid lines in fig. 5 indicate that the units individually implement the corresponding tasks, and the dotted lines indicate cross-process communication between the units.
In the above steps 401 to 407, the target application is taken as an example to generate an exit event and then perform the subsequent process freezing operation. In another possible implementation manner, if the target application has a starting event, whether the process of the target application is in a frozen state or not is detected, and if the process of the target application is in the frozen state, the process of the target application is unfrozen. Specifically, the process of thawing the target application may be: when the terminal detects that the process of the target application is in a Frozen state, based on a linux group mechanism, according to the process identifier of the target application, a process corresponding to the process identifier is queried in a Frozen group, and the process is migrated (migrate) to a Thawed group (Thawed control groups, unfreezing control processes), so that the unfreezing processing of the process is realized. And if the process of the target application is in the non-frozen state, directly starting the target application.
According to the technical scheme provided by the embodiment of the application, the freezing processing mode of the target application is determined according to the application type and the application running behavior of the target application, a freezing parameter algorithm is provided, the calculation and the scoring are performed according to the application type, the application behavior and the behavior weight of the target application, the possibility of the target application for the subsequent use of a user can be predicted, the type of the application used by the user at the current moment and the function realized by the application at the current moment are considered, whether the target application needs to enter the freezing state or not and the time of entering the freezing state can be predicted, the condition that the process is frozen once the target application exits is avoided, the process freezing can be flexibly realized, the intellectualization and rationalization of the process freezing are realized, more third-party application programs can be adapted, and the operation experience of the user is improved.
Based on the technical scheme, the embodiment of the application also provides a power consumption experimental result after the application process is frozen, and based on the power consumption experimental result, the power consumption of the system can be optimized by freezing the application process. As shown in fig. 6, the power consumption per hour of fig. 6 includes three cases, namely, a freezing process, a non-standby automatic cleaning, a non-freezing process, and a standby automatic cleaning, and it can be found that the power consumption per hour is only 0.44% after the freezing process is performed on the application process, and the power consumption per hour is as high as 1.3% for the application without the freezing process, so that the power consumption is reduced by freezing the application process, and the power consumption of the system is greatly optimized. It should be noted that, the process freezing is to place the process and part of kernel threads of the application in a controllable suspended state, and the frozen process does not occupy system resources such as CPU resources, network resources, IO resources, and the like, thereby achieving the purposes of performance improvement and power consumption saving, and meanwhile, also retaining the characteristic of quick start of the terminal, and improving the user experience. In the aspect of application starting, the time from user clicking to application starting running of the frozen process is less than 10ms, the time from user clicking to application starting running is up to 300ms without using the application of the process freezing method, the starting time of the application is greatly reduced, and the process freezing method is obviously improved in the aspect of application starting performance.
Fig. 7 is a schematic structural diagram of a process freezing apparatus provided in an embodiment of the present application, and referring to fig. 7, the apparatus includes:
an obtaining module 701, configured to obtain an application type and an application running behavior of a target application in response to a process freeze instruction for the target application;
a determining module 702, configured to determine a target freezing parameter for indicating a freezing processing manner based on the application type and the application running behavior, where the target freezing parameter is matched with the application type and the application running behavior;
and the freezing module 703 is configured to, in response to the target freezing parameter, freeze the process of the target application according to a freezing processing manner.
In one possible implementation manner, the obtaining module 701 is configured to:
and inquiring the corresponding relation between the name and the application type based on the name of the target application carried in the process freezing instruction to obtain the application type of the target application.
In one possible implementation manner, the obtaining module 701 is configured to:
and detecting based on the name of the target application carried in the process freezing instruction to obtain the application running behavior of the target application.
In one possible implementation, the determining module 702 is configured to:
calculating the application type, the application running behavior and the behavior weight corresponding to the application running behavior to obtain importance degree information of the target application, wherein the importance degree information is used for representing the possibility that the target application is continuously used;
and determining a target freezing parameter matched with the importance degree information based on the importance degree information.
In one possible implementation, the determining module 702 is further configured to:
based on the application type, inquiring in an application configuration table to obtain behavior weights of various behaviors corresponding to the application type;
and determining the behavior weight corresponding to the application operation behavior in the behavior weights of various behaviors.
In one possible implementation, the determining module 702 is configured to:
normalizing the importance degree information to obtain a freezing parameter identifier of the target freezing parameter;
and acquiring a target freezing parameter from the corresponding relation between the freezing parameter identification and the freezing parameter according to the freezing parameter identification.
In one possible implementation, the freezing module 703 is configured to:
in response to the target freezing parameter indicating that freezing processing is not to be performed, not freezing the process of the target application;
in response to the target freezing parameter indicating that the freezing process is executed immediately, freezing the process of the target application;
and responding to the target freezing parameter indication to delay the preset time length to execute the freezing processing, and freezing the process of the target application after the preset time length.
In one possible implementation, the apparatus further includes a triggering module configured to:
if the application state of the target application is detected to be changed, triggering a notification data sending instruction, wherein the notification data sending instruction carries application state information of the target application;
determining the application state of the target application according to application state information carried in the notification data sending instruction, wherein the application state is used for indicating the target application to generate a starting event or an exiting event;
and if the target application generates an exit event, triggering a process freezing instruction.
In one possible implementation, the apparatus further comprises a thawing module for:
and if the target application has a starting event, detecting whether the process of the target application is in a frozen state, and if the process of the target application is in the frozen state, unfreezing the process of the target application.
In one possible implementation, the apparatus further includes an execution module to:
and judging whether the target application is a third-party application program, if so, executing a step of triggering a process freezing instruction, wherein the third-party application program is a non-system self-contained program.
It should be noted that: the process freezing apparatus provided in the above embodiment is only illustrated by the division of the above functional modules when the process is frozen, and in practical applications, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In this embodiment of the present application, the obtaining module 701 and the determining module 702 may be provided as the above-mentioned freezing policy management unit, and the freezing module 703 is provided as the above-mentioned freezing bottom layer implementation unit, and cooperates with the system framework unit, the freezing management control unit, the application classification and identification unit, and the application behavior identification unit in the system architecture to complete the process of freezing the process. In addition, the embodiment of the process freezing apparatus and the embodiment of the process freezing method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the embodiment of the method for details, and are not described herein again.
According to the technical scheme provided by the embodiment of the application, the freezing processing mode of the target application is determined according to the application type and the application running behavior of the target application, a freezing parameter algorithm is provided, calculation and scoring are carried out according to the application type, the application behavior and the behavior weight of the target application, the type of the application used by a user at the current moment is considered, and the function realized by the application at the current moment is considered, so that the possibility of the user for subsequently using the target application can be predicted, whether the target application needs to enter the freezing state or not and the time for entering the freezing state are predicted, the condition that the process is frozen once quitting is avoided, the process freezing can be flexibly realized, the intellectualization and rationalization of the process freezing are realized, more third-party application programs can be adapted, and the operation experience of the user is improved.
Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 800 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal 800 includes: a processor 801 and a memory 802.
The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one instruction for execution by processor 801 to implement the elastic scaling service method provided by method embodiments herein.
In some embodiments, the terminal 800 may further include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a touch screen display 805, a camera 806, audio circuitry 807, a positioning component 808, and a power supply 808.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 8G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to capture touch signals on or above the surface of the display 805. The touch signal may be input to the processor 801 as a control signal for processing. At this point, the display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 805 may be one, providing the front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in still other embodiments, the display 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even further, the display 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 805 can be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is used to locate the current geographic position of the terminal 800 for navigation or LBS (location based Service). The positioning component 808 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 809 is used to provide power to various components in terminal 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the touch screen 806 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 can be disposed on the side bezel of terminal 800 and/or underneath touch display 806. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the touch display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side of terminal 800. When a physical button or a vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the touch screen 806 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display 806 is increased; when the ambient light intensity is low, the display brightness of the touch display 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, the processor 801 controls the touch display 805 to switch from the bright screen state to the dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, the processor 801 controls the touch display 805 to switch from the screen-on state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of terminal 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, there is also provided a computer readable storage medium, such as a memory, comprising instructions executable by a processor in a terminal to perform the resilient scaling service method in the above embodiments. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A process freezing method, characterized in that the method comprises:
responding to a process freezing instruction of a target application, and acquiring an application type and an application running behavior of the target application;
determining a target freezing parameter for indicating a freezing processing mode based on the application type and the application running behavior, wherein the target freezing parameter is matched with the application type and the application running behavior;
and responding to the target freezing parameters, and freezing the process of the target application according to the freezing mode.
2. The method of claim 1, wherein the obtaining of the application type of the target application comprises:
and inquiring the corresponding relation between the name and the application type based on the name of the target application carried in the process freezing instruction to obtain the application type of the target application.
3. The method according to claim 1, wherein the obtaining of the application running behavior of the target application comprises:
and detecting based on the name of the target application carried in the process freezing instruction to obtain the application running behavior of the target application.
4. The method of claim 1, wherein determining a target freeze parameter for indicating a freeze processing mode based on the application type and the application execution behavior comprises:
calculating the application type, the application running behavior and the behavior weight corresponding to the application running behavior to obtain importance degree information of the target application, wherein the importance degree information is used for representing the possibility that the target application is continuously used;
and determining a target freezing parameter matched with the importance degree information based on the importance degree information.
5. The method according to claim 4, wherein before the calculating the application type, the application running behavior and the behavior weight corresponding to the application running behavior to obtain the importance information of the target application, the method further comprises:
based on the application type, inquiring in an application configuration table to obtain behavior weights of various behaviors corresponding to the application type;
and determining the behavior weight corresponding to the application operation behavior in the behavior weights of the various behaviors.
6. The method of claim 4, wherein the determining a target freeze parameter matching the importance information based on the importance information comprises:
normalizing the importance degree information to obtain a freezing parameter identifier of the target freezing parameter;
and acquiring the target freezing parameter from the corresponding relation between the freezing parameter identification and the freezing parameter according to the freezing parameter identification.
7. The method of claim 1, wherein said freezing the process of the target application in the freeze mode in response to the target freeze parameter comprises:
in response to the target freeze parameter indicating that freeze processing is not to be performed, not freezing the process of the target application;
in response to the target freezing parameter indicating that freezing processing is to be executed immediately, freezing the process of the target application;
and responding to the target freezing parameter indication to delay a preset time length to execute freezing processing, and after the preset time length, freezing the process of the target application.
8. The method of claim 1, wherein before querying the target application for the application type and the application execution behavior in response to the process freeze instruction for the target application, the method further comprises:
if the application state of the target application is detected to be changed, triggering a notification data sending instruction, wherein the notification data sending instruction carries application state information of the target application;
determining the application state of the target application according to application state information carried in the notification data sending instruction, wherein the application state is used for indicating the target application to generate a starting event or an exiting event;
and if the target application generates an exit event, triggering the process freezing instruction.
9. The method according to claim 8, wherein after determining the application state of the target application according to the state information carried in the notification data sending instruction, the method further comprises:
and if the target application has a starting event, detecting whether the process of the target application is in a frozen state, and if the process of the target application is in the frozen state, unfreezing the process of the target application.
10. The method according to claim 8, wherein before determining the application state of the target application according to the state information carried in the notification data sending instruction, the method further comprises:
and judging whether the target application is a third-party application program, and if the target application is the third-party application program, executing a step of triggering the process freezing instruction, wherein the third-party application program is a non-system self-contained program.
11. A process freezing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for responding to a process freezing instruction of a target application and acquiring the application type and the application running behavior of the target application;
a determining module, configured to determine a target freezing parameter for indicating a freezing processing manner based on the application type and the application running behavior, where the target freezing parameter is matched with the application type and the application running behavior;
and the freezing module is used for responding to the target freezing parameters and freezing the process of the target application according to the freezing mode.
12. The apparatus of claim 11, wherein the obtaining module is configured to:
and inquiring the corresponding relation between the name and the application type based on the name of the target application carried in the process freezing instruction to obtain the application type of the target application.
13. The apparatus of claim 11, wherein the obtaining module is configured to:
and detecting based on the name of the target application carried in the process freezing instruction to obtain the application running behavior of the target application.
14. A terminal, comprising a processor and a memory, wherein at least one instruction is stored in the memory, and wherein the at least one instruction is loaded and executed by the processor to perform operations performed by the process freezing method of any one of claims 1 to 10.
15. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by a process freezing method as claimed in any one of claims 1 to 10.
CN202010171056.9A 2020-03-12 2020-03-12 Process freezing method, device, terminal and storage medium Active CN111381952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010171056.9A CN111381952B (en) 2020-03-12 2020-03-12 Process freezing method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010171056.9A CN111381952B (en) 2020-03-12 2020-03-12 Process freezing method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111381952A true CN111381952A (en) 2020-07-07
CN111381952B CN111381952B (en) 2023-05-12

Family

ID=71222678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010171056.9A Active CN111381952B (en) 2020-03-12 2020-03-12 Process freezing method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111381952B (en)

Cited By (1)

* 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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130081064A1 (en) * 2011-09-27 2013-03-28 Verizon Patent And Licensing Inc. Application Event Handling Methods and Systems
US20140201551A1 (en) * 2013-01-16 2014-07-17 Lenovo (Singapore) Pte, Ltd. Method of changing over computer from power-on state to power-saving state and computer
CN105335242A (en) * 2015-11-02 2016-02-17 传线网络科技(上海)有限公司 Method and system for downloading video file at background in IOS system
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN108229167A (en) * 2017-12-29 2018-06-29 北京安云世纪科技有限公司 For the method, equipment and mobile terminal controlled multi-process application
CN109684069A (en) * 2017-10-13 2019-04-26 华为技术有限公司 The method and terminal device of resource management
CN109992376A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Using freezing method, device, terminal and computer readable storage medium
CN109992364A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Using freezing method, device, computer equipment and computer readable storage medium
CN110275760A (en) * 2019-06-27 2019-09-24 深圳市网心科技有限公司 Process based on fictitious host computer processor hangs up method and its relevant device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130081064A1 (en) * 2011-09-27 2013-03-28 Verizon Patent And Licensing Inc. Application Event Handling Methods and Systems
US20140201551A1 (en) * 2013-01-16 2014-07-17 Lenovo (Singapore) Pte, Ltd. Method of changing over computer from power-on state to power-saving state and computer
CN105335242A (en) * 2015-11-02 2016-02-17 传线网络科技(上海)有限公司 Method and system for downloading video file at background in IOS system
CN106681822A (en) * 2017-01-19 2017-05-17 努比亚技术有限公司 Signal-based progress freezing and unfreezing device and signal-based progress freezing and unfreezing method
CN109684069A (en) * 2017-10-13 2019-04-26 华为技术有限公司 The method and terminal device of resource management
CN108229167A (en) * 2017-12-29 2018-06-29 北京安云世纪科技有限公司 For the method, equipment and mobile terminal controlled multi-process application
CN109992376A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Using freezing method, device, terminal and computer readable storage medium
CN109992364A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Using freezing method, device, computer equipment and computer readable storage medium
CN110275760A (en) * 2019-06-27 2019-09-24 深圳市网心科技有限公司 Process based on fictitious host computer processor hangs up method and its relevant device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FRANCISCO J. ANDÚJAR: ""Energy efficient torus networks with on/off links"", 《JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING》 *
杨柏松: "" Android移动终端的电源管理系统设计与优化"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* 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

Also Published As

Publication number Publication date
CN111381952B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN111147878B (en) Stream pushing method and device in live broadcast and computer storage medium
CN110308956B (en) Application interface display method and device and mobile terminal
CN110278464B (en) Method and device for displaying list
CN110740340B (en) Video live broadcast method and device and storage medium
CN111569435B (en) Ranking list generation method, system, server and storage medium
CN110772793A (en) Virtual resource configuration method and device, electronic equipment and storage medium
CN110007981B (en) Method and device for starting application program, electronic equipment and medium
CN109861966B (en) Method, device, terminal and storage medium for processing state event
CN110569220A (en) Game resource file display method and device, terminal and storage medium
CN109828915B (en) Method, device, equipment and storage medium for debugging application program
CN111381952B (en) Process freezing method, device, terminal and storage medium
CN108984259B (en) Interface display method and device and terminal
CN111930438A (en) Method, device and equipment for determining page loading duration and storage medium
CN112118353A (en) Information display method, device, terminal and computer readable storage medium
CN109107163B (en) Analog key detection method and device, computer equipment and storage medium
CN112669884B (en) Audio data processing method, device, equipment and storage medium
CN111464829B (en) Method, device and equipment for switching media data and storage medium
CN111708669B (en) Analysis method, device, equipment and storage medium for system operation
CN110941458B (en) Method, device, equipment and storage medium for starting application program
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN108310767B (en) Information display method, device, equipment and computer readable storage medium
CN107948171B (en) User account management method and device
CN111708581A (en) Application starting method, device, equipment and computer storage medium
CN111523876A (en) Payment mode display method, device and system and storage medium
CN112068887A (en) Method and device for accelerating application processing

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40026137

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant