WO2020156131A1 - 应用管理方法、装置及设备 - Google Patents

应用管理方法、装置及设备 Download PDF

Info

Publication number
WO2020156131A1
WO2020156131A1 PCT/CN2020/071786 CN2020071786W WO2020156131A1 WO 2020156131 A1 WO2020156131 A1 WO 2020156131A1 CN 2020071786 W CN2020071786 W CN 2020071786W WO 2020156131 A1 WO2020156131 A1 WO 2020156131A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
event
resource
thawing
correspondence
Prior art date
Application number
PCT/CN2020/071786
Other languages
English (en)
French (fr)
Inventor
胡慧锋
段小军
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20748090.6A priority Critical patent/EP3907608A4/en
Publication of WO2020156131A1 publication Critical patent/WO2020156131A1/zh
Priority to US17/391,165 priority patent/US20210357252A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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

Definitions

  • This application relates to the field of computer technology, in particular to an application management method, device and equipment.
  • the original equipment manufacturer will also introduce a thawing mechanism, which allows the operating system to unfreeze the frozen application, allowing the thawed application to perform corresponding processing.
  • a thawing mechanism which allows the operating system to unfreeze the frozen application, allowing the thawed application to perform corresponding processing.
  • the above event such as non-agent system broadcast event, system broadcast overrun event, foreground event, instant messaging (Instant Messaging, IM), which has a network packet event and a sub-process exit event
  • IM Instant Messaging
  • the operating system can be triggered to activate the thawing mechanism, which enables the operating system to perform a thawing operation on a frozen application, allowing the thawed application to handle the above event.
  • the system continues to freeze the application based on the freezing mechanism.
  • the present application provides an application management method, device, and equipment, which are used to solve the problems of resource preemption, wasted power consumption, and decreased application performance caused by repeated thawing and freezing of applications.
  • the present application provides an application management method, including: acquiring a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on part of a process in a frozen application; The corresponding relationship with the process and the process information determine a part of the process in the target application, and perform a thawing operation on the part of the process.
  • the terminal device can obtain a thawing event that includes process information.
  • the thawing event can indicate that a thawing operation is triggered on part of the process in the frozen application. Furthermore, the terminal device can obtain a thawing operation based on the application and the process.
  • the operating system used by the terminal device may include, but is not limited to, the Android native operating system, so that the terminal device can acquire events and perform operations on the events, such as freezing operations and unfreezing operations.
  • the terminal equipment involved in this application can be a wireless terminal or a wired terminal, a wireless terminal can be a device that provides voice and/or other service data connectivity to the user, a handheld device with a wireless connection function, or a wireless modem Other processing equipment.
  • the wireless terminal can communicate with one or more core networks via the RAN.
  • the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • it can be portable, pocket-sized, Hand-held, computer-built or vehicle-mounted mobile devices that exchange language and/or data with wireless access networks.
  • Wireless terminal can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), mobile station (Mobile Station), mobile station (Mobile), remote station (Remote Station), remote terminal (Remote Terminal), connection Access terminal (Access Terminal), user terminal (User Terminal), user agent (User Agent), and user equipment (User Device or User Equipment) are not limited here.
  • applications usually adopt a multi-process mechanism, that is, when an application is started, it often includes multiple active processes.
  • communication applications such as WeChat include about 5 active processes
  • playback software applications such as iQiyi include about 9 active processes.
  • entertainment gossip applications such as Ri Toutiao include about 7 active processes.
  • the method before the determining part of the process in the target application according to the correspondence between the application and the process and the process information, and performing a thawing operation on the part of the process, the method further includes :
  • a target application corresponding to the process information is determined.
  • the unfreezing event further includes an application identifier, and the application identifier identifies an application corresponding to the process information;
  • the method further includes:
  • the determining part of the process in the target application according to the correspondence between the application and the process and the process information, and performing a defrosting operation on the part of the process includes:
  • a partial process in the target application is determined according to the correspondence between the application and the process and the process information, and the thawing operation is performed on the partial process.
  • the partial process thawing conditions include at least N of the following conditions, and N is a natural number:
  • the unfreeze event is not a click event
  • the type of the unfreezing event does not belong to the user's strong perception type
  • the application corresponding to the unfreezing event is not included in the prediction application set, and the prediction application set includes at least one application to be used by the user.
  • the terminal device can determine part of the process in the target application when the thawing event meets the conditions for thawing part of the process, and perform the thawing operation on part of the process in the target application; when the thawing event does not meet the part of the process thawing Conditions, determine the target application, and unfreeze the target application, determine the object to perform the unfreeze operation in a timely and accurate manner, and avoid the phenomenon that the application cannot run normally due to misoperation.
  • the method further includes:
  • the resource corresponding to at least one process in the partial process is obtained, and the resource is allocated to the at least one process.
  • the terminal device after the terminal device unfreezes part of the process in the target application, it can acquire at least one process in the part of the process according to the correspondence between the process and the resource and the process information of the part of the process Corresponding resources, and allocate resources to at least one process, so that at least one process can accurately obtain the corresponding resource, without allocating other resources to at least one process, realizes the intelligent allocation of resources, saves system resources to the greatest extent, and avoids
  • the phenomenon of resource waste has improved the efficiency of resource allocation and utilization.
  • the method further includes:
  • the target is obtained according to the correspondence between the application and the resource and the application identifier Apply the corresponding resource, and allocate the resource to the target application.
  • the terminal device unfreezes part of the process in the target application, because the resource corresponding to the part of the process cannot be obtained according to the correspondence between the process and the resource and the process information of the part of the process, Furthermore, according to the correspondence between the application and the resource and the application identifier, the resource corresponding to the target application can be obtained, and the resource can be allocated to the target application, so that the target application can obtain the corresponding resource in time and accurately to run normally, which improves resource allocation effectiveness.
  • the click event includes any one of a desktop icon click event, a notification bar click event, a recent task list click event, and a lock screen click event.
  • the user's strong perception type includes: an alarm clock application trigger type or a music application timing play type.
  • the unfreezing event includes any one of a click event, a system broadcast event, and an application timing reminder event.
  • the process information is a process ID.
  • an embodiment of the present application provides a terminal device, including: a receiver and a processor, where the receiver is connected to the processor;
  • the receiver is configured to acquire a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on part of the processes in the frozen application;
  • the processor is configured to determine a part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a defrosting operation on the part of the process.
  • the processor is configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a defrosting operation on the part of the process Previously, the target application corresponding to the process information was determined according to the correspondence between the application and the process and the process information.
  • the processor is configured to, when the unfreezing event further includes an application identifier, and the application identifier is to identify an application corresponding to the process information, according to the correspondence between the application and the process The relationship and the process information determine a part of the process in the target application, and before performing a thawing operation on the part of the process, the target application corresponding to the application identifier is determined.
  • the processor is specifically configured to determine that the target application is in the target application according to the correspondence between the application and the process and the process information when it is determined that the unfreezing event meets the partial process unfreezing condition Part of the process, and unfreeze the part of the process.
  • the partial process thawing conditions include at least N of the following conditions, and N is a natural number:
  • the unfreeze event is not a click event
  • the type of the unfreezing event does not belong to the user's strong perception type
  • the application corresponding to the unfreezing event is not included in the prediction application set, and the prediction application set includes at least one application to be used by the user.
  • the processor is further configured to obtain a resource corresponding to at least one of the partial processes according to the corresponding relationship between the process and the resource and the process information of the partial process, and send it to The at least one process allocates the resource.
  • the processor is further configured to, according to the corresponding relationship between the process and the resource and the process information of the part of the process, when the resource corresponding to the part of the process is not obtained, according to the application and The corresponding relationship between the resources and the application identifier, the resource corresponding to the target application is acquired, and the resource is allocated to the target application.
  • the click event includes any one of a desktop icon click event, a notification bar click event, a recent task list click event, and a lock screen click event.
  • the user's strong perception type includes: an alarm clock application trigger type or a music application timing play type.
  • the unfreezing event includes any one of a click event, a system broadcast event, and an application timing reminder event.
  • the process information is a process ID.
  • an application management device including:
  • An obtaining module configured to obtain a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on part of the processes in the frozen application;
  • the determining module is used to determine part of the process in the target application according to the correspondence between the application and the process and the process information;
  • the thawing module is used to perform a thawing operation on the part of the process.
  • the determining module is configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a defrosting operation on the part of the process Previously, the target application corresponding to the process information was determined according to the correspondence between the application and the process and the process information.
  • the determining module is configured to: when the unfreezing event further includes an application identifier, and the application identifier is an application corresponding to the process information, perform the process between the application and the process.
  • the corresponding relationship between and the process information determines a part of the process in the target application, and before performing a thawing operation on the part of the process, the target application corresponding to the application identifier is determined.
  • the determining module is specifically configured to determine the target application according to the correspondence between the application and the process and the process information when it is determined that the unfreezing event meets the partial process unfreezing condition Part of the process, and unfreeze the part of the process.
  • the partial process thawing conditions include at least N of the following conditions, and N is a natural number:
  • the unfreeze event is not a click event
  • the type of the unfreezing event does not belong to the user's strong perception type
  • the application corresponding to the unfreezing event is not included in the prediction application set, and the prediction application set includes at least one application to be used by the user.
  • the obtaining module is further configured to obtain a resource corresponding to at least one process in the partial processes according to the correspondence between processes and resources and the process information of the partial processes;
  • the application management device further includes:
  • the first allocation module is configured to allocate the resource to the at least one process.
  • the acquisition module is also used to, according to the correspondence between the process and the resource and the process information of the part of the process, when the resource corresponding to the part of the process is not acquired, according to the application and The corresponding relationship between the resources and the application identifier, and obtaining the resource corresponding to the target application;
  • the application management device further includes:
  • the second allocation module is configured to allocate the resource to the target application.
  • the click event includes any one of a desktop icon click event, a notification bar click event, a recent task list click event, and a lock screen click event.
  • the user's strong perception type includes: an alarm clock application trigger type or a music application timing play type.
  • the unfreezing event includes any one of a click event, a system broadcast event, and an application timing reminder event.
  • the process information is a process ID.
  • this application provides a terminal device, including: a memory and a processor;
  • the memory is used to store program instructions
  • the processor is configured to call the program instructions in the memory to execute the first aspect and the application management method in any possible design of the first aspect.
  • the present application provides a readable storage medium in which an execution instruction is stored.
  • the terminal device executes any one of the first aspect and the first aspect.
  • the present application provides a program product.
  • the program product includes an execution instruction, and the execution instruction is stored in a readable storage medium.
  • At least one processor of the terminal device can read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the terminal device to implement the first aspect and the application management method in any one of the possible designs of the first aspect.
  • the present application provides a chip that is connected to a memory, or a memory is integrated on the chip, and when the software program stored in the memory is executed, the application management described in any one of the above is implemented method.
  • the present application provides an application management method, including: acquiring a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on some processes in a frozen application; The process information performs a thawing operation on the part of the process.
  • the application management method, device, and equipment provided by the present application obtain a thawing event including process information, and the thawing event can indicate that a thawing operation is triggered for part of the processes in a frozen application, and then according to the relationship between the application and the process Correspondence and process information, determine some processes in the target application, and perform unfreezing operations on some processes, which not only realizes the normal operation of the target application, but also enables the target application to perform corresponding processing without the need for other processes in the target application or the entire
  • the target application performs redundant thawing operations, which solves the problems of resource preemption, waste of power consumption and performance degradation caused by repeated thawing and freezing of the application, reducing the frequency of repeated thawing and freezing of the application, and improving the application
  • the freezing rate of the terminal device is thus reduced, and the system performance of the terminal device is optimized.
  • Figure 1 is a schematic diagram of an operating system software architecture
  • FIG. 2 is a flowchart of an embodiment of an application management method provided by this application
  • FIG. 3 is a flowchart of an embodiment of an application management method provided by this application.
  • FIG. 4 is a flowchart of an embodiment of an application management method provided by this application.
  • Figure 5 is a schematic structural diagram of a terminal device provided by this application.
  • FIG. 6 is a schematic structural diagram of an application management device provided by this application.
  • FIG. 7 is a schematic structural diagram of an application management device provided by this application.
  • FIG. 8 is a schematic structural diagram of an application management device provided by this application.
  • FIG. 9 is a schematic diagram of the hardware structure of a terminal device provided by this application.
  • FIG. 1 is a schematic diagram of an operating system software architecture.
  • the operating system of the present application may include a kernel layer, a basic system service layer, a system resident application layer, a thawing event collection container, and a control APP.
  • the kernel layer is mainly responsible for reporting network data packet thawing events, which can be reported to the thawing event collection container.
  • the system service layer is mainly responsible for reporting events such as timing reminders and process exits, and can report to the unfreeze event collection container.
  • the resident application layer of the system is mainly responsible for the reporting of events such as the startup of the application interface, which can be reported to the thawing event collection container.
  • the thawing event collection container is mainly responsible for collecting events from the kernel layer, system basic service layer, and system resident application layer, and sending events to the control APP.
  • the control APP is mainly responsible for receiving events from the unfreezing event collection container and executing processing decisions on the events.
  • the operating system may include, but is not limited to, the native Android operating system, and the operating system may be used in a terminal device, so that the terminal device can acquire events and perform operations on the events, such as freezing operations and unfreezing operations.
  • the terminal equipment involved in this application can be a wireless terminal or a wired terminal, a wireless terminal can be a device that provides voice and/or other service data connectivity to the user, a handheld device with a wireless connection function, or a wireless modem Other processing equipment.
  • the wireless terminal can communicate with one or more core networks via the RAN.
  • the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • it can be portable, pocket-sized, Hand-held, computer-built or vehicle-mounted mobile devices that exchange language and/or data with wireless access networks.
  • Wireless terminal can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), mobile station (Mobile Station), mobile station (Mobile), remote station (Remote Station), remote terminal (Remote Terminal), connection Access terminal (Access Terminal), user terminal (User Terminal), user agent (User Agent), and user equipment (User Device or User Equipment) are not limited here.
  • applications usually adopt a multi-process mechanism, that is, when an application is started, it often includes multiple active processes.
  • communication applications such as WeChat include about 5 active processes
  • playback software applications such as iQiyi include about 9 active processes.
  • entertainment gossip applications such as Ri Toutiao include about 7 active processes.
  • the control APP in the operating system can perform an unfreeze operation on the application, usually taking the application as the dimension. That is, in the event of at least one event such as non-agent system broadcast events, system broadcast over-limit events, foreground events, instant messaging (Instant Messaging, IM), network packet events and a sub-process exit event, the above
  • the event can trigger the control APP in the operating system to activate the unfreezing mechanism, so that the control APP in the operating system decides whether to unfreeze the application according to the unfreezing mechanism.
  • the control APP in the operating system determines that it is necessary to unfreeze the application, it can unfreeze the entire frozen application, allowing the unfrozen application to handle the above events.
  • the control APP in the operating system can continue to freeze the application to reduce the system power consumption of the terminal device and optimize the system performance of the terminal device.
  • control APP in the operating system will not only repeatedly unfreeze and freeze the application, but also cause the application to be unable to enter the frozen state again for a period of time after being unfrozen, making the application unable to continue to enter the frozen state , That is, the "unfreeze" application, and even the freezing operation becomes invalid in severe cases.
  • the present application provides an application management method, device, device, and storage medium, which can unfreeze part of the processes in the application, so that the application of the unfreezed part of the process can handle the event, thereby solving Applications are repeatedly thawed and frozen, causing resource preemption, wasted power consumption, and application performance degradation. This reduces the frequency of operations that applications are repeatedly thawed and frozen, increases the freezing rate of applications, and reduces the system performance of the terminal device. Consumption and optimization of the system performance of the terminal equipment.
  • the application takes the terminal device as the main body of execution, and the specific implementation process of the application management method of the application is described in detail with reference to FIG. 2.
  • FIG. 2 is a flowchart of an embodiment of an application management method provided by this application. As shown in FIG. 2, the application management method of an embodiment of this application may include:
  • the terminal device may use the operating system shown in FIG. 1 and obtain the unfreeze event through the management and control APP in the operating system.
  • different applications usually include different processes, such as drawing processes, sending and receiving processes, etc.
  • the process information is the information that uniquely identifies the process. Therefore, the process information can not only uniquely identify the process, but also Uniquely identifies the corresponding application.
  • the thawing mechanism that triggers the activation of the control APP in the operating system is different. Therefore, when the thawing event includes process information, the thawing event can trigger the control APP in the system to determine the activation of the frozen application.
  • the thawing mechanism corresponding to the thawing operation of some processes.
  • the process information in this application can correspond to one process or multiple processes, and this application does not limit the number of processes included in the process information.
  • the process information can take any form or combination of numbers, codes, or logos.
  • the process information may be a process ID (process identifier, PID), where the PID is a value that uniquely identifies the process.
  • the process information may include PID1, or may include PID1 and PID2.
  • S102 According to the correspondence between the application and the process and the process information, determine a part of the process in the target application, and perform a defrosting operation on the part of the process.
  • the management and control APP in the operating system can identify the applications installed on the terminal device and the processes included in the application. Therefore, the management and control APP in the operating system can use forms, sets, matrices, etc.
  • the corresponding relationship between the storage application and the process is stored, and this application does not limit the specific implementation of the corresponding relationship between the storage application and the process.
  • control APP in the operating system can use a table to store the correspondence between applications and processes.
  • all the applications installed on the terminal device and the application identifiers of each application are stored in Table 1, where the application identifier is a unique identifier of the application, and the application identifier may take the form of numbers, codes, or identifiers.
  • the "Number 1" application logo represents the WeChat application
  • the "Number 2" application logo represents the iQiyi application
  • the "Number 3" application logo represents the Toutiao application.
  • this application may use three tables to store the processes included in each of the three applications.
  • the process information of all processes included in the application identified by the "number 1" application in Table 2 (ie, the WeChat application) is used for illustration.
  • the "number 1" process information represents the drawing process
  • the "number 2" process information represents the sending and receiving process.
  • the control APP in the operating system can not only determine the corresponding relationship between the application and the process and the process information according to the process information
  • the target application corresponding to the process information can also determine part of the process in the target application.
  • the number of target applications and partial processes can be determined according to process information, which is not limited in this application.
  • process information which is not limited in this application.
  • the process information corresponds to a process
  • the number of target applications is one.
  • the process information corresponds to multiple processes, and some of the processes do not belong to the same application
  • the number of target applications is the number of processes.
  • the process information corresponds to multiple processes, and some of these processes are processes of the same application, the number of target applications is less than the number of processes.
  • control APP in the operating system can determine the target application corresponding to the process information according to the correspondence between the application and the process and the process information. If the unfreeze event includes application identification and process information, And the application identifier is to identify the application corresponding to the process information. For example, if the application corresponding to the process information is a WeChat application, and the application identifier is the application identifier of the WeChat application, then the control APP in the operating system can also determine according to the application identifier The target application corresponding to the application ID.
  • control APP in the operating system can unfreeze some of the determined processes according to the above-mentioned unfreeze mechanism, and some processes after being unfrozen enable the target application to run and perform corresponding processing, without the need for other processes in the target application Or the entire target application performs redundant thawing operations, thereby avoiding resource preemption, waste of power consumption, and application performance degradation.
  • the application management method provided by the present application obtains a thawing event including process information, and the thawing event can indicate that a thawing operation is triggered on part of the processes in a frozen application, and then according to the correspondence between the application and the process and the process Information, determine part of the process in the target application, and unfreeze some of the processes, which not only realizes the normal operation of the target application, but also enables the target application to perform corresponding processing, and there is no need to make redundant for other processes in the target application or the entire target application
  • the thawing operation of the application solves the problems of resource preemption, waste of power consumption and performance degradation caused by repeated thawing and freezing of the application, reduces the frequency of repeated thawing and freezing of the application, and improves the freezing rate of the application.
  • the system power consumption of the terminal equipment is reduced, and the system performance of the terminal equipment is optimized.
  • the unfreezing event is used to trigger the unfreezing operation on part of the processes in the frozen application, but some The event will still cause the control APP in the operating system to unfreeze the entire target application.
  • control APP in the operating system can determine whether the defrost event satisfies When part of the process is unfreezing conditions, according to the corresponding relationship between the application and the process and the process information, some processes in the target application are determined, and the unfreezing operation is performed on some processes.
  • the partial process unfreezing condition is a condition that triggers the unfreezing operation of some processes in the application.
  • the partial process thawing conditions include at least N of the following conditions, where N is a natural number:
  • the unfreeze event is not a click event
  • the type of unfreeze event is not a strong user perception type
  • the application corresponding to the unfreezing event is not included in the prediction application set, and the prediction application set includes at least one application that the user will use.
  • the click event may be a user's click operation to switch a frozen application from the background to the foreground and display the event of the application to the user through the foreground.
  • This application does not limit the specific types of click events.
  • the click event may include any one of a desktop icon click event, a notification bar click event, a recent task list click event, and a lock screen click event.
  • the desktop icon click event is a thawing event triggered by the user clicking an application on the desktop of the terminal device.
  • the notification bar click event is a thawing event triggered by the user by clicking the application in the notification bar of the terminal device.
  • the recent task list click event is a thawing event triggered by the user by clicking an application in the recent task list of the terminal device.
  • the lock screen click event is a thawing event triggered by the user by clicking the lock screen application of the terminal device.
  • the control APP in the operating system needs to switch the application corresponding to the click event from the background to the foreground. Furthermore, the control APP in the operating system determines that the unfreeze event is When you click the event, you can unfreeze the target application. When the control APP in the operating system determines that the unfreeze event is not a click event, it can unfreeze some processes in the target application.
  • the user's strong perception type is an event that the user sets in advance the use time or duration of the application, and this application does not limit the specific implementation form of the user's strong perception type.
  • the user's strong perception type may include: an alarm clock application trigger type or a music application timing play type.
  • the unfreeze event when the type of the unfreeze event is an alarm clock application trigger type, the unfreeze event is a strong sense unfreeze event that needs to be triggered by the alarm clock application in the terminal device at the current moment.
  • the type of the unfreezing event is a music application timing playback type, the unfreezing event is a strong perception unfreezing event triggered by the need to use the music application in the terminal device at the current moment.
  • the control APP in the operating system needs to switch the application corresponding to the unfreeze event corresponding to the user's strong perception type from the background to the foreground, and this operation
  • the control APP in the system determines that the type of the unfreeze event is the user's strong perception type, it can unfreeze the target application.
  • the control APP in the operating system determines that the type of the unfreezing event is not the user's strong perception type, it can unfreeze some processes in the target application.
  • the prediction application set includes at least one application to be used by the user, that is, the TopN application, and N is a positive integer, and this application does not limit the specific implementation form of the prediction application set.
  • TopN applications usually use normalized index (softmax), logistic regression and other algorithms to predict the top N applications that users will use in the foreground based on user habits over a period of time.
  • the control APP in the operating system needs the TopN application to switch from the background to the foreground. Furthermore, the application corresponding to the unfreeze event of the control APP in the operating system is included in When predicting the application set (that is, TopN application), the target application can be defrosted. When the application corresponding to the unfreezing event is not included in the prediction application set (that is, the TopN application), the control APP in the operating system can unfreeze some processes in the target application.
  • control APP in the operating system can determine whether the thawing event meets any one of the above conditions, and can also determine whether the thawing event meets any combination of the above conditions, which is not limited in this application.
  • control APP in the operating system obtains the unfreeze event in the default state, it is usually determined to unfreeze some processes in the target application, that is, the control APP in the operating system can be uncertain whether the unfreeze event meets the above conditions Any kind of.
  • the control APP in the operating system can meet certain process unfreezing conditions in the unfreezing event, determine some processes in the target application, and perform unfreezing operations on some processes in the target application; Part of the process thawing conditions, determine the target application, and perform the thawing operation on the target application, timely and accurately determine the object to perform the thawing operation, and avoid the phenomenon that the application cannot run normally due to misoperation.
  • the control APP in the operating system freezes the application while at the same time, in order to ensure that the application does not run and reduce the power consumption caused by resource use, it can act as an agent (that is, temporarily reclaim) the application to run before it is frozen.
  • the resource type of the resource may include, but is not limited to, the Global Positioning System (GPS), network, service, Bluetooth, Wi-Fi, etc.
  • application 1 can use resource A but not resource B.
  • Application 2 can use resource B but not resource A.
  • Application 3 can use resource A and resource B.
  • Application 4 may not use resource A and resource B.
  • the management and control APP in the operating system can usually store the correspondence between applications and resources in advance in the form of tables, sets, matrices, etc. The specific implementation of the storage of the correspondence between applications and resources in this application Not limited.
  • control APP in the operating system may use a table to store the correspondence between applications and resources.
  • Table 3 to illustrate the corresponding relationship between applications and resources using the foregoing application 1, application 2, application 3, and application 4 using resource A and resource B as an example.
  • the application identification of application 1 is 1
  • the application identification of application 2 is 2
  • the application identification of application 3 is 3
  • the application identification of application 4 is 4.
  • application 4 does not use resource A and resource B, there is no correspondence between application 4 and resource A and resource B in Table 3.
  • the correspondence between the application and the resource may also indicate the amount of resource used by the application. For example, add another column to Table 3, indicating that the amount of resources that can be used by application 1 of resource A is X.
  • Application 2 can use the resource amount of resource B as Y.
  • Application 3 can use the resource amount of resource A as M, and the amount of resource used by resource B is N.
  • an application includes process 1, process 2, process 3, and process 4.
  • Process 1 can use resource A but not resource B.
  • Process 2 can use resource B but not resource A.
  • Process 3 can use resource A and resource B.
  • Process 4 may not use resource A and resource B.
  • the control APP in the operating system can usually also store the correspondence between processes and resources in advance in the form of tables, sets, matrices, etc. This application implements the specific implementation of the correspondence between storage processes and resources The method is not limited.
  • control APP in the operating system can use a table to store the correspondence between processes and resources.
  • Table 4 to illustrate the corresponding relationship between processes and resources using the above-mentioned process 1, process 2, process 3, and process 4 using resource A and resource B as an example.
  • the process information of process 1 is PID1
  • the process information of process 2 is PID2
  • the process information of process 3 is PID3
  • the process information of process 4 is PID4.
  • process 4 does not use resource A and resource B, there is no correspondence between process 4 and resource A and resource B in Table 4.
  • the correspondence between the process and the resource can also indicate the amount of resource used by the process. For example, add another column to Table 4, indicating that the resource amount of resource A that can be used by process 1 is X.
  • Process 2 can use the resource amount of resource B as Y.
  • Process 3 can use the resource amount of resource A as M, and the resource amount that can use resource B as N.
  • the present application does not limit the specific implementation of the correspondence relationship between the pre-stored process and the resource and the relationship between the application and the resource.
  • the control APP in the operating system when a process in an application needs to use resources, not only stores the correspondence between the application and the resource, but also stores the relationship between the process in the application and the resource. The corresponding relationship is stored.
  • the control APP in the operating system When the entire application needs to use resources and it is impossible to determine that any process in the application needs to use the resources, the control APP in the operating system only stores the correspondence between the application and the resource, and does not store the process in the application and the resource. The correspondence relationship between is stored.
  • FIG. 3 is a flowchart of an embodiment of an application management method provided by this application. As shown in FIG. 3, the application management method of an embodiment of this application may include:
  • S202 Determine a part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a thawing operation on the part of the process.
  • S201 and S202 are respectively similar to the specific implementation manners of S101 and S102 in the embodiment of FIG. 2, and details are not described herein again in the embodiment of the present application.
  • the management and control APP in the operating system can determine the use of resources by any one of the partial processes according to the correspondence between the processes and the resources and the process information of the partial processes.
  • the use of resources by any process may include the resource type of the resource, and may also include the resource type and resource amount of the resource, which is not limited in this application.
  • the control APP in the operating system can obtain the resources used by the process, and allocate the resources to the process, and not to processes other than the process in some processes. Allocating resources. In this way, the process can use the resource to make the target application run normally and perform corresponding operations.
  • the control APP in the operating system can obtain the resources used by each process, and allocate corresponding resources to each process, and not to some processes other than the above processes The rest of the process allocates resources. In this way, the aforementioned processes can all use their corresponding resources to enable the target application to run normally and perform corresponding operations.
  • the control APP in the operating system stores the correspondence between process 1 and resource A, and the correspondence between process 2 and resource B
  • the operation The management and control APP in the system can allocate resource A to process 1 and resource B to process 2, without having to allocate resource B to process 1, and no need to allocate resource A to process 2.
  • the application management method provided by the present application can obtain the resource corresponding to at least one process in the part of the process according to the correspondence between the process and the resource and the process information of the part of the process after unfreezing the part of the process in the target application , And allocate resources to at least one process, so that at least one process can accurately obtain the corresponding resource, without allocating other resources to at least one process, realizes the intelligent allocation of resources, saves system resources to the greatest extent, and avoids waste of resources This phenomenon has improved the efficiency of resource allocation and utilization.
  • FIG. 4 is a flowchart of an embodiment of an application management method provided by this application. As shown in FIG. 4, the application management method of an embodiment of this application may include:
  • S302 Determine part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a thawing operation on the part of the process.
  • S301 and S302 are respectively similar to the specific implementation manners of S101 and S102 in the embodiment of FIG. 2, and details are not described herein again in this embodiment.
  • control APP in the operating system can obtain the resource usage of the target application according to the correspondence between the application and the resource and the application identifier.
  • the situation of the resources used by the target application may include the resource type of the resource, and may also include the resource type and resource amount of the resource, which is not limited in this application.
  • control APP in the operating system can allocate the target application to the target application when it has not obtained the resources corresponding to the part of the process according to the correspondence between the process and the resource and the process information of the part of the process.
  • the target application can use the resources used by the target application to achieve normal operation and perform corresponding operations.
  • control APP in the operating system when some processes include process 1 and process 2, and the control APP in the operating system only stores the correspondence between the target application and resource A, but does not store the correspondence between process 1 and resource A The relationship and the corresponding relationship between the process 2 and the resource A, the control APP in the operating system can allocate the resource A required by the target application to the target application.
  • the resources corresponding to some processes cannot be obtained due to the correspondence between processes and resources and the process information of some processes. Furthermore, according to The correspondence between applications and resources and application identifiers can obtain resources corresponding to the target application, and allocate resources to the target application, so that the target application can obtain the corresponding resources in time and accurately for normal operation, which improves resource allocation efficiency.
  • the specific process of implementing resource allocation using the application management method of this application may include:
  • Step 1 The control APP in the operating system obtains a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on part of the processes in the frozen application.
  • Step 2 The control APP in the operating system determines part of the process in the target application according to the correspondence between the application and the process and the process information, and performs a defrosting operation on the part of the process.
  • Step 3 The management and control APP in the operating system determines that the target application has corresponding resources according to the correspondence between the application and the resource and the application identifier.
  • Step 41 The management and control APP in the operating system allocates resources to at least one process when acquiring resources corresponding to at least one of the partial processes according to the correspondence between the processes and the resources and the process information of the partial processes.
  • Step 42 The management and control APP in the operating system obtains the resources corresponding to the target application and allocates resources to the target application when the resources corresponding to some processes are not obtained according to the correspondence between processes and resources and the process information of some processes. .
  • FIG. 5 is a schematic structural diagram of a terminal device provided by this application.
  • the terminal device 100 may use the operating system shown in FIG. ,
  • a device having a function of acquiring a thawing event and performing a thawing operation on an application or a process in an application is used to implement the operation corresponding to the terminal device in any of the foregoing method embodiments.
  • the terminal device 100 of the present application can be a wireless terminal or a wired terminal.
  • the wireless terminal can be a device that provides voice and/or other service data connectivity to the user, a handheld device with wireless connection function, or a wireless connection Other processing equipment for the modem.
  • the wireless terminal can communicate with one or more core networks via the RAN.
  • the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • a mobile terminal such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • it can be portable, pocket-sized, Hand-held, computer-built or vehicle-mounted mobile devices that exchange language and/or data with wireless access networks.
  • Wireless terminal can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), mobile station (Mobile Station), mobile station (Mobile), remote station (Remote Station), remote terminal (Remote Terminal), connection Access terminal (Access Terminal), user terminal (User Terminal), user agent (User Agent), and user equipment (User Device or User Equipment) are not limited here.
  • the terminal device 100 in the embodiment of the present application may include: a receiver 101 and a processor 102.
  • the receiver 101 is, for example, a port module, which can communicate with other devices through an optical port, an electrical port, or a combination thereof.
  • the processor 102 may be an integrated circuit, a field-programmable gate array (FPGA), or a chip, etc., where the receiver 101 is connected to the processor 102;
  • the receiver 101 is configured to obtain a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on some processes in a frozen application;
  • the processor 102 is configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a defrosting operation on the part of the process.
  • the processor 102 is configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information, and perform a defrosting operation on the part of the process, according to the relationship between the application and the process.
  • Correspondence and process information determine the target application corresponding to the process information.
  • the processor 102 is configured to determine the target application according to the correspondence between the application and the process and the process information when the application identifier is also included in the unfreezing event, and the application identifier is the application corresponding to the process information. Before defrosting some processes, determine the target application corresponding to the application identifier.
  • the processor 102 is specifically configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information when determining that the unfreezing event meets the part of the process unfreezing condition, and perform execution on the part of the process Thaw operation.
  • the partial process thawing conditions include at least N of the following conditions, and N is a natural number:
  • the unfreeze event is not a click event
  • the type of unfreeze event does not belong to the user's strong perception type
  • the application corresponding to the unfreezing event is not included in the prediction application set, and the prediction application set includes at least one application that the user will use.
  • the processor 102 is further configured to obtain a resource corresponding to at least one process in the partial process according to the correspondence between the process and the resource and the process information of the partial process, and allocate the resource to the at least one process.
  • the processor 102 is also configured to, according to the correspondence between the process and the resource and the process information of the part of the process, when the resource corresponding to the part of the process is not obtained, according to the correspondence between the application and the resource and Application identification, obtain resources corresponding to the target application, and allocate resources to the target application.
  • the click event includes any one of a desktop icon click event, a notification bar click event, a recent task list click event, and a lock screen click event.
  • the user's strong perception type includes: an alarm clock application trigger type or a music application timing play type.
  • the unfreezing event includes any one of a click event, a system broadcast event, and an application timing reminder event.
  • the process information is a process ID.
  • the terminal device of the embodiment of the present application may be used to execute the technical solutions of the terminal device in the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
  • FIG. 6 is a schematic structural diagram of an application management device provided by this application.
  • the application management device 200 may be used as shown in FIG.
  • the operating system of has a device that acquires thawing events and performs thawing operations on applications or processes in applications, and is used to implement operations corresponding to terminal devices in any of the foregoing method embodiments.
  • the terminal equipment involved in this application can be a wireless terminal or a wired terminal
  • a wireless terminal can be a device that provides voice and/or other service data connectivity to a user, a handheld device with a wireless connection function, or a Other processing equipment for wireless modems.
  • the wireless terminal can communicate with one or more core networks via the RAN.
  • the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • a mobile terminal such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • it can be portable, pocket-sized, Hand-held, computer-built or vehicle-mounted mobile devices that exchange language and/or data with wireless access networks.
  • Wireless terminal can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), mobile station (Mobile Station), mobile station (Mobile), remote station (Remote Station), remote terminal (Remote Terminal), connection Access terminal (Access Terminal), user terminal (User Terminal), user agent (User Agent), and user equipment (User Device or User Equipment) are not limited here.
  • the application management apparatus 200 of the embodiment of the present application may include:
  • the obtaining module 201 is configured to obtain a thawing event, the thawing event includes process information, and the thawing event is used to trigger a thawing operation on part of the processes in the frozen application;
  • the determining module 202 is configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information;
  • the thawing module 203 is used to perform a thawing operation on some processes.
  • the determining module 202 is configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information, and perform the unfreezing operation on the part of the process, according to the relationship between the application and the process. Correspondence and process information, determine the target application corresponding to the process information.
  • the determining module 202 is configured to determine the target application according to the correspondence between the application and the process and the process information when the application identifier is also included in the unfreezing event, and the application identifier is the application corresponding to the process information. Before defrosting some processes, determine the target application corresponding to the application identifier.
  • the determining module 202 is specifically configured to determine part of the process in the target application according to the correspondence between the application and the process and the process information when it is determined that the unfreezing event satisfies the partial process unfreezing condition.
  • the partial process thawing conditions include at least N of the following conditions, and N is a natural number:
  • the unfreeze event is not a click event
  • the type of unfreeze event does not belong to the user's strong perception type
  • the application corresponding to the unfreezing event is not included in the prediction application set, and the prediction application set includes at least one application that the user will use.
  • FIG. 7 is a schematic structural diagram of an application management apparatus provided by this application.
  • the application management apparatus 200 of the embodiment of the present application is based on the structure shown in FIG. 6, and may further include:
  • the obtaining module 201 is further configured to obtain a resource corresponding to at least one of the partial processes according to the correspondence between the processes and the resources and the process information of the partial processes;
  • the first allocation module 204 is configured to allocate resources to at least one process.
  • FIG. 8 is a schematic structural diagram of an application management apparatus provided by this application. As shown in FIG. 8, based on the structure shown in FIG. 6, the application management apparatus 200 of the embodiment of the present application may further include:
  • the obtaining module 201 is also used to obtain the target application according to the correspondence between the application and the resource and the application identifier when the resource corresponding to the part of the process is not obtained according to the correspondence between the process and the resource and the process information of the part of the process.
  • the second allocation module 205 is used to allocate resources to the target application.
  • the click event includes any one of a desktop icon click event, a notification bar click event, a recent task list click event, and a lock screen click event.
  • the user's strong perception type includes: an alarm clock application trigger type or a music application timing play type.
  • the unfreezing event includes any one of a click event, a system broadcast event, and an application timing reminder event.
  • the process information is a process ID.
  • the application management apparatus of the embodiment of the present application may be used to execute the technical solutions in the foregoing method embodiments, and the implementation principles and technical effects are similar, and will not be repeated here.
  • FIG. 9 is a schematic diagram of the hardware structure of a terminal device provided by this application.
  • the terminal device 300 may use the operating system shown in FIG. 1 and have the ability to obtain unfreeze events and perform processing on applications or processes in applications.
  • the device with the thawing operation function is used to implement the operation corresponding to the terminal device in any of the foregoing method embodiments.
  • the terminal device 300 of the present application can be a wireless terminal or a wired terminal
  • a wireless terminal can be a device that provides voice and/or other service data connectivity to the user, a handheld device with a wireless connection function, or a wireless connection Other processing equipment for the modem.
  • the wireless terminal can communicate with one or more core networks via the RAN.
  • the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • a mobile terminal such as a mobile phone (or called a "cellular" phone) and a computer with a mobile terminal.
  • it can be portable, pocket-sized, Hand-held, computer-built or vehicle-mounted mobile devices that exchange language and/or data with wireless access networks.
  • Wireless terminal can also be called system, subscriber unit (Subscriber Unit), subscriber station (Subscriber Station), mobile station (Mobile Station), mobile station (Mobile), remote station (Remote Station), remote terminal (Remote Terminal), connection Access terminal (Access Terminal), user terminal (User Terminal), user agent (User Agent), and user equipment (User Device or User Equipment) are not limited here.
  • the terminal device 300 of the embodiment of the present application may include: a memory 301 and a processor 302.
  • the memory 301 and the processor 302 may be connected through a bus 303.
  • the memory 301 is used to store program codes
  • the processor 302 calls the program code, and when the program code is executed, it is used to execute the application management method in any of the foregoing embodiments. For details, refer to the related description in the foregoing method embodiment.
  • the embodiment of the present application further includes a communication interface 304, and the communication interface 304 may be connected to the processor 302 through the bus 303.
  • the processor 302 may control the communication interface 303 to implement the aforementioned receiving and sending functions of the terminal device 300.
  • the terminal device of the embodiment of the present application may be used to execute the technical solutions in the foregoing method embodiments, and its implementation principles and technical effects are similar, and will not be repeated here.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules is only a logical function division.
  • there may be other division methods for example, multiple modules can be combined or integrated into another.
  • a system or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical, mechanical or other forms.
  • modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • the functional modules in the various embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules may be integrated into one unit.
  • the units formed by the above-mentioned modules can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the above-mentioned integrated modules implemented in the form of software function modules may be stored in a computer readable storage medium.
  • the above-mentioned software function module is stored in a storage medium and includes a number of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) execute the method of each embodiment of the present application Part of the steps.
  • processor may be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated as DSP), and application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as ASIC) etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed and completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage, and may also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk, or an optical disk.
  • NVM non-volatile storage
  • the bus may be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the buses in the drawings of this application are not limited to only one bus or one type of bus.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part.
  • the computer can be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • computer instructions may be transmitted from a website, computer, server, or data center through a cable (such as Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to transmit to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请提供一种应用管理方法、装置及设备,用于解冻应用的部分进程。该方法包括:获取解冻事件,解冻事件中包括进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;根据所述进程信息对部分进程执行解冻操作。从而实现了被解冻的进程所属的应用的部分功能正常运行,使得该应用可以执行相应处理,还无需对目标应用中的其他进程或者整个目标应用进行多余的解冻操作。

Description

应用管理方法、装置及设备
本申请要求于2019年02月02日提交中国专利局、申请号为201910106438.0、申请名称为“应用管理方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及一种应用管理方法、装置及设备。
背景技术
Android原生操作***(简称操作***)上,应用程序(Application,APP)(简称应用)在后台可以持续运行,原始设备制造商(Original Entrusted Manufacture,OEM)通常会引入冻结机制,该机制使得操作***可以对切换至后台的应用进行冻结操作,应用便无法继续运行,以降低终端设备的***功耗以及优化终端设备的***性能。在诸如用户点击应用、网络接收消息和定时任务触发等场景下,操作***需要已冻结的应用运行。
对应的,原始设备制造商还会引入解冻机制,该机制使得操作***对已冻结的应用进行解冻操作,允许解冻后的应用可以执行相应处理。例如,在发生诸如未代理的***广播事件、***广播超限事件、前台事件、即时通讯(Instant Messaging,IM)类有网络数据包事件和某个子进程退出事件中的至少一个事件时,上述事件可以触发操作***激活解冻机制,该机制使得操作***对已冻结的应用进行解冻操作,允许解冻后的应用可以处理上述事件。并且,通常在上述事件处理结束后的一段时间内,***基于冻结机制继续对应用进行冻结操作。
然而,随着上述事件的频繁发生,应用会反复被解冻和被冻结,使得切换至后台的应用抢占工作在前台的应用的资源,降低了工作在前台的应用的运行性能,造成工作在前台的应用不必要的功耗,也使得应用无法进入持续的冻结状态,严重时甚至导致冻结的效果失效。并且,应用中的某空进程被回收时需要退出,导致应用需要被解冻。在该进程退出后,该进程又会被应用中的其他进程拉起,然后过段时间应用又被冻结。在应用被冻结后,该进程又会变成空进程而被回收,出现应用反复被解冻和被冻结的情况,从而导致了应用不必要功耗的浪费。
发明内容
本申请提供一种应用管理方法、装置及设备,用于解决应用反复被解冻和被冻结而造成资源抢占、浪费功耗以及应用运行性能下降等问题。
第一方面,本申请提供一种应用管理方法,包括:获取解冻事件,所述解冻事件中包括进程信息,所述解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作。
通过第一方面提供的应用管理方法,终端设备可以获取包括进程信息的解冻事件,该将解冻事件可以表示触发对已冻结的应用中的部分进程执行解冻操作,进而,终端设备根据应用与进程之间的对应关系和进程信息,可以确定目标应用中的部分进程,并对部分进程执行 解冻操作,不仅实现了目标应用的部分功能的正常运行,使得目标应用可以执行相应处理,还无需对目标应用中的其他进程或者整个目标应用进行多余的解冻操作,从而解决了应用反复被解冻和被冻结而造成资源抢占、浪费功耗以及应用运行性能下降等问题,减少了应用反复被解冻和被冻结的操作频率,提高了应用的冻结率,从而降低了终端设备的***功耗,优化了终端设备的***性能。
其中,终端设备所使用的操作***可以包括但不限于Android原生操作***,使得终端设备可以获取事件并对事件执行操作,如冻结操作和解冻操作等。
本申请涉及的终端设备:可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经RAN与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(Personal Communication Service,PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备。无线终端也可以称为***、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment),在此不作限定。
本领域技术人员可以理解,应用通常采用多进程机制,即在启动一个应用时,往往包括多个活跃的进程。例如,如微信等通讯应用包括5个左右活跃的进程,如爱奇艺等播放软件应用包括9个左右活跃的进程,如今日头条等娱乐八卦应用包括7个左右活跃的进程。
在一种可能的设计中,在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,所述方法还包括:
根据应用与进程之间的对应关系和所述进程信息,确定与所述进程信息对应的目标应用。
在一种可能的设计中,所述解冻事件中还包括应用标识,所述应用标识为标识所述进程信息对应的应用;
在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,所述方法还包括:
确定与所述应用标识对应的所述目标应用。
在一种可能的设计中,所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作,包括:
在确定所述解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和所述进程信息,确定所述目标应用中的部分进程,并对所述部分进程执行解冻操作。
在一种可能的设计中,所述部分进程解冻条件包括下述条件中的至少N种,N为自然数:
所述解冻事件不为点击事件;
所述解冻事件的类型不属于用户强感知类型;和,
所述解冻事件对应的应用不包含在预测应用集中,所述预测应用集包括用户即将使用的至少一个应用。
通过该实施方式提供的应用管理方法,终端设备可以在解冻事件满足部分进程解冻条件, 确定目标应用中的部分进程,并对目标应用中的部分进程进行解冻操作;在解冻事件不满足部分进程解冻条件,确定目标应用,并对目标应用进行解冻操作,及时且精准的确定出了执行解冻操作的对象,避免了由于误操作而造成应用无法正常运行的现象。
在一种可能的设计中,所述方法还包括:
根据进程与资源之间的对应关系和所述部分进程的进程信息,获取所述部分进程中的至少一个进程对应的资源,并向所述至少一个进程分配所述资源。
通过该实施方式提供的应用管理方法,终端设备在对目标应用中的部分进程进行解冻操作后,根据进程与资源之间的对应关系和部分进程的进程信息,可以获取部分进程中的至少一个进程对应的资源,并向至少一个进程分配资源,使得至少一个进程可以准确获取到对应的资源,无需向至少一个进程分配其他资源,实现了资源的智能分配,最大程度的节省了***资源,从而避免资源浪费的现象,提高了资源的分配效率和使用率。
在一种可能的设计中,所述方法还包括:
在根据进程与资源之间的对应关系和所述部分进程的进程信息,未获取到所述部分进程对应的资源时,根据应用与资源之间的对应关系和所述应用标识,获取所述目标应用对应的资源,并向所述目标应用分配所述资源。
通过该实施方式提供的应用管理方法,终端设备在对目标应用中的部分进程进行解冻操作后,由于根据进程与资源之间的对应关系和部分进程的进程信息无法获取到部分进程对应的资源,进而,根据应用与资源之间的对应关系和应用标识,可以获取目标应用对应的资源,并向目标应用分配资源,使得目标应用可以及时准确获取到对应的资源以正常运行,提高了资源的分配效率。
在一种可能的设计中,所述点击事件包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
在一种可能的设计中,所述用户强感知类型包括:闹钟应用触发类型或者音乐应用定时播放类型。
在一种可能的设计中,所述解冻事件包括:点击事件、***广播事件和应用定时提醒事件中的任意一种。
在一种可能的设计中,所述进程信息为进程ID。
通过该实施方式提供的应用管理方法,
第二方面,本申请实施例提供一种终端设备,包括:接收器和处理器,所述接收器与所述处理器连接;
所述接收器,用于获取解冻事件,所述解冻事件中包括进程信息,所述解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;
所述处理器,用于根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作。
在一种可能的设计中,所述处理器,用于在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,根据应用与进程之间的对应关系和所述进程信息,确定与所述进程信息对应的目标应用。
在一种可能的设计中,所述处理器,用于当解冻事件中还包括应用标识,所述应用标识为标识所述进程信息对应的应用时,在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,确定与所述应用标识对应的所述目标应用。
在一种可能的设计中,所述处理器,具体用于在确定所述解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和所述进程信息,确定所述目标应用中的部分进程,并对所述部分进程执行解冻操作。
在一种可能的设计中,所述部分进程解冻条件包括下述条件中的至少N种,N为自然数:
所述解冻事件不为点击事件;
所述解冻事件的类型不属于用户强感知类型;和,
所述解冻事件对应的应用不包含在预测应用集中,所述预测应用集包括用户即将使用的至少一个应用。
在一种可能的设计中,所述处理器,还用于根据进程与资源之间的对应关系和所述部分进程的进程信息,获取所述部分进程中的至少一个进程对应的资源,并向所述至少一个进程分配所述资源。
在一种可能的设计中,所述处理器,还用于在根据进程与资源之间的对应关系和所述部分进程的进程信息,未获取到所述部分进程对应的资源时,根据应用与资源之间的对应关系和所述应用标识,获取所述目标应用对应的资源,并向所述目标应用分配所述资源。
在一种可能的设计中,所述点击事件包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
在一种可能的设计中,所述用户强感知类型包括:闹钟应用触发类型或者音乐应用定时播放类型。
在一种可能的设计中,所述解冻事件包括:点击事件、***广播事件和应用定时提醒事件中的任意一种。
在一种可能的设计中,所述进程信息为进程ID。
上述第二方面以及上述第二方面的各可能的设计中所提供的终端设备,其有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。
第三方面,本申请实施例提供一种应用管理装置,包括:
获取模块,用于获取解冻事件,所述解冻事件中包括进程信息,所述解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;
确定模块,用于根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程;
解冻模块,用于对所述部分进程执行解冻操作。
在一种可能的设计中,所述确定模块,用于在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,根据应用与进程之间的对应关系和所述进程信息,确定与所述进程信息对应的目标应用。
在一种可能的设计中,所述确定模块,用于当所述解冻事件中还包括应用标识,所述应用标识为标识所述进程信息对应的应用时,在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,确定与所述应用标识对应的所述目标应用。
在一种可能的设计中,所述确定模块,具体用于在确定所述解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和所述进程信息,确定所述目标应用中的部分进程,并对所述部分进程执行解冻操作。
在一种可能的设计中,所述部分进程解冻条件包括下述条件中的至少N种,N为自然 数:
所述解冻事件不为点击事件;
所述解冻事件的类型不属于用户强感知类型;和,
所述解冻事件对应的应用不包含在预测应用集中,所述预测应用集包括用户即将使用的至少一个应用。
在一种可能的设计中,所述获取模块,还用于根据进程与资源之间的对应关系和所述部分进程的进程信息,获取所述部分进程中的至少一个进程对应的资源;
所述应用管理装置还包括:
第一分配模块,用于向所述至少一个进程分配所述资源。
在一种可能的设计中,所述获取模块,还用于在根据进程与资源之间的对应关系和所述部分进程的进程信息,未获取到所述部分进程对应的资源时,根据应用与资源之间的对应关系和所述应用标识,获取所述目标应用对应的资源;
所述应用管理装置还包括:
第二分配模块,用于向所述目标应用分配所述资源。
在一种可能的设计中,所述点击事件包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
在一种可能的设计中,所述用户强感知类型包括:闹钟应用触发类型或者音乐应用定时播放类型。
在一种可能的设计中,所述解冻事件包括:点击事件、***广播事件和应用定时提醒事件中的任意一种。
在一种可能的设计中,所述进程信息为进程ID。
上述第三方面以及上述第三方面的各可能的设计中所提供的终端设备,其有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果,在此不再赘述。
第四方面,本申请提供一种终端设备,包括:存储器和处理器;
存储器用于存储程序指令;
处理器用于调用存储器中的程序指令执行第一方面及第一方面任一种可能的设计中的应用管理方法。
第五方面,本申请提供一种可读存储介质,可读存储介质中存储有执行指令,当终端设备的至少一个处理器执行该执行指令时,终端设备执行第一方面及第一方面任一种可能的设计中的应用管理方法。
第六方面,本申请提供一种程序产品,该程序产品包括执行指令,该执行指令存储在可读存储介质中。终端设备的至少一个处理器可以从可读存储介质读取该执行指令,至少一个处理器执行该执行指令使得终端设备实施第一方面及第一方面任一种可能的设计中的应用管理方法。
第七方面,本申请提供一种芯片,所述芯片与存储器相连,或者所述芯片上集成有存储器,当所述存储器中存储的软件程序被执行时,实现上述任一项所述的应用管理方法。
第八方面,本申请提供一种应用管理方法,包括:获取解冻事件,所述解冻事件中包括进程信息,所述解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;根据所述进程信息对所述部分进程执行解冻操作。该方面的其他实现方式可参考前述第一方面-第七方面,在此不再赘述。
本申请提供的应用管理方法、装置及设备,通过获取包括进程信息的解冻事件,且该将 解冻事件可以表示触发对已冻结的应用中的部分进程执行解冻操作,进而根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作,不仅实现了目标应用的正常运行,使得目标应用可以执行相应处理,还无需对目标应用中的其他进程或者整个目标应用进行多余的解冻操作,从而解决了应用反复被解冻和被冻结而造成资源抢占、浪费功耗以及应用运行性能下降等问题,减少了应用反复被解冻和被冻结的操作频率,提高了应用的冻结率,从而降低了终端设备的***功耗,优化了终端设备的***性能。
附图说明
图1为一种操作***软件架构示意图;
图2为本申请提供的一种应用管理方法实施例的流程图;
图3为本申请提供的一种应用管理方法实施例的流程图;
图4为本申请提供的一种应用管理方法实施例的流程图;
图5为本申请提供的一种终端设备的结构示意图;
图6为本申请提供的一种应用管理装置的结构示意图;
图7为本申请提供的一种应用管理装置的结构示意图;
图8为本申请提供的一种应用管理装置的结构示意图;
图9为本申请提供的一种终端设备的硬件结构示意图。
具体实施方式
图1为一种操作***软件架构示意图,如图1所示,本申请的操作***可以包括内核层、***基本服务层、***常驻应用层、解冻事件采集容器和管控APP。其中,内核层主要负责网络数据包解冻事件的上报,可以上报至解冻事件采集容器。***服务层主要负责定时提醒、进程退出等事件的上报,可以上报至解冻事件采集容器。***常驻应用层主要负责应用界面启动等事件的上报,可以上报至解冻事件采集容器。解冻事件采集容器主要负责从内核层、***基本服务层和***常驻应用层收集事件,并向管控APP发送事件。管控APP主要负责从解冻事件采集容器中接收事件并对事件执行处理决策。
其中,该操作***可以包括但不限于Android原生操作***,且该操作***可以使用于终端设备,使得终端设备可以获取事件并针对事件可以执行操作,如冻结操作和解冻操作等。
本申请涉及的终端设备:可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经RAN与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(Personal Communication Service,PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)、人工智能设备、车载装置等设备。无线终端也可以称为***、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment),在此不作限定。
本领域技术人员可以理解,应用通常采用多进程机制,即在启动一个应用时,往往包括多个活跃的进程。例如,如微信等通讯应用包括5个左右活跃的进程,如爱奇艺等播放软件应用包括9个左右活跃的进程,如今日头条等娱乐八卦应用包括7个左右活跃的进程。
在Android原生操作***的实际应用过程中,该操作***中的管控APP可以对应用执行解冻操作,通常以应用为维度。即在发生诸如未代理的***广播事件、***广播超限事件、前台事件、即时通讯(Instant Messaging,IM)类有网络数据包事件和某个子进程退出事件中的至少一个事件的情况下,上述事件可以触发操作***中的管控APP激活解冻机制,使得操作***中的管控APP根据该解冻机制决策是否对应用进行解冻操作。操作***中的管控APP在确定需要对应用进行解冻操作时,便可对整个已冻结的应用进行解冻操作,允许被解冻的应用可以处理上述事件。并在应用结束处理上述事件后,经过一段时长,操作***中的管控APP可以继续对该应用进行冻结操作,以降低终端设备的***功耗且优化终端设备的***性能。
如果上述事件发生较为频繁,操作***中的管控APP不仅会反复对应用进行解冻操作和冻结操作,还会造成应用在被解冻后的一段时长内无法再次进入冻结状态,使得应用无法持续进入冻结状态,即“冻不住”应用,严重时甚至导致冻结操作失效。
这样,切换至后台的应用容易抢占工作在前台的应用的资源,降低了工作在前台的应用的运行性能,造成工作在前台的应用不必要的功耗。并且,切换至后台的应用在被冻结后,其包括的某空进程被回收时需要退出,导致操作***需要对应用进行解冻操作。在该进程退出后,该进程又会被应用中的其他进程拉起,经过一段时间,操作***便会对被解冻的应用再次进行冻结操作。在该应用被冻结后,该进程又会变成空进程而被回收,使得应用反复被解冻和被冻结,造成切换至后台的应用不必要的功耗。例如,淘宝、百度等应用皆存在上述问题。
由于操作***中的管控APP仅需要对应用中的部分进程进行解冻操作,该应用便可完成对上述事件的处理,无需对整个应用进行解冻操作。因此,为了解决上述问题,本申请提供一种应用管理方法、装置、设备及存储介质,可以实现对应用中的部分进程进行解冻操作,使得被解冻部分进程的应用可以处理事件,从而,解决了应用反复被解冻和被冻结而造成资源抢占、浪费功耗以及应用运行性能下降等问题,减少了应用反复被解冻和被冻结的操作频率,提高了应用的冻结率,以降低终端设备的***功耗和优化终端设备的***性能。
下面,本申请以终端设备为执行主体,结合图2,对本申请应用管理方法的具体实现过程进行详细说明。
图2为本申请提供的一种应用管理方法实施例的流程图,如图2所示,本申请实施例的应用管理方法可以包括:
S101、获取解冻事件,解冻事件中包括进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作。
本申请中,终端设备可以使用图1所示的操作***,并通过该操作***中的管控APP获取解冻事件。由于不同的应用通常包括不同的进程,如绘图进程、收发进程等,且每个进程的进程信息也不同,该进程信息为唯一标识进程的信息,因此,进程信息不仅可以唯一标识进程,还可以唯一标识对应的应用。又由于解冻事件不同,触发该操作***中的管控APP激活的解冻机制不同,因此,在解冻事件中包括进程信息时,解冻事件可以触发该***中的管控APP确定激活对已冻结的应用中的部分进程进行解冻操作所对应的解冻机制。
其中,本申请中的进程信息可以对应一个进程,也可以对应多个进程,本申请对进程信 息中包括进程的数量不做限定。且该进程信息可以采用数字、代码或者标识等任意形式或者任意组合形式。可选地,进程信息可以为进程ID(process identifier,PID),其中,PID为唯一标识进程的一个数值。例如,进程信息中可以包括PID1,也可以包括PID1和PID2。
S102、根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
本申请中,该操作***中的管控APP可以识别出终端设备上所安装的应用以及该应用所包括的进程,因此,该操作***中的管控APP可以采用表格、集合、矩阵等形式事先对应用与进程之间的对应关系进行存储,本申请对存储应用与进程之间的对应关系的具体实现方式不做限定。
举例来说,该操作***中的管控APP可以利用表格对应用与进程之间的对应关系进行存储。具体地,表1中存储有终端设备上所安装的全部应用与各应用的应用标识,其中,应用标识为应用的唯一标识,该应用标识可以采用数字、代码或者标识等形式。例如,表1中,“数字1”应用标识代表微信应用,“数字2”应用标识代表爱奇艺应用,“数字3”应用标识代表今日头条应用。由于微信应用、爱奇艺应用和今日头条应用各自包括的进程不同,因此,本申请可以采用三个表格分别对这三个应用各自包括的进程进行存储。为了便于说明,以表2中的“数字1”应用标识的应用(即微信应用)所包括的全部进程的进程信息进行示意。例如,表2中,“数字1”进程信息代表绘图进程,“数字2”进程信息代表收发进程。
表1
应用标识 应用名称
1 微信
2 爱奇艺
3 今日头条
表2
Figure PCTCN2020071786-appb-000001
进一步地,由于进程信息为唯一标识进程的信息,且每个应用所包括的进程不同,因此,该操作***中的管控APP根据应用与进程之间的对应关系和进程信息,不仅可以确定出与进程信息对应的目标应用,还可以确定出目标应用中的部分进程。
其中,目标应用和部分进程的数量可以根据进程信息进行确定,本申请对此不做限定。通常,当进程信息对应一个进程时,目标应用的数量为一个。当进程信息对应多个进程,且这些进程中不存在部分进程为同一个应用的进程时,目标应用的数量为进程的数量。当进程信息对应多个进程,且这些进程中存在部分进程为同一个应用的进程时,目标应用的数量小于进程的数量。
需要说明的是,该操作***中的管控APP除了可以根据应用与进程之间的对应关系和进程信息,确定出与该进程信息对应的目标应用以外,若解冻事件中包括应用标识和进程信息,且该应用标识为标识该进程信息所对应的应用,如进程信息对应的应用为微信应用,应用标识为微信应用的应用标识,则该操作***中的管控APP也可以根据该应用标识,确定出与应 用标识对应的目标应用。
进而,该操作***中的管控APP可以根据上述解冻机制,对所确定的部分进程进行解冻操作,被解冻后的部分进程使得目标应用运行起来并可以执行相应处理,无需对目标应用中的其他进程或者整个目标应用进行多余的解冻操作,从而避免造成资源抢占、功耗浪费和应用性能下降的现象。
本申请提供的应用管理方法,通过获取包括进程信息的解冻事件,且该将解冻事件可以表示触发对已冻结的应用中的部分进程执行解冻操作,进而根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作,不仅实现了目标应用的正常运行,使得目标应用可以执行相应处理,还无需对目标应用中的其他进程或者整个目标应用进行多余的解冻操作,从而解决了应用反复被解冻和被冻结而造成资源抢占、浪费功耗以及应用运行性能下降等问题,减少了应用反复被解冻和被冻结的操作频率,提高了应用的冻结率,从而降低了终端设备的***功耗,优化了终端设备的***性能。
示例性的,在图2所示实施例的基础上,在操作***中的管控APP获取到解冻事件时,即时该解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作,但有些事件仍会使得该操作***中的管控APP对整个目标应用进行解冻操作。因此,为了准确区分解冻事件是用于对整个应用还是对应用中的部分进程进行解冻操作,一种S102的具体实现方式中,可选地,该操作***中的管控APP可以在确定解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
其中,部分进程解冻条件为满足触发对应用中的部分进程进行解冻操作的条件。
可选地,部分进程解冻条件包括下述条件中的至少N种,N为自然数:
解冻事件不为点击事件;
解冻事件的类型不属于用户强感知类型;和
解冻事件对应的应用不包含在预测应用集中,预测应用集包括用户即将使用的至少一个应用。
本申请中,点击事件可以为通过用户的点击操作将已冻结的应用从后台切换至前台并通过前台向用户显示该应用的事件,本申请对点击事件的具体类型不做限定。可选地,点击事件可以包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
具体地,桌面图标点击事件为用户通过点击终端设备的桌面上的应用所触发的解冻事件。通知栏点击事件为用户通过点击终端设备的通知栏中的应用所触发的解冻事件。最近任务列表点击事件为用户通过点击终端设备的最近任务列表中的应用所触发的解冻事件。锁屏点击事件为用户通过点击终端设备的锁屏应用所触发的解冻事件。
由于点击事件为用户需要在前台进行相应操作的事件,因此,该操作***中的管控APP需要将点击事件对应的应用从后台切换至前台,进而,该操作***中的管控APP在确定解冻事件为点击事件时,可以对目标应用进行解冻操作。该操作***中的管控APP在确定解冻事件不为点击事件时,可以对目标应用中的部分进程进行解冻操作。
本申请中,用户强感知类型为用户事先对应用的使用时刻或者使用时长进行设定的事件,本申请对用户强感知类型的具体实现形式不做限定。可选地,用户强感知类型可以包括:闹钟应用触发类型或者音乐应用定时播放类型。
具体地,当解冻事件的类型为闹钟应用触发类型时,解冻事件为当前时刻需要使用终端设备中的闹钟应用所触发的强感知解冻事件。当解冻事件的类型为音乐应用定时播放类型时, 解冻事件为当前时刻需要使用终端设备中的音乐应用所触发的强感知解冻事件。
由于用户强感知类型对应的解冻事件为当前时刻需要使用应用的事件,因此,该操作***中的管控APP需要将用户强感知类型对应的解冻事件对应的应用从后台切换至前台,进而,该操作***中的管控APP在确定解冻事件的类型为用户强感知类型时,可以对目标应用进行解冻操作。该操作***中的管控APP在确定解冻事件的类型不为用户强感知类型时,可以对目标应用中的部分进程进行解冻操作。
本申请中,预测应用集中包括用户即将使用的至少一个应用,即TopN应用,N为正整数,本申请对该预测应用集的具体实现形式不做限定。其中,TopN应用通常为采用归一化指数(softmax)、逻辑回归等算法,根据在一段时长内的用户习惯,预测用户即将在前台使用的前N个应用。
由于该TopN应用为用户即将在前台使用的应用,因此,该操作***中的管控APP需要该TopN应用需要从后台切换至前台,进而,该操作***中的管控APP在解冻事件对应的应用包含在预测应用集(即TopN应用)中时,可以对目标应用进行解冻操作。该操作***中的管控APP在解冻事件对应的应用不包含在预测应用集(即TopN应用)中时,可以对目标应用中的部分进程进行解冻操作。
需要说明的是,该操作***中的管控APP可以确定解冻事件是否满足上述条件的任意一种,也可以确定解冻事件是否满足上述条件的任意一种组合,本申请对此不做限定。另外,该操作***中的管控APP在缺省状态下获取到解冻事件时,通常确定对目标应用中的部分进程进行解冻操作,即该操作***中的管控APP可以不确定解冻事件是否满足上述条件的任意一种。
本申请提供的应用管理方法,该操作***中的管控APP可以在解冻事件满足部分进程解冻条件,确定目标应用中的部分进程,并对目标应用中的部分进程进行解冻操作;在解冻事件不满足部分进程解冻条件,确定目标应用,并对目标应用进行解冻操作,及时且精准的确定出了执行解冻操作的对象,避免了由于误操作而造成应用无法正常运行的现象。
结合图1,该操作***中的管控APP在对应用进行冻结操作的同时,为了保证应用不运行且减少资源使用所带来的功耗,可以代理(即暂时回收)应用在被冻结之前运行所需使用的资源,使得已冻结的应用不会继续占用资源,从而避免资源无法合理使用而降低资源的利用率。其中,资源的资源类型可以包括但不限于全球定位***(Global Positioning System,GPS)、网络、服务、蓝牙、无线保真Wi-Fi等。
本领域技术人员可以理解,不同的应用可以使用不同的资源。例如,应用1可以使用资源A,不使用资源B。应用2可以使用资源B,不使用资源A。应用3可以使用资源A和资源B。应用4可以不使用资源A和资源B。基于上述过程,该操作***中的管控APP通常可以采用表格、集合、矩阵等形式事先对应用与资源之间的对应关系进行存储,本申请对存储应用与资源之间的对应关系的具体实现方式不做限定。
举例来说,该操作***中的管控APP可以利用表格对应用与资源之间的对应关系进行存储。具体地,以表3对上述应用1、应用2、应用3和应用4使用资源A和资源B的情况为例对应用与资源之间的对应关系进行示意。表3中,应用1的应用标识为1,应用2的应用标识为2,应用3的应用标识为3,应用4的应用标识为4。其中,由于应用4未使用资源A和资源B,因此,表3中不存在应用4分别与资源A和资源B之间的对应关系。
表3
应用标识 资源类型
1 资源A
2 资源B
3 资源A
3 资源B
需要说明的是,该应用与资源之间的对应关系除了表明应用使用资源的资源类型之外,还可以表明应用使用资源的资源量。例如,在表3中再添加一列,表示应用1可以使用资源A的资源量为X。应用2可以使用资源B的资源量为Y。应用3可以使用资源A的资源量为M,使用资源B的资源量为N。
本领域技术人员还可以理解,针对任意一个应用,不同的进程可以使用不同的资源。例如,某个应用包括进程1、进程2、进程3和进程4。进程1可以使用资源A,不使用资源B。进程2可以使用资源B,不使用资源A。进程3可以使用资源A和资源B。进程4可以不使用资源A和资源B。基于上述过程,该操作***中的管控APP通常也可以采用表格、集合、矩阵等形式事先对进程与资源之间的对应关系进行存储,本申请对存储进程与资源之间的对应关系的具体实现方式不做限定。
举例来说,该操作***中的管控APP可以利用表格对进程与资源之间的对应关系进行存储。具体地,以表4对上述进程1、进程2、进程3和进程4使用资源A和资源B的情况为例对进程与资源之间的对应关系进行示意。表4中,进程1的进程信息为PID1,进程2的进程信息为PID2,进程3的进程信息为PID3,进程4的进程信息为PID4。其中,由于进程4未使用资源A和资源B,因此,表4中不存在进程4分别与资源A和资源B之间的对应关系。
表4
PID 资源类型
1 资源A
2 资源B
3 资源A
3 资源B
需要说明的是,该进程与资源之间的对应关系除了表明进程使用资源的资源类型之外,还可以表明进程使用资源的资源量。例如,在表4中再添加一列,表示进程1可以使用资源A的资源量为X。进程2可以使用资源B的资源量为Y。进程3可以使用资源A的资源量为M,使用资源B的资源量为N。
进一步地,本申请对事先存储进程与资源之间的对应关系和应用与资源之间的关系的具体实现方式不做限定。为了合理利用存储空间,在应用中的进程需要使用资源时,该操作***中的管控APP不仅对该应用与该资源之间的对应关系进行存储,还对应用中的进程与该资源之间的对应关系进行存储。在整个应用需要使用资源而无法确定应用中任意一个进程需要使用资源时,该操作***中的管控APP仅对该应用与该资源之间的对应关系进行存储,而不对应用中的进程与该资源之间的对应关系进行存储。
基于上述过程,在图2所示实施例的基础上,该操作***中的管控APP在对目标应用中的部分进程进行解冻操作之后,若部分进程中存在一个进程或多个进程在被冻结之前使用资源,则只需向一个进程或多个进程分配资源。因此,示例的,结合图3,对本实施例的应用 管理方法的具体过程进行详细说明。
图3为本申请提供的一种应用管理方法实施例的流程图,如图3所示,本申请实施例的应用管理方法可以包括:
S201、获取解冻事件,解冻事件中包括进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作。
S202、根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
其中,S201和S202分别与图2实施例中的S101和S102实现具体方式类似,本申请实施例此处不再赘述。
S203、根据进程与资源之间的对应关系和部分进程的进程信息,获取部分进程中的至少一个进程对应的资源,并向至少一个进程分配资源。
本申请中,该操作***中的管控APP根据进程与资源之间的对应关系和部分进程的进程信息,可以确定出部分进程中的任意一个进程使用资源的情况。其中,任意一个进程使用资源的情况可以包括资源的资源类型,也可以包括资源的资源类型和资源量,本申请对此不做限定。
进而,当部分进程中仅存在一个进程使用资源时,该操作***中的管控APP可以获取该进程所使用的资源,并向该进程分配该资源,不向部分进程中除了该进程之外的进程分配资源。这样,该进程可以使用该资源以使目标应用正常运行并执行相应的操作。当部分进程中存储多个进程使用资源时,该操作***中的管控APP可以获取每个进程所使用的资源,并向每个进程分配各自对应的资源,不向部分进程中除了上述进程之外的其余进程分配资源。这样,上述进程皆可以使用各自对应的资源以使目标应用正常运行并执行相应的操作。
举例来说,当部分进程包括进程1和进程2,且该操作***中的管控APP存储有进程1与资源A之间的对应关系,以及进程2与资源B之间的对应关系,则该操作***中的管控APP可以向进程1分配资源A,向进程2分配资源B,无需向进程1分配资源B,无需向进程2分配资源A。
本申请提供的应用管理方法,通过在对目标应用中的部分进程进行解冻操作后,根据进程与资源之间的对应关系和部分进程的进程信息,可以获取部分进程中的至少一个进程对应的资源,并向至少一个进程分配资源,使得至少一个进程可以准确获取到对应的资源,无需向至少一个进程分配其他资源,实现了资源的智能分配,最大程度的节省了***资源,从而避免资源浪费的现象,提高了资源的分配效率和使用率。
继续结合上述过程,在图2所示实施例的基础上,该操作***中的管控APP在对目标应用中的部分进程进行解冻操作之后,若目标应用在被冻结之前使用资源,且无法确定部分进程使用资源的具有情况,则需要向目标应用分配资源。因此,示例的,结合图4,对本实施例的应用管理方法的具体过程进行详细说明。
图4为本申请提供的一种应用管理方法实施例的流程图,如图4所示,本申请实施例的应用管理方法可以包括:
S301、获取解冻事件,解冻事件中包括应用标识和进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作。
S302、根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
其中,S301和S302分别与图2实施例中的S101和S102实现具体方式类似,本实施例此处不再赘述。
S303、在根据进程与资源之间的对应关系和部分进程的进程信息,未获取到部分进程对应的资源时,根据应用与资源之间的对应关系和应用标识,获取目标应用对应的资源,并向目标应用分配资源。
本申请中,该操作***中的管控APP根据应用与资源之间的对应关系和应用标识,可以获取目标应用所使用资源的情况。其中,目标应用所使用资源的情况可以包括资源的资源类型,也可以包括资源的资源类型和资源量,本申请对此不做限定。
进而,结合图3,该操作***中的管控APP在根据进程与资源之间的对应关系和部分进程的进程信息,未获取到部分进程对应的资源时,可以向该目标应用分配目标应用所使用的资源,这样,该目标应用可以使用目标应用所使用的资源以实现正常运行并执行相应的操作。
举例来说,当部分进程包括进程1和进程2,且该操作***中的管控APP中仅存储有目标应用与资源A之间的对应关系,而未存储有进程1与资源A之间的对应关系和进程2与资源A之间的对应关系,则该操作***中的管控APP可以向目标应用分配该目标应用所需的资源A。
本申请提供的应用管理方法,通过在对目标应用中的部分进程进行解冻操作后,由于根据进程与资源之间的对应关系和部分进程的进程信息无法获取到部分进程对应的资源,进而,根据应用与资源之间的对应关系和应用标识,可以获取目标应用对应的资源,并向目标应用分配资源,使得目标应用可以及时准确获取到对应的资源以正常运行,提高了资源的分配效率。
结合图3和图4,在一个具体的实施例中,采用本申请应用管理方法实现资源分配的具体过程可以包括:
步骤1、该操作***中的管控APP获取解冻事件,解冻事件中包括进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作。
步骤2、该操作***中的管控APP根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
步骤3、该操作***中的管控APP根据应用与资源之间的对应关系和应用标识,确定目标应用存在对应使用的资源。
步骤41、该操作***中的管控APP在根据进程与资源之间的对应关系和部分进程的进程信息,获取部分进程中的至少一个进程对应的资源时,向至少一个进程分配资源。
步骤42、该操作***中的管控APP在根据进程与资源之间的对应关系和部分进程的进程信息,未获取部分进程对应的资源时,获取到目标应用对应的资源,并向目标应用分配资源。
示例性的,本申请实施例还提供一种终端设备,图5为本申请提供的一种终端设备的结构示意图,如图5所示,该终端设备100可以为使用图1所示的操作***,具有获取解冻事件且对应用或者应用中的进程进行解冻操作功能的设备,用于实现上述任一方法实施例中对应于终端设备的操作。
其中,本申请终端设备100:可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经RAN与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(Personal Communication Service,PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备。无线终端也可以称为系 统、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment),在此不作限定。
本申请实施例终端设备100可以包括:接收器101和处理器102。接收器101例如是端口模块,可以通过光端口、电端口或其组合与其他设备进行通信。处理器102可以为集成电路、现场可编程门阵列(field-programmable gate array,FPGA)或芯片等,其中,接收器101与处理器102连接;
接收器101,用于获取解冻事件,解冻事件中包括进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;
处理器102,用于根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
在一些实施例中,处理器102,用于在根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作之前,根据应用与进程之间的对应关系和进程信息,确定与进程信息对应的目标应用。
在一些实施例中,处理器102,用于当解冻事件中还包括应用标识,应用标识为标识进程信息对应的应用时,在根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作之前,确定与应用标识对应的目标应用。
在一些实施例中,处理器102,具体用于在确定解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作。
在一些实施例中,部分进程解冻条件包括下述条件中的至少N种,N为自然数:
解冻事件不为点击事件;
解冻事件的类型不属于用户强感知类型;和,
解冻事件对应的应用不包含在预测应用集中,预测应用集包括用户即将使用的至少一个应用。
在一些实施例中,处理器102,还用于根据进程与资源之间的对应关系和部分进程的进程信息,获取部分进程中的至少一个进程对应的资源,并向至少一个进程分配资源。
在一些实施例中,处理器102,还用于在根据进程与资源之间的对应关系和部分进程的进程信息,未获取到部分进程对应的资源时,根据应用与资源之间的对应关系和应用标识,获取目标应用对应的资源,并向目标应用分配资源。
在一些实施例中,点击事件包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
在一些实施例中,用户强感知类型包括:闹钟应用触发类型或者音乐应用定时播放类型。
在一些实施例中,解冻事件包括:点击事件、***广播事件和应用定时提醒事件中的任意一种。
在一些实施例中,进程信息为进程ID。
本申请实施例的终端设备,可以用于执行上述各方法实施例中终端设备的技术方案,其实现原理和技术效果类似,此处不再赘述。
示例性的,本申请实施例还提供一种应用管理装置,图6为本申请提供的一种应用管理装置的结构示意图,如图6所示,该应用管理装置200可以为使用图1所示的操作***,具 有获取解冻事件且对应用或者应用中的进程进行解冻操作功能的设备,用于实现上述任一方法实施例中对应于终端设备的操作。
其中,本申请涉及的终端设备:可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经RAN与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(Personal Communication Service,PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备。无线终端也可以称为***、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment),在此不作限定。
本申请实施例应用管理装置200可以包括:
获取模块201,用于获取解冻事件,解冻事件中包括进程信息,解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;
确定模块202,用于根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程;
解冻模块203,用于对部分进程执行解冻操作。
在一些实施例中,确定模块202,用于在根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作之前,根据应用与进程之间的对应关系和进程信息,确定与进程信息对应的目标应用。
在一些实施例中,确定模块202,用于当解冻事件中还包括应用标识,应用标识为标识进程信息对应的应用时,在根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程,并对部分进程执行解冻操作之前,确定与应用标识对应的目标应用。
在一些实施例中,确定模块202,具体用于在确定解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和进程信息,确定目标应用中的部分进程。
在一些实施例中,部分进程解冻条件包括下述条件中的至少N种,N为自然数:
解冻事件不为点击事件;
解冻事件的类型不属于用户强感知类型;和,
解冻事件对应的应用不包含在预测应用集中,预测应用集包括用户即将使用的至少一个应用。
图7为本申请提供的一种应用管理装置的结构示意图,如图7所示,本申请实施例的应用管理装置200在图6所示结构的基础上,进一步地,还可以包括:
获取模块201,还用于根据进程与资源之间的对应关系和部分进程的进程信息,获取部分进程中的至少一个进程对应的资源;
第一分配模块204,用于向至少一个进程分配资源。
图8为本申请提供的一种应用管理装置的结构示意图,如图8所示,本申请实施例的应用管理装置200在图6所示结构的基础上,进一步地,还可以包括:
获取模块201,还用于在根据进程与资源之间的对应关系和部分进程的进程信息,未获 取到部分进程对应的资源时,根据应用与资源之间的对应关系和应用标识,获取目标应用对应的资源;
第二分配模块205,用于向目标应用分配资源。
在一些实施例中,点击事件包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
在一些实施例中,用户强感知类型包括:闹钟应用触发类型或者音乐应用定时播放类型。
在一些实施例中,解冻事件包括:点击事件、***广播事件和应用定时提醒事件中的任意一种。
在一些实施例中,进程信息为进程ID。
本申请实施例的应用管理装置,可以用于执行上述各方法实施例中的技术方案,其实现原理和技术效果类似,此处不再赘述。
图9为本申请提供的一种终端设备的硬件结构示意图,如图9所示,该终端设备300可以为使用图1所示的操作***,具有获取解冻事件且对应用或者应用中的进程进行解冻操作功能的设备,用于实现上述任一方法实施例中对应于终端设备的操作。
其中,本申请终端设备300:可以是无线终端也可以是有线终端,无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经RAN与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(Personal Communication Service,PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,SIP)话机、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)等设备。无线终端也可以称为***、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device or User Equipment),在此不作限定。
本申请实施例的终端设备300可以包括:存储器301和处理器302。存储器301与处理器302可以通过总线303连接。
存储器301,用于存储程序代码;
处理器302,调用程序代码,当程序代码被执行时,用于执行上述任一实施例中的应用管理方法。具体可以参见前述方法实施例中的相关描述。
可选地,本申请实施例还包括通信接口304,该通信接口304可以通过总线303与处理器302连接。处理器302可以控制通信接口303来实现终端设备300的上述的接收和发送的功能。
本申请实施例的终端设备,可以用于执行上述各方法实施例中的技术方案,其实现原理和技术效果类似,此处不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例方法的部分步骤。
应理解,上述处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。

