WO2016188285A1 - 一种终端应用的进程管理方法及装置 - Google Patents

一种终端应用的进程管理方法及装置 Download PDF

Info

Publication number
WO2016188285A1
WO2016188285A1 PCT/CN2016/080141 CN2016080141W WO2016188285A1 WO 2016188285 A1 WO2016188285 A1 WO 2016188285A1 CN 2016080141 W CN2016080141 W CN 2016080141W WO 2016188285 A1 WO2016188285 A1 WO 2016188285A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal application
type
terminal
attribute information
detecting
Prior art date
Application number
PCT/CN2016/080141
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 MYPI2018700034A priority Critical patent/MY188875A/en
Publication of WO2016188285A1 publication Critical patent/WO2016188285A1/zh
Priority to US15/625,701 priority patent/US10474507B2/en

Links

Classifications

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

Definitions

  • the present invention belongs to the field of communications technologies, and in particular, to a process management method and apparatus for a terminal application.
  • some existing methods include: upgrading the mobile phone hardware and software, or uninstalling the terminal application on the mobile phone, or using system management software (such as mobile phone housekeeper, mobile guard, etc.) to clean the mobile phone storage space, or use
  • system management software terminates the process of the terminal application and so on.
  • the mobile phone housekeeper provides a one-click acceleration function, which can release the mobile phone memory by terminating the process of some terminal applications, so as to achieve a smoother operation of the entire mobile phone.
  • the embodiment of the present invention provides the following technical solutions:
  • a process management method for a terminal application including:
  • the first type of terminal application is a preset terminal application that needs priority acceleration
  • the detection result indicates that the first type of terminal application is triggered to be started, acquiring attribute information of the second type of terminal application, where the second type of terminal application is another terminal application currently running;
  • the embodiment of the present invention further provides the following technical solutions:
  • a process management device for a terminal application comprising:
  • the first detecting module is configured to detect the first type of terminal application, and obtain the detection result, where the first type of terminal application is a preset terminal application that needs priority acceleration;
  • An information acquiring module configured to acquire attribute information of a second type of terminal application, where the second type of terminal application is another terminal application currently running, if the detection result indicates that the first type of terminal application is triggered to be started;
  • the process end module is configured to end the process of the second type of terminal application according to the attribute information of the second type of terminal application.
  • the embodiment of the present invention further provides the following technical solutions:
  • a storage medium having stored therein processor-executable instructions, wherein the processor-executable instructions are for causing a processor to:
  • the first type of terminal application is a preset terminal application that needs priority acceleration
  • the detection result indicates that the first type of terminal application is triggered to be started, acquiring attribute information of the second type of terminal application, where the second type of terminal application is another terminal application currently running;
  • the first type terminal application that needs to be preferentially accelerated is detected in advance; if it is detected that the first type of terminal application is currently triggered to be started, the user may need to be triggered to be currently running.
  • the first type of terminal application that is started needs to end the process of the corresponding terminal application according to the attribute information of other terminal applications that are currently running, so as to ensure that the first type of terminal application that needs to be run runs smoothly and does not get stuck.
  • the operation of the terminal application acceleration is simplified, and the acceleration efficiency of the terminal application is improved.
  • FIG. 1 is a schematic flowchart of a process management method of a terminal application according to a first embodiment of the present invention
  • FIG. 2a is a schematic flowchart of a process management method of a terminal application according to a second embodiment of the present invention
  • FIGS. 2b to 2h are schematic diagrams of terminal interfaces in a process management method for a terminal application according to a second embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a process management apparatus of a terminal application according to a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a process management apparatus of a terminal application according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention.
  • the principles of the present invention operate using many other general purpose or special purpose computing, communication environments, or configurations.
  • Examples of well-known computing systems, environments, and configurations suitable for use with the present invention may include, but are not limited to, hand-held phones, personal computers, servers, multi-processor systems, microcomputer-based systems, mainframe computers, and A distributed computing environment, including any of the above systems or devices.
  • module as used herein may be taken to mean a software object that is executed on the computing system.
  • the different components, modules, engines, and services described herein can be considered as implementation objects on the computing system.
  • the apparatus and method described herein are preferably implemented in software, and may of course be implemented in hardware, all of which are within the scope of the present invention.
  • the order of the following embodiments is not limited by the embodiment number, that is, the non-optimal embodiment of the first embodiment may be set according to actual needs.
  • the first embodiment may be implemented as the second preferred embodiment.
  • the third embodiment is implemented as a first preferred embodiment, and the like, and the descriptions of the first, second, and the like are merely for convenience of expression.
  • the embodiment of the invention provides a method and a device for managing a process of a terminal application, and the method and device for managing the process of the terminal application can be integrated and run on a terminal, and the terminal can be a notebook computer or a tablet PC (Personal) Computers, mobile phones, and the like, which have a storage unit and are equipped with a microprocessor and have a computing capability, are not specifically limited in the present invention.
  • the terminal can be a notebook computer or a tablet PC (Personal) Computers, mobile phones, and the like, which have a storage unit and are equipped with a microprocessor and have a computing capability, are not specifically limited in the present invention.
  • the terminal detects the first type of terminal application that needs to be preferentially accelerated. If the detection result indicates that the first type of terminal application is triggered to be started, for example, the user activates the first type of terminal application by clicking or sliding, the user can be considered as the current To run the first type of terminal application that is triggered to be started, you need to end the process of other corresponding terminal applications according to the attribute information of the terminal application that the terminal is currently running to ensure that the first type of terminal application that needs to be run runs smoothly. Carton, and the process of automatically detecting the end of the related process also simplifies the operation of the terminal application acceleration, and improves the acceleration efficiency of the terminal application.
  • a process management method for the terminal application includes: detecting the first type of terminal application, and obtaining the detection result, and the first type of terminal application is preset and needs priority acceleration.
  • the terminal application if the detection result indicates that the first type of terminal application is triggered to start, acquiring the attribute information of the second type of terminal application, the second type of terminal application is the other terminal application currently running; according to the second type of terminal application
  • the attribute information ends the process of the second type of terminal application.
  • FIG. 1 is a schematic flowchart of a process management method of a terminal application according to a first embodiment of the present invention. The method includes:
  • step S101 the first type of terminal application is detected, and the detection result is obtained.
  • the first type of terminal application is a preset terminal application that needs priority acceleration
  • the first type of terminal application may be set according to the user's needs or usage habits, for example, the terminal application may be used frequently; or the first type of terminal application may be automatically set according to the attribute information of the first type of terminal application.
  • the terminal application of the same application type may be determined according to the analysis of the package name information of the first type of terminal application.
  • step S102 if the detection result indicates that the first type of terminal application is triggered to be started, the attribute information of the second type of terminal application is acquired.
  • the second type of terminal application is the other terminal application that is currently running; the attribute information of the second type of terminal application may specifically include the full name or short name of the second type of terminal application, and the information indicating the terminal application identity.
  • the first type of terminal application that is triggered to be started may be determined to be running; the second type of terminal application in this embodiment refers to, Among the terminal applications currently running, terminal applications other than the first type of terminal applications.
  • step S103 the process of the second type of terminal application is ended according to the attribute information of the second type of terminal application.
  • the first type of terminal application is triggered by the user clicking or sliding, the user may need to run the terminal application, and the terminal needs to end other ongoing terminals according to the attribute information of the terminal application currently running by the terminal.
  • the process of the application ensures that the terminal application (ie, the first type of terminal application) needs to run smoothly and does not get stuck.
  • a process refers to an instance of a running program.
  • a process is a running activity of a program with a certain independent function on a certain data set. It is the basic unit of dynamic execution of the operating system. In the traditional operating system, the process is both a basic allocation unit and a basic execution unit.
  • the “end process of the corresponding terminal application” is also the “cleanup process”, which refers to terminating the process of the running application on the mobile phone; for example, on the Android mobile phone, the system provides an interface for cleaning up the process, and directly calls
  • the system interface can be used, and will not be described here.
  • the method may further include:
  • the first type of terminal application set includes at least one of the first type of terminal applications
  • the performance of the first type of terminal application collection may be similar to the folder on the mobile phone desktop, and if the folder is a game box, it contains a plurality of games.
  • the terminal application needs to end the process of the corresponding terminal application according to the attribute information of the terminal application currently running by the terminal, so as to ensure that the terminal application that needs to be run runs smoothly and does not jam; in the determination that there is no preset first class in the local area In the case of a terminal application set, the first type of terminal application is directly detected.
  • the process management method of the terminal application detects the first type of terminal application that needs to be preferentially accelerated in advance; and if it is detected that the first type of terminal application is currently triggered, the user can be considered as a user. If the first type of terminal application that is triggered to be started is required to be run, the process of the other terminal application needs to be terminated according to the attribute information of other terminal applications that are currently running, so as to ensure that the first type of terminal application that needs to be run runs smoothly. Not stuck. Compared with the existing method that requires the user to manually trigger acceleration, the operation of the terminal application acceleration is simplified, and the acceleration efficiency of the terminal application is improved.
  • the terminal automatically cleans up the process to achieve the effect of the first type of terminal application acceleration that needs to be opened, and may include three parts: (1) an automatic cleaning process when the first type of terminal application set is opened; (2) from the first In the terminal application set, the first type of terminal application is automatically cleaned up when the terminal application is started; (3) the first type of terminal application is started, and the process is cleaned during the running process, and the following analysis is respectively performed.
  • FIG. 2a is a schematic flowchart diagram of a process management method for a terminal application according to a second embodiment of the present invention. The method includes:
  • step S201 when it is determined that the preset first type terminal application set exists locally, the terminal detects the first type terminal application set.
  • step S202 if the terminal detects that the terminal application set is currently triggered to be opened, the terminal acquires attribute information of the currently running terminal application.
  • step S203 the terminal ends the process of the corresponding terminal application according to the attribute information of the currently running terminal application.
  • the step S201 to the step S203 may be specifically: automatically cleaning the process when the first type of terminal application set is opened.
  • the first type of terminal application set includes at least one first type of terminal application, and the first type of terminal application is a preset terminal application that needs priority acceleration.
  • the first type of terminal application set in this embodiment may be specifically a “game box”, which is a functional module of the mobile phone housekeeper, which is mainly used for identifying and aggregating the game on the user's mobile phone to a centralized game.
  • the entrance is easy for the user to operate.
  • the mobile phone acceleration mode in the mobile phone housekeeper can be turned on first, as shown in FIG. 2b, which is the main page of the mobile phone housekeeper, when the terminal receives the operation of the user clicking the “software management” control.
  • FIG. 2b which is the main page of the mobile phone housekeeper
  • the terminal receives the operation of the user clicking the “software management” control.
  • the command can be switched to the software management interface as shown in FIG. 2c; in the interface, when the terminal receives the operation instruction of the user clicking the “software download” control, the terminal can jump to the software download interface, according to the user selection.
  • the software type displays the corresponding software download interface, as shown in FIG.
  • FIG. 2d which is a software game interface; in the interface, when the terminal receives an operation instruction of the user clicking an acceleration control (such as a middle circular button), the terminal is You can jump directly to the game acceleration page, as shown in Figure 2e; it can be understood that the game displayed on the page (such as 2048, daily running, etc.) is the game that the mobile phone has downloaded and installed, and the collection of games displayed on the page. That is, the first type of terminal application set in this embodiment.
  • an acceleration control such as a middle circular button
  • an "add game box” control is set, and when the terminal receives an operation instruction that the user clicks "add game box", the terminal can manually create a desktop on the game acceleration homepage.
  • the game box as shown in Figure 2f, is a successful illustration of the game box creation. Referring to FIG. 2g together, the game box on the mobile phone desktop is closed, which is shaped like a folder on the mobile phone desktop, and the game box contains a plurality of game applications.
  • the desktop game box can be automatically created by the mobile phone housekeeper.
  • the creation process can be implemented by referring to the prior art, and details are not described herein again.
  • the mobile phone detects the game box on the desktop in real time, and when the user currently needs to run the game application in the “game box”, directly click on the “game”.
  • the box is OK.
  • the terminal may be considered to detect that the game box is currently triggered to be opened, as shown in FIG. 2f, which is a style when the game box is opened, and includes the user’s mobile phone. Installed games. It can be understood that the game box is opened, and it is considered that the next operation of the user is likely to be running the game application in the game box, and the mobile phone acquires the attribute information of the currently running terminal application, and according to the attribute information, the corresponding information is cleaned up. The process of the terminal application, thus ensuring that the game that needs to run runs smoothly and does not get stuck.
  • the cleaning process refers to terminating the process of the running application on the mobile phone; for example, on the Android mobile phone, the system provides an interface for cleaning the process, and the mobile phone directly calls the system interface.
  • an acceleration is performed immediately, that is, the process of all terminal applications in the system is cleared. Because the user opens the game box, the next step is probably to run the game in the box. Then, with this acceleration, the state of the phone can be adjusted as optimal as possible, and the user will be very smooth when starting the game. The effect of this acceleration will be visually displayed to the user, such as how much memory the phone has available, whether it has reached the optimal value, and so on.
  • step S204 the first type of terminal application is detected, and if the detection result indicates that the first type of terminal application is triggered to be started, the attribute information of the second type of terminal application is acquired.
  • the second type of terminal application is another terminal application that is currently running.
  • step S205 the process of the second type of terminal application is ended according to the attribute information of the second type of terminal application.
  • the step S204 and the step S205 may be specifically: automatically cleaning when the first type of terminal application is started from the terminal application folder.
  • the game in the game box is detected in real time, when it is detected that any game in the game box is currently triggered to start (such as triggering the game by user click or slide form) "Happy Landlord” "), it can be considered that the user needs to run "Happy Landlord” to obtain the attribute information of the terminal application currently running by the terminal, and according to the information, the process of the corresponding terminal application except "Happy Landlord” will be cleaned up to ensure The "Happy Landlord” game runs smoothly and doesn't get stuck.
  • step S206 when it is determined that the first type of terminal application is currently running, acquiring attribute information of the second type of terminal application.
  • step S207a the process of the second type of terminal application is ended according to the attribute information of the second type of terminal application.
  • the step S206 and the step S207a may be specifically: cleaning the process during the running of the first type of terminal application.
  • some terminal applications may be secretly started in the background, causing the game to be stuck. At this time, the process of the terminal application needs to be detected again.
  • the method for detecting whether the first type of terminal application runs is stuck may be further determined by using the following methods, including:
  • the mobile phone can also provide a shortcut entry (such as a floating window, etc.), allowing the user to manually clean up the process during the game, and accelerate at any time and place, as follows:
  • a shortcut entry such as a floating window, etc.
  • step S207b the operation command input by the user is received through the preset acceleration control, and the process of the second type terminal application is ended according to the attribute information of the second type terminal application under the trigger of the operation instruction.
  • the mobile phone can also obtain the terminal application currently running by the user by means of the application terminal application monitoring. If the terminal application is a game in the game box, the user can The cleaning and acceleration is performed immediately.
  • the terminal application is a game in the game box, the user can The cleaning and acceleration is performed immediately.
  • Any terminal application can be summarized into a collection such as a game box, and similar acceleration operations can be performed by opening the collection or the terminal application in the collection.
  • the first type of terminal application set is preset, and the first type of terminal application set includes multiple first type terminal applications;
  • the application set is detected; if it is detected that the first type of terminal application set is currently triggered to be opened, it can be considered that the next operation of the user is likely to be to run the first type of terminal application in the set, and then according to the terminal currently running by the terminal.
  • the attribute information of the application ends the process of the corresponding terminal application; afterwards, when the first type of terminal application is triggered to start, the process of the other terminal application needs to be cleaned; finally, during the running process of the first type of terminal application, the other The terminal application process detects and cleans up, and through three process cleanups, ensures that the first type of terminal application that needs to run runs smoothly and does not get stuck.
  • the operation of the terminal application acceleration is simplified, and the acceleration efficiency of the terminal application is improved.
  • the embodiment of the present invention further provides an apparatus based on the process management method of the terminal application.
  • the meaning of the noun is the same as the method of the process management of the terminal application. For specific implementation details, refer to the description in the method embodiment.
  • FIG. 3 is a schematic structural diagram of a process management apparatus for a terminal application according to an embodiment of the present invention, which may include a first detection module 301, an information acquisition module 302, and a process end module 303.
  • the first detecting module 301 is configured to detect the first type of terminal application, and obtain the detection result, where the first type of terminal application is a preset terminal application that needs to be preferentially accelerated.
  • the first type of terminal application may be set according to the user's needs or usage habits, for example, the terminal application may be used frequently; or the first type of terminal application may be automatically set according to the attribute information of the first type of terminal application.
  • the terminal application of the same application type may be determined according to the analysis of the package name information of the first type of terminal application.
  • the information obtaining module 302 is configured to: if the detection result indicates that the first type of terminal application is triggered to be started, acquire attribute information of a second type of terminal application, where the second type of terminal application is another terminal application currently running. .
  • the attribute information of the terminal application of the second type may specifically include information indicating the identity of the terminal application, such as the full name or short name of the second type of terminal application.
  • the first type of terminal application that is triggered to be started may be determined to be running; the second type of terminal application in this embodiment refers to, Among the terminal applications currently running, terminal applications other than the first type of terminal applications.
  • the process end module is configured to end the process of the second type of terminal application according to the attribute information of the second type of terminal application.
  • the first type of terminal application is triggered by the user clicking or sliding, the user may need to run the terminal application, and the terminal needs to end other ongoing terminals according to the attribute information of the terminal application currently running by the terminal.
  • the process of the application ensures that the terminal application (ie, the first type of terminal application) needs to run smoothly and does not get stuck.
  • a process refers to an instance of a running program, and is a running activity of a program with a certain independent function on a certain data set. It is the basic unit of dynamic execution of the operating system. In the traditional operating system, the process is both a basic allocation unit and a basic execution unit.
  • the “end process of the corresponding terminal application” is also the “cleanup process”, which refers to terminating the process of the running application on the mobile phone; for example, on the Android mobile phone, the system provides an interface for cleaning up the process, and directly calls
  • the system interface can be used, and will not be described here.
  • the process management device of the terminal application detects the first type of terminal application that needs to be preferentially accelerated in advance; and if it is detected that the first type of terminal application is currently triggered, the user can be considered as a user. If the first type of terminal application that is triggered to be started is required to be run, the process of the other terminal application needs to be terminated according to the attribute information of other terminal applications that are currently running, so as to ensure that the first type of terminal application that needs to be run runs smoothly. Not stuck. Compared with the existing method that requires the user to manually trigger acceleration, the operation of the terminal application acceleration is simplified, and the acceleration efficiency of the terminal application is improved.
  • FIG. 4 is a schematic structural diagram of a process management apparatus of a terminal application according to an embodiment of the present invention.
  • the process management apparatus of the terminal application may further include:
  • (1) determining module 304 configured to determine whether there is a preset first type of terminal application set locally, where the first type of terminal application set includes at least one of the first type of terminal applications;
  • the first type of terminal application set includes at least one of the first type of terminal applications
  • the performance of the first type of terminal application collection may be similar to the folder on the mobile phone desktop, and if the folder is a game box, it contains a plurality of games.
  • the first processing module 305 is configured to: if yes, detect the first type of terminal application set, and if it is detected that the terminal application set is currently triggered to be opened, acquire an attribute of the currently running terminal application. And the step of ending the process of the corresponding terminal application, and triggering the step of detecting, by the first detecting module 301, the first type of terminal application, according to the attribute information of the currently running terminal application;
  • the second processing module 306 is configured to trigger the step of detecting, by the first detecting module 301, the first type of terminal application, if not present.
  • the terminal application needs to end the process of the corresponding terminal application according to the attribute information of the terminal application currently running by the terminal, that is, automatically clear the process when the first type of terminal application set is opened, so as to ensure that the terminal application that needs to be run runs smoothly, In the case where it is determined that there is no preset first type of terminal application set in the local area, the first type of terminal application is directly detected.
  • the first type of terminal application in the first type of terminal application set can be detected in real time, and the first type in the first type of terminal application set is detected.
  • the terminal application is currently triggered to be started, for example, the first type of terminal application is triggered by the user clicking or sliding, and the user needs to run the first type of terminal application to obtain the attribute information of the terminal application currently running by the terminal, and according to the The information will clean up the processes of other running terminal applications to ensure that the first type of terminal applications need to run smoothly and not run out.
  • the information obtaining module 302 may be further configured to: when determining that the first type of terminal application is currently running, acquire attribute information of the second type of terminal application, so as to perform the process of the other terminal application again. Check and clean again.
  • the information obtaining module 302 can include:
  • a card detection unit configured to detect whether the first type of terminal application runs or not when it is determined that the first type of terminal application is currently running
  • the card detection unit may further determine whether a jam occurs in the following manner, and specifically includes:
  • a first type determining subunit configured to: when it is determined that the number of screen frames is less than a preset threshold, determining that the first type of terminal application runs in a jam;
  • a second type determining subunit configured to determine that the first type of terminal application operation does not occur when determining that the number of screen frames is greater than or equal to the preset threshold.
  • an obtaining unit configured to acquire attribute information of the second type of terminal application when it is determined that the first type of terminal application runs in a stuck state.
  • the terminal can also provide a shortcut entry (such as a floating window, etc.), so that the user can manually perform process cleaning during the operation of the first type of terminal application, and accelerate at any time and any place. Therefore, the device may further include:
  • a receiving module configured to receive an operation instruction input by a user by using a preset acceleration control; and the process ending module 303 is further configured to: according to the operation instruction, trigger an attribute according to the second type terminal application Information, ending the process of the second type of terminal application.
  • each of the above module units may be implemented as a separate entity, or may be any combination, and implemented as the same or several entities.
  • each of the above module units refer to the foregoing method, the second type of embodiment, This will not be repeated here.
  • the process management device of the terminal application pre-sets a first type of terminal application set, where the first type of terminal application set includes multiple first type terminal applications; and the real-time pair of first type terminals The application set is detected; if it is detected that the first type of terminal application set is currently triggered to be opened, it can be considered that the next operation of the user is likely to be to run the first type of terminal application in the set, and then according to the terminal currently running by the terminal.
  • the attribute information of the application ends the process of the corresponding terminal application; afterwards, when the first type of terminal application is triggered to start, the process of the other terminal application needs to be cleaned; finally, during the running process of the first type of terminal application, the other The terminal application process detects and cleans up, and through three process cleanups, ensures that the first type of terminal application that needs to run runs smoothly and does not get stuck.
  • the operation of the terminal application acceleration is simplified, and the acceleration efficiency of the terminal application is improved.
  • the embodiment of the invention further provides a terminal.
  • the terminal may include radio frequency (RF, Radio).
  • Circuit 501 memory 502 including one or more computer readable storage media, input unit 503, display unit 504, sensor 505, audio circuit 506, wireless fidelity (WiFi, Wireless)
  • the Fidelity module 507 includes a processor 508 having one or more processing cores, and a power supply 509 and the like. It will be understood by those skilled in the art that the terminal structure shown in FIG. 5 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 501 can be used for transmitting and receiving information or during a call, and receiving and transmitting the signal. Specifically, after receiving the downlink information of the base station, the downlink information is processed by one or more processors 508. In addition, the data related to the uplink is sent to the base station. .
  • RF circuit 501 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, Subscriber Identity Module) Card, Transceiver, Coupler, Low Noise Amplifier (LNA, Low Noise) Amplifier), duplexer, etc.
  • SIM Subscriber identity module
  • LNA Low Noise Amplifier
  • the RF circuit 501 can also communicate with the network and other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to a global mobile communication system (GSM, Global System of Mobile communication), General Packet Radio Service (GPRS, General Packet Radio) Service), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA, Wideband Code) Division Multiple Access), Long Term Evolution (LTE), e-mail, short message service (SMS, Short) Messaging Service) and so on.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short message service
  • the memory 502 can be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by running software programs and modules stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.).
  • memory 502 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 502 may also include a memory controller to provide access to memory 502 by processor 508 and input unit 503.
  • the input unit 503 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 503 can include a touch-sensitive surface as well as other input devices.
  • Touch-sensitive surfaces also known as touch screens or trackpads, collect touch operations on or near the user (such as the user using a finger, stylus, etc., any suitable object or accessory on a touch-sensitive surface or touch-sensitive Operation near the surface), and drive the corresponding connecting device according to a preset program.
  • the touch sensitive surface may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 508 is provided and can receive commands from the processor 508 and execute them.
  • touch-sensitive surfaces can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 503 can also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 504 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 504 can include a display panel, and optionally, a liquid crystal display (LCD, Liquid) can be used. Crystal Display), Organic Light-Emitting (OLED) Diode) and other forms to configure the display panel.
  • the touch-sensitive surface can cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 508 to determine the type of the touch event, and then the processor 508 displays the type according to the type of the touch event. A corresponding visual output is provided on the panel.
  • the touch-sensitive surface and display panel are implemented as two separate components to perform input and input functions, in some embodiments, the touch-sensitive surface can be integrated with the display panel to implement input and output functions.
  • the terminal may also include at least one type of sensor 505, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may close the display panel and/or the backlight when the terminal moves to the ear.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.;
  • Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the terminal are not described herein.
  • the audio circuit 506, the speaker, and the microphone provide an audio interface between the user and the terminal.
  • the audio circuit 506 can transmit the converted electrical signal of the audio data to the speaker, and convert it into a sound signal output by the speaker; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted.
  • the audio data is then processed by the audio data output processor 508, sent via RF circuitry 501 to, for example, another terminal, or the audio data is output to memory 502 for further processing.
  • the audio circuit 506 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
  • WiFi is a short-range wireless transmission technology.
  • the terminal can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 507. It provides wireless broadband Internet access for users.
  • FIG. 5 shows the WiFi module 507, it can be understood that it does not belong to the necessary configuration of the terminal, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 508 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in memory 502, and invoking data stored in memory 502, executing The various functions of the terminal and processing data to monitor the mobile phone as a whole.
  • the processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 508.
  • the terminal also includes a power source 509 (such as a battery) for powering various components.
  • the power source can be logically coupled to the processor 508 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 509 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 508 in the terminal loads the executable file corresponding to the process of one or more applications into the memory 502 according to the following instruction, and is stored in the memory by the processor 508.
  • the application in 502 to implement various functions:
  • the first type of terminal application is detected, and the detection result is obtained.
  • the first type of terminal application is a preset terminal application that needs to be preferentially accelerated. If the detection result indicates that the first type of terminal application is triggered to be started, the acquiring is performed.
  • the attribute information of the second type of terminal application, the second type of terminal application is a current terminal application that is currently running; and the process of the second type of terminal application is ended according to the attribute information of the second type of terminal application.
  • the processor 508 is further configured to: after ending the process of the second type of terminal application, when determining that the first type of terminal application is currently running, acquiring attribute information of the second type of terminal application; Ending the process of the second type of terminal application according to the attribute information of the second type of terminal application.
  • the processor 508 is further configured to: after ending the process of the second type of terminal application, when determining that the first type of terminal application is currently running, acquiring attribute information of the second type of terminal application; Receiving, by the preset acceleration control, an operation instruction input by the user; and triggering, according to the attribute information of the second type terminal application, the process of the second type terminal application, triggered by the operation instruction.
  • the processor 508 is further configured to: When it is determined that the first type of terminal application is currently running, detecting whether the first type of terminal application runs or not; and when determining that the first type of terminal application is running, obtaining a second type of terminal application Attribute information.
  • the processor 508 is further configured to: The number of screen frames is detected; when it is determined that the number of screen frames is less than a preset threshold, it is determined that the first type of terminal application runs to be stuck; when it is determined that the number of screen frames is greater than or equal to the preset threshold When it is determined, the first type of terminal application operation does not appear to be stuck.
  • the processor 508 is further configured to: Detecting the first type of terminal application, and determining whether there is a preset first type of terminal application set locally, and the first type of terminal application set includes at least one of the first type of terminal application; if present, And detecting, by the terminal application set, the attribute information of the currently running terminal application, according to the attribute information of the currently running terminal application, if it is detected that the terminal application set is currently triggered to be opened. Ending the process of the corresponding terminal application, and performing the step of detecting the first type of terminal application; if not, performing the step of detecting the first type of terminal application.
  • the first type of terminal application that needs to be preferentially accelerated is detected in the terminal; if it is detected that the first type of terminal application is currently triggered, the user is required to run the current
  • the first type of terminal application that is triggered to be started needs to end the process of other corresponding terminal applications according to the attribute information of other terminal applications that are currently running, so as to ensure that the first type of terminal application that needs to be run runs smoothly and does not get stuck.
  • the operation of the terminal application acceleration is simplified, and the acceleration efficiency of the terminal application is improved.
  • the process management device of the terminal application provided by the embodiment of the present invention, such as a computer, a tablet computer, a mobile phone with a touch function, etc., the process management device of the terminal application and the process management of the terminal application in the above embodiment
  • the method belongs to the same concept, and any method provided in the embodiment of the process management method of the terminal application may be run on the process management device of the terminal application, and the specific implementation process is described in the embodiment of the process management method of the terminal application. , will not repeat them here.
  • the process management method of the terminal application of the present invention a general tester in the field can understand all or part of the process of implementing the process management method of the terminal application according to the embodiment of the present invention, which can be obtained by a computer program.
  • the computer program may be stored in a computer readable storage medium, such as in a memory of the terminal, and executed by at least one processor in the terminal, and may include, for example, during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read) Only Memory), random access memory (RAM, Random Access Memory), etc.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种终端应用的进程管理方法,包括: 对第一类终端应用进行检测,第一类终端应用为预设的需要优先加速的终端应用;若第一类终端应用被触发启动,则获取第二类终端应用的属性信息,第二类终端应用为当前正在运行的其他终端应用,根据第二类终端应用的属性信息,结束第二类终端应用的进程;本发明实施例还提供一种终端应用的进程管理装置。