Claims (13)

  1. 一种应用管理方法,其特征在于,包括:
    获取解冻事件,所述解冻事件中包括进程信息,所述解冻事件用于触发对已冻结的应用中的部分进程执行解冻操作;
    根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作。
  2. 根据权利要求1所述的方法,其特征在于,在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,所述方法还包括:
    根据应用与进程之间的对应关系和所述进程信息,确定与所述进程信息对应的所述目标应用。
  3. 根据权利要求1所述的方法,其特征在于,所述解冻事件中还包括应用标识,所述应用标识为标识所述进程信息对应的应用;
    在所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作之前,所述方法还包括:
    确定与所述应用标识对应的所述目标应用。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据应用与进程之间的对应关系和所述进程信息,确定目标应用中的部分进程,并对所述部分进程执行解冻操作,包括:
    在确定所述解冻事件满足部分进程解冻条件时,根据应用与进程之间的对应关系和所述进程信息,确定所述目标应用中的部分进程,并对所述部分进程执行解冻操作。
  5. 根据权利要求4所述的方法,其特征在于,所述部分进程解冻条件包括下述条件中的至少N种,N为自然数:
    所述解冻事件不为点击事件;
    所述解冻事件的类型不属于用户强感知类型;和,
    所述解冻事件对应的应用不包含在预测应用集中,所述预测应用集包括用户即将使用的至少一个应用。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    根据进程与资源之间的对应关系和所述部分进程的进程信息,获取所述部分进程中的至少一个进程对应的资源,并向所述至少一个进程分配所述资源。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    在根据进程与资源之间的对应关系和所述部分进程的进程信息,未获取到所述部分进程对应的资源时,根据应用与资源之间的对应关系和所述应用标识,获取所述目标应用对应的资源,并向所述目标应用分配所述资源。
  8. 根据权利要求5所述的方法,其特征在于,所述点击事件包括:桌面图标点击事件、通知栏点击事件、最近任务列表点击事件和锁屏点击事件中的任意一种。
  9. 根据权利要求5所述的方法,其特征在于,所述用户强感知类型包括:闹钟应用触发类型或者音乐应用定时播放类型。
  10. 根据权利要求1-5任一项所述的方法,其特征在于,所述解冻事件包括:点击事件、***广播事件和应用定时提醒事件中的任意一种。
  11. 根据权利要求1-7任一项所述的方法,其特征在于,所述进程信息为进程ID。
  12. 一种终端设备,其特征在于,包括:
    存储器和处理器;
    所述存储器用于存储程序指令;
    所述处理器用于调用所述存储器中存储的程序指令实现权利要求1-11任一项所述的应用管理方法。
  13. 一种可读存储介质,其特征在于,包括:所述可读存储介质中存储有执行指令,当终端设备的至少一个处理器执行该执行指令时,所述终端设备执行权利要求1-11任一项所述的应用管理方法。
PCT/CN2020/071786 2019-02-02 2020-01-13 应用管理方法、装置及设备 WO2020156131A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20748090.6A EP3907608A4 (en) 2019-02-02 2020-01-13 APPLICATION MANAGEMENT METHOD, DEVICE AND INSTALLATION
US17/391,165 US20210357252A1 (en) 2019-02-02 2021-08-02 Application management method and apparatus, and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910106438.0A CN111522634B (zh) 2019-02-02 2019-02-02 应用管理方法、装置及设备
CN201910106438.0 2019-02-02

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/391,165 Continuation US20210357252A1 (en) 2019-02-02 2021-08-02 Application management method and apparatus, and device

Publications (1)

Publication Number Publication Date
WO2020156131A1 true WO2020156131A1 (zh) 2020-08-06

Family

ID=71841230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071786 WO2020156131A1 (zh) 2019-02-02 2020-01-13 应用管理方法、装置及设备

Country Status (4)

Country Link
US (1) US20210357252A1 (zh)
EP (1) EP3907608A4 (zh)
CN (1) CN111522634B (zh)
WO (1) WO2020156131A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653615A (zh) * 2020-12-16 2021-04-13 努比亚技术有限公司 即时通信应用的管控方法、终端以及计算机可读介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256119A (zh) * 2019-07-02 2021-01-22 中兴通讯股份有限公司 应用程序冷冻控制方法、装置、终端及可读存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159776A (zh) * 2015-08-03 2015-12-16 中科创达软件股份有限公司 进程处理方法及装置
CN106201674A (zh) * 2016-06-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 解冻方法、解冻装置和终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8621494B2 (en) * 2011-09-12 2013-12-31 Microsoft Corporation Managing processes within suspend states and execution states
US9336068B2 (en) * 2013-06-07 2016-05-10 Apple Inc. Throttling of application access to resources
KR102653582B1 (ko) * 2016-03-18 2024-04-03 삼성전자 주식회사 전자장치 및 그의 프로세스 재개 방법
CN106569832A (zh) * 2016-11-10 2017-04-19 北京金山安全软件有限公司 应用程序的管理方法、装置及终端
CN106959857B (zh) * 2017-03-29 2020-05-26 联想(北京)有限公司 一种电子设备的应用控制方法和装置
CN109144232B (zh) * 2018-08-01 2020-12-01 Oppo广东移动通信有限公司 进程处理方法和装置、电子设备、计算机可读存储介质

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159776A (zh) * 2015-08-03 2015-12-16 中科创达软件股份有限公司 进程处理方法及装置
CN106201674A (zh) * 2016-06-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 解冻方法、解冻装置和终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3907608A4

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112653615A (zh) * 2020-12-16 2021-04-13 努比亚技术有限公司 即时通信应用的管控方法、终端以及计算机可读介质