Description

一种终端应用的进程管理方法及装置
本申请要求于2015年05月22日提交中国专利局、申请号为201510267314.2、发明名称为“一种终端应用的进程管理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明属于通信技术领域,尤其涉及一种终端应用的进程管理方法及装置。
背景技术
随着互联网技术的迅速发展,互联网上可供用户生活学习、休闲娱乐的资源也越来越多,同时用户对这些资源的使用要求也越来越高;如以手机游戏为例,目前市面上大多数游戏对手机软硬件性能都有较高的要求,用户在手机上玩游戏时,会经常出现卡顿的状况,游戏玩起来运行不流畅,从而会影响用户体验。
技术问题
为了解决游戏卡顿的问题,当前已有的一些方法包括:升级手机软硬件、或者卸载手机上的终端应用、或者使用系统管理软件(例如手机管家、手机卫士等)清理手机存储空间、或者使用系统管理软件终结终端应用的进程等等。例如,手机管家提供了一键加速功能,可通过终结部分终端应用的进程来释放手机内存,达到整个手机运行更流畅的效果。
由于现有解决游戏卡顿的方法大部分都需要用户手动触发进行,因此,操作较为繁琐,加速效率不高。
技术解决方案
本发明的目的在于提供一种终端应用的进程管理方法及装置,旨在简化终端应用加速的操作,提高终端应用的加速效率。
为解决上述技术问题,本发明实施例提供以下技术方案:
一种终端应用的进程管理方法,其中包括:
对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;
若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;
根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
为解决上述技术问题,本发明实施例还提供以下技术方案:
一种终端应用的进程管理装置,其中包括:
第一检测模块,用于对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;
信息获取模块,用于若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;
进程结束模块,用于根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
为解决上述技术问题,本发明实施例还提供以下技术方案:
一种存储介质,其内存储有处理器可执行指令,其中该处理器可执行指令用于让处理器完成以下操作:
对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;
若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;
根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
有益效果
相对于现有技术,本实施例,对预先设置的需要优先加速的第一类终端应用进行检测;如果检测出该第一类终端应用当前被触发启动,即可认为用户当前需要运行该被触发启动的第一类终端应用,则需要根据当前正在运行的其他终端应用的属性信息结束对应的终端应用的进程,以保证需要运行的第一类终端应用运行起来流畅,不卡顿。相对于现有需要用户手动触发加速的方式,简化终端应用加速的操作,提高终端应用的加速效率。
附图说明
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其它有益效果显而易见。
图1是本发明第一实施例提供的终端应用的进程管理方法的流程示意图;
图2a为本发明第二实施例提供的终端应用的进程管理方法的流程示意图;
图2b至图2h为本发明第二实施例提供的终端应用的进程管理方法中的终端界面示意图;
图3为本发明第三实施例提供的终端应用的进程管理装置的结构示意图;
图4为本发明第四实施例提供的终端应用的进程管理装置的结构示意图;
图5为本发明第五实施例提供的终端的结构示意图。
本发明的最佳实施方式
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本发明的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本发明的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。
本文所使用的术语「模块」可看做为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看做为在该运算系统上的实施对象。而本文所述的装置及方法优选的以软件的方式进行实施,当然也可在硬件上进行实施,均在本发明保护范围之内。
应当理解是,以下实施例的顺序不受实施例序号限制,即第一实施例非最佳实施例,可以根据实际需求设定,比如,可以将第一实施例作为第二优选实施例实施,第三实施例作为第一优选实施例实施等等,第一、第二之类的描述仅为便于表述使用。
本发明实施例提供一种终端应用的进程管理方法及装置,该终端应用的进程管理方法及装置可集成在一终端上运行,所述终端可以为笔记型计算机、平板PC(Personal Computer)、手机等具备储存单元并安装有微处理器而具有运算能力的终端机构成,本发明对此不作具体限定。
该终端对需要优先加速的第一类终端应用进行检测,如果检测结果指示第一类终端应用被触发启动,例如,用户通过点击或滑动的方式启动该第一类终端应用,即可认为用户当前需要运行该被触发启动的第一类终端应用,则需要根据终端当前正在运行的终端应用的属性信息结束其他对应的终端应用的进程,以保证需要运行的第一类终端应用运行起来流畅,不卡顿,并且,自动检测结束相关进程的过程也简化终端应用加速的操作,提高终端应用的加速效率。
以下将分别进行详细说明。
第一实施例
在本实施例中,将从终端的角度进行描述;一种终端应用的进程管理方法,包括:对第一类终端应用进行检测,得到检测结果,第一类终端应用为预设的需要优先加速的终端应用;若检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,第二类终端应用为当前正在运行的其他终端应用;根据第二类终端应用的属性信息,结束第二类终端应用的进程。
请参阅图1,图1是本发明第一实施例提供的终端应用的进程管理方法的流程示意图。所述方法包括:
在步骤S101中,对第一类终端应用进行检测,得到检测结果。
其中,所述第一类终端应用为预设的需要优先加速的终端应用;
具体的,第一类终端应用可根据用户的需求或使用习惯进行设置,如可以是使用频率较为频繁的终端应用;或者是第一类终端应用可终端根据第一类终端应用的属性信息自动设置,如可以是根据对第一类终端应用的包名信息的分析,确定为同一应用类型的终端应用。
在步骤S102中,若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息。
其中,所述第二类终端应用为当前正在运行的其他终端应用;第二类终端应用的属性信息可具体包括第二类终端应用的全称或简称等指示终端应用身份标识的信息。
可以理解的是,当检测出所述第一类终端应用被触发启动了,该被触发启动的第一类终端应用则可确定为正在运行;本实施例中的第二类终端应用是指,当前正在运行的终端应用中,除了第一类终端应用以外的终端应用。
在步骤S103中,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
例如,第一类终端应用通过用户点击或滑动的方式所触发打开,即可认为用户当前需要运行该终端应用,则终端需要根据终端当前正在运行的终端应用的属性信息结束其他的正在进行的终端应用(即第二类终端应用)的进程,以保证需要运行终端应用(即第一类终端应用)运行起来流畅,不卡顿。
可以理解的是,进程是指正在运行的程序的实例。广义地讲,进程是一个具有一定独立功能的程序关于某个数据集合的一次运行活动。它是操作系统动态执行的基本单元,在传统的操作系统中,进程既是基本的分配单元,也是基本的执行单元。
其中,“结束对应的终端应用的进程”也就是“清理进程”,是指将手机上正在运行的应用程序的进程终结掉;例如,在Android手机上,系统提供了清理进程的接口,直接调用系统接口即可,此处不再赘述。
优选的,在“对第一类终端应用进行检测”之前,还可以包括:
(1)确定本地是否存在预设的第一类终端应用集合;
其中所述第一类终端应用集合包含至少一个所述第一类终端应用;
比如,第一类终端应用集合的表现形态可类似手机桌面上的文件夹,若该文件夹为游戏盒子,则里面包含了多个游戏等。
(2)若存在,则对所述第一类终端应用集合进行检测,若检测出所述终端应用集合当前被触发打开,则获取当前正在运行的终端应用的属性信息,根据所述当前正在运行的终端应用的属性信息,结束对应的终端应用的进程,并执行对第一类终端应用进行检测的步骤;
(3)若不存在,则执行对第一类终端应用进行检测的步骤。
可具体的,在确定本地存在预设的第一类终端应用集合的情形下,如果检测出该集合当前被触发打开,即可认为用户下一步的操作很可能就是运行该集合里的第一类终端应用,则需要根据终端当前正在运行的终端应用的属性信息结束对应的终端应用的进程,以保证需要运行的终端应用运行起来流畅,不卡顿;在确定本地不存在预设的第一类终端应用集合的情形下,则直接对第一类终端应用进行检测。
由上述可知,本实施例提供的终端应用的进程管理方法,对预先设置的需要优先加速的第一类终端应用进行检测;如果检测出该第一类终端应用当前被触发启动,即可认为用户当前需要运行该被触发启动的第一类终端应用,则需要根据当前正在运行的其他终端应用的属性信息结束其他对应的终端应用的进程,以保证需要运行的第一类终端应用运行起来流畅,不卡顿。相对于现有需要用户手动触发加速的方式,简化终端应用加速的操作,提高终端应用的加速效率。
第二实施例
根据第一实施例所描述的方法,以下将举例作进一步详细说明。
本实施例中,终端自动清理进程以达到所需要开启的第一类终端应用加速的效果,可以包含三个部分:(1)打开第一类终端应用集合时自动清理进程;(2)从第一类终端应用集合中启动第一类终端应用时自动清理进程;(3)启动第一类终端应用后在其运行过程中清理进程,以下分别进行分析说明。
请参阅图2a,图2a为本发明第二实施例提供的终端应用的进程管理方法的流程示意图。所述方法包括:
在步骤S201中,在确定本地存在预设的第一类终端应用集合时,终端对所述第一类终端应用集合进行检测。
在步骤S202中,终端若检测出所述终端应用集合当前被触发打开,则获取当前正在运行的终端应用的属性信息。
在步骤S203中,终端根据所述当前正在运行的终端应用的属性信息,结束对应的终端应用的进程。
其中,所述步骤S201至步骤S203可具体为:在打开第一类终端应用集合时自动清理进程。
在该实施例中,第一类终端应用集合包含至少一个第一类终端应用,该第一类终端应用为预设的需要优先加速的终端应用。
优选的,该实施例中的第一类终端应用集合可具体为一“游戏盒子”,“游戏盒子”是手机管家的一个功能模块,主要用于识别、聚合用户手机上的游戏到一个集中的入口,便于用户操作。
以下对游戏盒子的创建进行说明:
首先,当用户需要对手机应用进程进行管理时,可先开启手机管家中的手机加速模式,如图2b所示,为手机管家的主页面,当终端接收到用户点击“软件管理”控件的操作指令时,可切换到如图2c所示的软件管理界面;在该界面中,当终端接收到用户点击“软件下载”控件的操作指令时,终端可跳转到软件下载的界面,根据用户选择的软件类型,显示相对应的软件下载界面,如图2d所示,为软件游戏界面;在该界面中,当终端接收到用户点击加速控件(如中部圆形按钮)的操作指令时,终端则可直接跳转到游戏加速的页面,如图2e所示;可以理解的是,该页面展示的游戏(如2048、天天酷跑等)为手机已经下载安装的游戏,该页面展示的游戏的集合也即为该实施例中的第一类终端应用集合。
其中,在如图2e所示的游戏加速的页面下方设置有“添加游戏盒子”控件,当终端接收到用户点击“添加游戏盒子”的操作指令时,终端即可完成在游戏加速主页手动创建桌面游戏盒子,如图2f所示,为游戏盒子创建成功示意。可一并参考图2g,为手机桌面上的游戏盒子关闭时的形态,它形如手机桌面上的一个文件夹,且游戏盒子中包含了多个游戏应用。
可以理解的是,在某些实施方式中,也可以通过手机管家自动创建桌面游戏盒子,其创建过程可参考现有技术进行实现,此处不再赘述。
图2g所示,在手机桌面上创建了“游戏盒子”之后,手机实时的对桌面上的游戏盒子进行检测,当用户当前需要运行该“游戏盒子”里的游戏应用时,直接点击该“游戏盒子”即可。
进一步的,若终端接收到用户点击“游戏盒子”的操作指令,则可认为终端检测出游戏盒子当前被触发打开,如图2f所示,为游戏盒子打开时的样式,它包含了用户手机上已安装的游戏。可理解的是,游戏盒子被打开可认为用户下一步的操作很可能就是运行该游戏盒子里的游戏应用,则手机获取当前正在运行的终端应用的属性信息,并根据该属性信息将清理对应的终端应用的进程,从而保证需要运行的游戏运行起来流畅,不卡顿。
其中清理进程指将手机上正在运行的应用程序的进程终结掉;例如,在Android手机上,系统提供了清理进程的接口,手机直接调用系统接口即可。
在该实施例中,在用户打开游戏盒子时,立即进行一次加速,即清理掉系统中所有终端应用的进程。因为用户打开游戏盒子后,下一步的操作很可能就是运行盒子中的游戏,那么通过这一次加速,可以尽快地将手机的状态调整到最优,用户启动游戏时,就会非常流畅。这次加速的效果会直观地展示给用户,例如手机可用内存提升到多少,是否已达到最优值等等。
在步骤S204中,对第一类终端应用进行检测,若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息。
所述第二类终端应用为当前正在运行的其他终端应用。
在步骤S205中,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
其中,所述步骤S204与步骤S205可具体为:从终端应用文件夹中启动第一类终端应用时自动清理。
比如,在首次自动清理进程后,实时的对游戏盒子中的游戏进行检测,当检测出游戏盒子中的任一游戏当前被触发启动(如通过用户点击或滑动的形式触发启动游戏“欢乐斗地主”)时,可认为用户需要运行“欢乐斗地主”,获取终端当前正在运行的终端应用的属性信息,并根据该信息将清理除“欢乐斗地主”外的对应的终端应用的进程,以保证“欢乐斗地主”游戏运行起来流畅,不卡顿。
可以理解的是,当用户点击游戏盒子中的游戏图标启动某款游戏时,立即再次自动进行一次进程清理。此次进程清理与打开游戏盒子时的清理略有不同,它需要保护用户当前启动的这款游戏,保证这款游戏自身不会被清理掉,否则用户就无法启动游戏了。
在步骤S206中,当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息。
在步骤S207a中,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
其中,所述步骤S206与步骤S207a可具体为:在第一类终端应用运行过程中清理进程。
比如,在用户玩游戏的过程中,可能有部分终端应用又在后台偷偷启动了,造成游戏卡顿,此时,需要对终端应用的进程进行再一次检测处理。
可具体如下:
(1)当确定出所述第一类终端应用当前正在运行时,检测所述第一类终端应用运行是否出现卡顿;
其中,“检测所述第一类终端应用运行是否出现卡顿”可进一步采用以下方式进行确定,包括:
(a)对屏幕帧数进行检测;
(b)当确定所述屏幕帧数小于预设阈值时,则确定出所述第一类终端应用运行出现卡顿;
(c)当确定所述屏幕帧数大于或等于所述预设阈值时,则确定出所述第一类终端应用运行没有出现卡顿。
(2)当确定出所述第一类终端应用运行出现卡顿时,获取终端当前正在运行的终端应用的属性信息。
也就是说,可以通过屏幕帧数等其他技术手段来监测到出现了卡顿现象,然后立即对手机进行一次加速,清理掉除该游戏“欢乐斗地主”以外的无关进程。
优选的,手机也可以提供一个快捷入口(如悬浮窗等),让用户在游戏过程中手动进行进程清理,随时随地进行加速,可具体如下:
在步骤S207b中,通过预设的加速控件,接收用户所输入的操作指令,在操作指令的触发下,根据第二类终端应用的属性信息,结束第二类终端应用的进程。
除此之外,如果用户不是从游戏盒子中启动游戏的,手机也可以通过应用终端应用监控的方式,获取到用户当前正在运行的终端应用,如果该终端应用是游戏盒子中的游戏,便可以立即进行一次清理加速,其具体实现过程可参考第一实施例的相关内容,此处不再赘述。
容易想到的是,本发明阐述的是对游戏进行加速,但应用范围不限于游戏。任何终端应用都可以归纳到类似游戏盒子这样的集合中,打开该集合或者集合中的终端应用,都可以进行类似的加速操作。
由上述可知,本实施例提供的终端应用的进程管理方法,预先设置第一类终端应用集合,所述第一类终端应用集合中包含多个第一类终端应用;实时的对第一类终端应用集合进行检测;如果检测出第一类终端应用集合当前被触发打开,即可认为用户下一步的操作很可能就是运行该集合里的第一类终端应用,则需要根据终端当前正在运行的终端应用的属性信息结束对应的终端应用的进程;其后,当第一类终端应用被触发启动时,则需要清理其他终端应用的进程;最后,在第一类终端应用运行过程中,再次对其他终端应用进程进行检测和清理,通过三次进程清理来保证需要运行的第一类终端应用运行起来流畅,不卡顿。相对于现有需要用户手动触发加速的方式,简化终端应用加速的操作,提高终端应用的加速效率。
第三实施例
为便于更好的实施本发明实施例提供的终端应用的进程管理方法,本发明实施例还提供一种基于上述终端应用的进程管理方法的装置。其中名词的含义与上述终端应用的进程管理的方法中相同,具体实现细节可以参考方法实施例中的说明。
请参阅图3,图3为本发明实施例提供的终端应用的进程管理装置的结构示意图,可以包括第一检测模块301、信息获取模块302以及进程结束模块303。
其中第一检测模块301,用于对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用。
具体的,第一类终端应用可根据用户的需求或使用习惯进行设置,如可以是使用频率较为频繁的终端应用;或者是第一类终端应用可终端根据第一类终端应用的属性信息自动设置,如可以是根据对第一类终端应用的包名信息的分析,确定为同一应用类型的终端应用。
信息获取模块302,用于若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用。
其中,第二类终端应用的属性信息可具体包括第二类终端应用的全称或简称等指示终端应用身份标识的信息。
可以理解的是,当检测出所述第一类终端应用被触发启动了,该被触发启动的第一类终端应用则可确定为正在运行;本实施例中的第二类终端应用是指,当前正在运行的终端应用中,除了第一类终端应用以外的终端应用。
进程结束模块,用于根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
例如,第一类终端应用通过用户点击或滑动的方式所触发打开,即可认为用户当前需要运行该终端应用,则终端需要根据终端当前正在运行的终端应用的属性信息结束其他的正在进行的终端应用(即第二类终端应用)的进程,以保证需要运行终端应用(即第一类终端应用)运行起来流畅,不卡顿。
可以理解的是,进程是指正在运行的程序的实例,是一个具有一定独立功能的程序关于某个数据集合的一次运行活动。它是操作系统动态执行的基本单元,在传统的操作系统中,进程既是基本的分配单元,也是基本的执行单元。
其中,“结束对应的终端应用的进程”也就是“清理进程”,是指将手机上正在运行的应用程序的进程终结掉;例如,在Android手机上,系统提供了清理进程的接口,直接调用系统接口即可,此处不再赘述。
由上述可知,本实施例提供的终端应用的进程管理装置,对预先设置的需要优先加速的第一类终端应用进行检测;如果检测出该第一类终端应用当前被触发启动,即可认为用户当前需要运行该被触发启动的第一类终端应用,则需要根据当前正在运行的其他终端应用的属性信息结束其他对应的终端应用的进程,以保证需要运行的第一类终端应用运行起来流畅,不卡顿。相对于现有需要用户手动触发加速的方式,简化终端应用加速的操作,提高终端应用的加速效率。
第四实施例
根据第三实施例所描述的装置,以下将作进一步详细说明。
请参阅图4,图4为本发明实施例提供的终端应用的进程管理装置的结构示意图,优选的,该终端应用的进程管理装置还可以包括:
(1)确定模块304:用于确定本地是否存在预设的第一类终端应用集合,所述第一类终端应用集合包含至少一个所述第一类终端应用;
其中所述第一类终端应用集合包含至少一个所述第一类终端应用;
比如,第一类终端应用集合的表现形态可类似手机桌面上的文件夹,若该文件夹为游戏盒子,则里面包含了多个游戏等。
(2)第一处理模块305,用于若存在,则对所述第一类终端应用集合进行检测,若检测出所述终端应用集合当前被触发打开,则获取当前正在运行的终端应用的属性信息,根据所述当前正在运行的终端应用的属性信息,结束对应的终端应用的进程,并触发所述第一检测模块301执行对第一类终端应用进行检测的步骤;
(3)第二处理模块306,用于若不存在,则触发所述第一检测模块301执行对第一类终端应用进行检测的步骤。
可具体的,在确定本地存在预设的第一类终端应用集合的情形下,如果检测出该集合当前被触发打开,即可认为用户下一步的操作很可能就是运行该集合里的第一类终端应用,则需要根据终端当前正在运行的终端应用的属性信息结束对应的终端应用的进程,即在打开第一类终端应用集合时自动清理进程,以保证需要运行的终端应用运行起来流畅,不卡顿;在确定本地不存在预设的第一类终端应用集合的情形下,则直接对第一类终端应用进行检测。
比如,在第一类终端应用集合进行首次自动清理进程后,可以实时的对第一类终端应用集合中的第一类终端应用进行检测,当检测出第一类终端应用集合中的第一类终端应用当前被触发启动时,如通过用户点击或滑动的形式触发启动第一类终端应用,可认为用户需要运行第一类终端应用,获取终端当前正在运行的终端应用的属性信息,并根据该信息将清理其他正在运行的终端应用的进程,以保证需要运行第一类终端应用运行起来流畅,不卡顿。
在这时候,所述信息获取模块302,还可以用于:当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息,以便再次对其他终端应用的进程进行再一次检测和清理。
比如,可具体如下:
所述信息获取模块302可以包括:
(1)卡顿检测单元,用于当确定出所述第一类终端应用当前正在运行时,检测所述第一类终端应用运行是否出现卡顿;
其中,卡顿检测单元还可以进一步采用以下方式进行确定是否出现卡顿,可具体包括:
(a)检测子单元,用于对屏幕帧数进行检测;
(b)第一类确定子单元,用于当确定所述屏幕帧数小于预设阈值时,则确定出所述第一类终端应用运行出现卡顿;
(c)第二类确定子单元,用于当确定所述屏幕帧数大于或等于所述预设阈值时,则确定出所述第一类终端应用运行没有出现卡顿。
(2)获取单元,用于当确定出所述第一类终端应用运行出现卡顿时,获取第二类终端应用的属性信息。
也就是说,可以通过屏幕帧数等其他技术手段来监测到出现了卡顿现象,然后立即对终端进行一次加速,清理无关进程。
优选的,终端也可以提供一个快捷入口(如悬浮窗等),让用户在第一类终端应用运行过程中手动进行进程清理,随时随地进行加速,因此,所述装置还可以包括:
接收模块,用于通过预设的加速控件,接收用户所输入的操作指令;则所述进程结束模块303,还用于在所述操作指令的触发下,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
具体实施时,以上各个模块单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块单元的具体实施可参见前面的方法第二类实施例,在此不再赘述。
由上述可知,本实施例提供的终端应用的进程管理装置,预先设置第一类终端应用集合,所述第一类终端应用集合中包含多个第一类终端应用;实时的对第一类终端应用集合进行检测;如果检测出第一类终端应用集合当前被触发打开,即可认为用户下一步的操作很可能就是运行该集合里的第一类终端应用,则需要根据终端当前正在运行的终端应用的属性信息结束对应的终端应用的进程;其后,当第一类终端应用被触发启动时,则需要清理其他终端应用的进程;最后,在第一类终端应用运行过程中,再次对其他终端应用进程进行检测和清理,通过三次进程清理来保证需要运行的第一类终端应用运行起来流畅,不卡顿。相对于现有需要用户手动触发加速的方式,简化终端应用加速的操作,提高终端应用的加速效率。
第五实施例
本发明实施例还提供一种终端,如图5所示,该终端可以包括射频(RF,Radio Frequency)电路501、包括有一个或一个以上计算机可读存储介质的存储器502、输入单元503、显示单元504、传感器505、音频电路506、无线保真(WiFi,Wireless Fidelity)模块507、包括有一个或者一个以上处理核心的处理器508、以及电源509等部件。本领域技术人员可以理解,图5中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
RF电路501可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器508处理;另外,将涉及上行的数据发送给基站。通常,RF电路501包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM, Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路501还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统 (GSM,Global System of Mobile communication)、通用分组无线服务(GPRS ,General Packet Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long Term Evolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。
存储器502可用于存储软件程序以及模块,处理器508通过运行存储在存储器502的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器508和输入单元503对存储器502的访问。
输入单元503可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元503可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器508,并能接收处理器508发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元503还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元504可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元504可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid Crystal Display)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器508以确定触摸事件的类型,随后处理器508根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图5中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。
终端还可包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路506、扬声器,传声器可提供用户与终端之间的音频接口。音频电路506可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路506接收后转换为音频数据,再将音频数据输出处理器508处理后,经RF电路501以发送给比如另一终端,或者将音频数据输出至存储器502以便进一步处理。音频电路506还可能包括耳塞插孔,以提供外设耳机与终端的通信。
WiFi属于短距离无线传输技术,终端通过WiFi模块507可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块507,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器508是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器502内的软件程序和/或模块,以及调用存储在存储器502内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器508可包括一个或多个处理核心;优选的,处理器508可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器508中。
终端还包括给各个部件供电的电源509(比如电池),优选的,电源可以通过电源管理系统与处理器508逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源509还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端中的处理器508会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器502中,并由处理器508来运行存储在存储器502中的应用程序,从而实现各种功能:
对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
优选的,所述处理器508还可以用于:结束所述第二类终端应用的进程之后,当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息;根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
优选的,所述处理器508还可以用于,结束所述第二类终端应用的进程之后,当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息;通过预设的加速控件,接收用户所输入的操作指令;在所述操作指令的触发下,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
优选的,所述处理器508还可以用于, 当确定出所述第一类终端应用当前正在运行时,检测所述第一类终端应用运行是否出现卡顿;当确定出所述第一类终端应用运行出现卡顿时,获取第二类终端应用的属性信息。
优选的,所述处理器508还可以用于, 对屏幕帧数进行检测;当确定所述屏幕帧数小于预设阈值时,则确定出所述第一类终端应用运行出现卡顿;当确定所述屏幕帧数大于或等于所述预设阈值时,则确定出所述第一类终端应用运行没有出现卡顿。
优选的,所述处理器508还可以用于, 对第一类终端应用进行检测,得到检测结果之前,确定本地是否存在预设的第一类终端应用集合,所述第一类终端应用集合包含至少一个所述第一类终端应用;若存在,则对所述第一类终端应用集合进行检测,若检测出所述终端应用集合当前被触发打开,则获取当前正在运行的终端应用的属性信息,根据所述当前正在运行的终端应用的属性信息,结束对应的终端应用的进程,并执行对第一类终端应用进行检测的步骤;若不存在,则执行对第一类终端应用进行检测的步骤。
由上述可知,本实施例提供的终端中,对预先设置的需要优先加速的第一类终端应用进行检测;如果检测出该第一类终端应用当前被触发启动,即可认为用户当前需要运行该被触发启动的第一类终端应用,则需要根据当前正在运行的其他终端应用的属性信息结束其他对应的终端应用的进程,以保证需要运行的第一类终端应用运行起来流畅,不卡顿。相对于现有需要用户手动触发加速的方式,简化终端应用加速的操作,提高终端应用的加速效率。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对终端应用的进程管理方法的详细描述,此处不再赘述。
本发明实施例提供的所述终端应用的进程管理装置,譬如为计算机、平板电脑、具有触摸功能的手机等等,所述终端应用的进程管理装置与上文实施例中的终端应用的进程管理方法属于同一构思,在所述终端应用的进程管理装置上可以运行所述终端应用的进程管理方法实施例中提供的任一方法,其具体实现过程详见所述终端应用的进程管理方法实施例,此处不再赘述。
需要说明的是,对本发明所述终端应用的进程管理方法而言,本领域普通测试人员可以理解实现本发明实施例所述终端应用的进程管理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如所述终端应用的进程管理方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。
对本发明实施例的所述终端应用的进程管理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本发明实施例所提供的一种终端应用的进程管理方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (13)

  1. 一种终端应用的进程管理方法,其特征在于,包括:
    对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;
    若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;
    根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
  2. 根据权利要求1所述的终端应用的进程管理方法,其特征在于,所述结束所述第二类终端应用的进程之后,还包括:
    当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息;
    根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
  3. 根据权利要求1所述的终端应用的进程管理方法,其特征在于,所述结束所述第二类终端应用的进程之后,还包括:
    当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息;
    通过预设的加速控件,接收用户所输入的操作指令;
    在所述操作指令的触发下,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
  4. 根据权利要求2或3所述的终端应用的进程管理方法,其特征在于,所述当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息,包括:
    当确定出所述第一类终端应用当前正在运行时,检测所述第一类终端应用运行是否出现卡顿;
    当确定出所述第一类终端应用运行出现卡顿时,获取第二类终端应用的属性信息。
  5. 根据权利要求4所述的终端应用的进程管理方法,其特征在于,所述检测所述第一类终端应用运行是否出现卡顿,包括:
    对屏幕帧数进行检测;
    当确定所述屏幕帧数小于预设阈值时,则确定出所述第一类终端应用运行出现卡顿;
    当确定所述屏幕帧数大于或等于所述预设阈值时,则确定出所述第一类终端应用运行没有出现卡顿。
  6. 根据权利要求1至3任一项所述的终端应用的进程管理方法,其特征在于,所述对第一类终端应用进行检测,得到检测结果之前,还包括:
    确定本地是否存在预设的第一类终端应用集合,所述第一类终端应用集合包含至少一个所述第一类终端应用;
    若存在,则对所述第一类终端应用集合进行检测,若检测出所述终端应用集合当前被触发打开,则获取当前正在运行的终端应用的属性信息,根据所述当前正在运行的终端应用的属性信息,结束对应的终端应用的进程,并执行对第一类终端应用进行检测的步骤;
    若不存在,则执行对第一类终端应用进行检测的步骤。
  7. 一种终端应用的进程管理装置,其特征在于,包括:
    第一检测模块,用于对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;
    信息获取模块,用于若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;
    进程结束模块,用于根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
  8. 根据权利要求7所述的终端应用的进程管理装置,其特征在于,所述信息获取模块,还用于:当确定出所述第一类终端应用当前正在运行时,获取第二类终端应用的属性信息。
  9. 根据权利要求7所述的终端应用的进程管理装置,其特征在于,所述装置还包括:
    接收模块,用于通过预设的加速控件,接收用户所输入的操作指令;
    则所述进程结束模块,还用于在所述操作指令的触发下,根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
  10. 根据权利要求8或9所述的终端应用的进程管理装置,其特征在于,所述信息获取模块包括:
    卡顿检测单元,用于当确定出所述第一类终端应用当前正在运行时,检测所述第一类终端应用运行是否出现卡顿;
    获取单元,用于当确定出所述第一类终端应用运行出现卡顿时,获取第二类终端应用的属性信息。
  11. 根据权利要求10所述的终端应用的进程管理装置,其特征在于,所述卡顿检测单元包括:
    检测子单元,用于对屏幕帧数进行检测;
    第一确定子单元,用于当确定所述屏幕帧数小于预设阈值时,则确定出所述第一类终端应用运行出现卡顿;
    第二确定子单元,用于当确定所述屏幕帧数大于或等于所述预设阈值时,则确定出所述第一类终端应用运行没有出现卡顿。
  12. 根据权利要求7至9任一项所述的终端应用的进程管理装置,其特征在于,所述装置还包括:
    确定模块,用于确定本地是否存在预设的第一类终端应用集合,所述第一类终端应用集合包含至少一个所述第一类终端应用;
    第一处理模块,用于若存在,则对所述第一类终端应用集合进行检测,若检测出所述终端应用集合当前被触发打开,则获取当前正在运行的终端应用的属性信息,根据所述当前正在运行的终端应用的属性信息,结束对应的终端应用的进程,并触发所述第一检测模块执行对第一类终端应用进行检测的步骤。
    第二处理模块,用于若不存在,则触发所述第一检测模块执行对第一类终端应用进行检测的步骤。
  13. 一种存储介质,其内存储有处理器可执行指令,其中该处理器可执行指令用于让处理器完成以下操作:
    对第一类终端应用进行检测,得到检测结果,所述第一类终端应用为预设的需要优先加速的终端应用;
    若所述检测结果指示所述第一类终端应用被触发启动,则获取第二类终端应用的属性信息,所述第二类终端应用为当前正在运行的其他终端应用;
    根据所述第二类终端应用的属性信息,结束所述第二类终端应用的进程。
PCT/CN2016/080141 2015-05-22 2016-04-25 一种终端应用的进程管理方法及装置 WO2016188285A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
MYPI2018700034A MY188875A (en) 2015-05-22 2016-04-25 Terminal application process management method and apparatus
US15/625,701 US10474507B2 (en) 2015-05-22 2017-06-16 Terminal application process management method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510267314.2A CN106293901B (zh) 2015-05-22 2015-05-22 一种终端应用的进程管理方法及装置
CN201510267314.2 2015-05-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/625,701 Continuation US10474507B2 (en) 2015-05-22 2017-06-16 Terminal application process management method and apparatus

Publications (1)

Publication Number Publication Date
WO2016188285A1 true WO2016188285A1 (zh) 2016-12-01

Family

ID=57392343

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080141 WO2016188285A1 (zh) 2015-05-22 2016-04-25 一种终端应用的进程管理方法及装置

Country Status (4)

Country Link
US (1) US10474507B2 (zh)
CN (1) CN106293901B (zh)
MY (1) MY188875A (zh)
WO (1) WO2016188285A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11150913B2 (en) * 2017-04-19 2021-10-19 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method, device, and terminal for accelerating startup of application
CN109150751B (zh) * 2017-06-16 2022-05-27 阿里巴巴集团控股有限公司 一种网络控制方法及装置
CN109992324B (zh) * 2017-12-29 2022-11-04 Oppo广东移动通信有限公司 应用程序冻结方法、装置、存储介质和终端
CN108459884A (zh) * 2018-02-13 2018-08-28 广东欧珀移动通信有限公司 应用程序关闭方法、装置、存储介质和电子设备
CN108848492B (zh) * 2018-05-29 2021-08-10 Oppo(重庆)智能科技有限公司 用户身份识别卡的启用方法、装置、终端及存储介质
US10855587B2 (en) * 2018-10-19 2020-12-01 Oracle International Corporation Client connection failover
CN109739546A (zh) * 2018-12-26 2019-05-10 深圳乐信软件技术有限公司 属性参数获取方法、装置、存储介质及服务器
CN110855826A (zh) * 2019-09-23 2020-02-28 华为技术有限公司 一种原子服务的呈现方法及装置
CN111182135A (zh) * 2019-12-11 2020-05-19 青岛海信移动通信技术股份有限公司 一种移动终端及优化移动终端运行状态的方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530235A (zh) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 移动终端中清理内存的方法及装置
CN103853610A (zh) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 资源优化方法及装置
CN104142828A (zh) * 2014-07-30 2014-11-12 北京奇虎科技有限公司 应用加速方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334228B2 (en) * 2001-07-27 2008-02-19 International Business Machines Corporation Runtime-resource management
US7080145B2 (en) * 2003-02-28 2006-07-18 Bea Systems, Inc. Method for performing resource pool maintenance by maintaining resources in several deques
US8001531B1 (en) * 2007-07-30 2011-08-16 Nvidia Corporation Translation of a shader assembly language binary for debugging a graphics application running on a remote device
US8914562B2 (en) * 2012-01-25 2014-12-16 Nokia Corporation Method and apparatus for buffer initialization
CN103106093A (zh) * 2013-02-21 2013-05-15 北京奇虎科技有限公司 一种系统运行加速方法和装置
CN103699413B (zh) * 2013-12-24 2017-05-03 北京世界星辉科技有限责任公司 优化游戏运行环境的方法、客户端、服务器及系统
CN104090745A (zh) * 2014-04-18 2014-10-08 北京奇虎科技有限公司 一种优化游戏运行环境的方法和装置
CN103957208B (zh) * 2014-04-29 2018-03-27 北京奇虎科技有限公司 网络游戏的加速方法和系统以及网游加速服务器
CN104601770A (zh) * 2014-12-25 2015-05-06 惠州Tcl移动通信有限公司 一种终端及其流畅性评测方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853610A (zh) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 资源优化方法及装置
CN103530235A (zh) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 移动终端中清理内存的方法及装置
CN104142828A (zh) * 2014-07-30 2014-11-12 北京奇虎科技有限公司 应用加速方法及装置