Also Published As

Publication number Publication date
EP3907608A1 (en) 2021-11-10
US20210357252A1 (en) 2021-11-18
CN111522634A (zh) 2020-08-11
EP3907608A4 (en) 2022-03-02
CN111522634B (zh) 2024-04-12

Similar Documents

Publication Publication Date Title
US10455509B2 (en) Energy efficient data handling for mobile devices
WO2020156131A1 (zh) 应用管理方法、装置及设备
CN110727697B (zh) 数据的处理方法和装置、存储介质、电子装置
CN113485822A (zh) 内存管理方法、***、客户端、服务器及存储介质
CN105159776A (zh) 进程处理方法及装置
EP3544344B1 (en) Method, user equipment and computer readable storage medium for switching the operation mode of a user equipment between carrier aggregation (ca) and non-ca operation modes
US9684536B2 (en) Scheduling method and scheduling system
CN111478981A (zh) 一种网元确定方法和装置
WO2020228289A1 (zh) 日志获取方法、装置、终端及存储介质
EP3926467A1 (en) Application control method and apparatus, terminal, and computer-readable storage medium
CN111190854A (zh) 通信数据处理方法、装置、设备、***和存储介质
WO2019137173A1 (zh) 资源管理方法、移动终端及计算机可读存储介质
CN106851015B (zh) 调整广播消息队列的方法、装置及终端
CN116133076A (zh) 由客户端装置执行的方法、客户端装置及可读设备
CN112383585A (zh) 消息处理***、方法及电子设备
CN109992399B (zh) 资源管理方法、装置、移动终端及计算机可读存储介质
CN112788585B (zh) 一种5g核心网中nf切换方法、装置及存储介质
CN111669831B (zh) 一种资源分配方法及装置
CN108011860B (zh) 一种处理广播消息的方法、装置及终端
CN112445606B (zh) 内存回收方法及装置
WO2020135485A1 (zh) 一种结果获取方法、装置及设备
CN110597643A (zh) 核间通信方法、处理器以及电子设备
CN114402313A (zh) 标签更新方法、装置、电子设备及存储介质
CN111629054B (zh) 消息处理方法、装置、***、电子设备及可读存储介质
CN111090627B (zh) 基于池化的日志存储方法、装置、计算机设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20748090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020748090

Country of ref document: EP

Effective date: 20210803