Also Published As

Publication number Publication date
MY188875A (en) 2022-01-12
US10474507B2 (en) 2019-11-12
CN106293901B (zh) 2020-06-02
US20170286174A1 (en) 2017-10-05
CN106293901A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016188285A1 (zh) 一种终端应用的进程管理方法及装置
WO2017142293A1 (en) Electronic device and method of application data display therefor
WO2018135743A1 (ko) 발화 완료 감지 방법 및 이를 구현한 전자 장치
WO2018129977A1 (zh) 一种充电控制方法、装置、存储介质和计算机设备
WO2017069595A1 (en) Electronic device and method for executing function using speech recognition thereof
WO2018151505A1 (en) Electronic device and method for displaying screen thereof
WO2018076819A1 (zh) 数据的上传方法、装置、存储介质、电子设备及系统
WO2017142373A1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
WO2016064166A1 (en) Method of performing one or more operations based on a gesture
WO2018076866A1 (zh) 数据处理方法、装置、存储介质、电子设备及服务器
WO2015030488A1 (en) Multi display method, storage medium, and electronic device
WO2015180013A1 (zh) 一种终端的触摸操作方法及装置
WO2017164567A1 (en) Intelligent electronic device and method of operating the same
WO2018155893A1 (en) Interface providing method for multitasking and electronic device implementing the same
WO2017164585A1 (en) Electronic device and control method thereof
WO2018018772A1 (zh) 一种后台进程管理方法及终端设备
WO2018076818A1 (zh) 数据的备份方法、装置、电子设备、存储介质及系统
WO2017209502A1 (ko) 전자 장치와 충전 장치간의 연결을 제어하는 방법 및 이를 제공하는 장치
WO2018056641A1 (ko) 전자 장치 및 그 제어 방법
WO2019039868A1 (en) ELECTRONIC DISPLAY DEVICE FOR APPLICATION AND METHOD FOR OPERATING THE SAME
WO2018076864A1 (zh) 一种数据同步方法、装置、存储介质及电子设备
WO2017107557A1 (zh) 一种基于移动终端的快捷菜单弹出方法及系统
WO2016184330A1 (zh) 一种屏幕解锁方法、装置及存储介质
WO2013152645A1 (zh) 一种提供快速启动入口的方法、电子设备及存储介质
WO2017071326A1 (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: 16799174

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16799174

Country of ref document: EP

Kind code of ref document: A1