Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based onEmbodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not madeEmbodiment, belongs to the scope of protection of the invention.
It should be noted that the term for using in embodiments of the present invention is the mesh only merely for description specific embodiment, and it is not intended to be limiting the present invention." one of singulative used in the embodiment of the present invention and appended claimsKind ", " described " and " being somebody's turn to do " are also intended to include most forms, unless context clearly shows that other implications.It is also understood that thisTerm "and/or" used herein is referred to and associated any or all possible group that lists project comprising one or moreClose.
Fig. 1 is referred to, Fig. 1 is a kind of flow chart of the method for closing process provided in an embodiment of the present invention.The method shouldFor intelligent terminal, the intelligent terminal can be that mobile phone, panel computer, notebook computer, palm PC, mobile Internet setStandby (MID, mobile internet device), wearable device (such as intelligent watch (iwatch etc.), Intelligent bracelet etc.)Or other can install the terminal device of applications client.The terminal passes through to obtain process list, then according to the processList filtering falls the reservation procedure in the process list, terminates entering in addition to the reservation procedure in the process listJourney, with releasing memory space, and then lifts the operation fluency of terminal.The method of the closing process is comprised the following stepsS101-S103。
In step S101, the process list of terminal is obtained, and wherein, the process list includes multiple processes.
Specifically, the process is the executory application program in terminal, is the once execution activity in terminal, when withA program is run at family, just starts a process.The process list can include multiple processes.Terminal passes through task managementThe software modules such as device are managed to process, and the process being currently running one process list of setting is managed.
In step s 102, the reservation procedure in the process list is filtered out according to the process list, it is wherein, describedReservation procedure includes system process and desktop process.
Specifically, the reservation procedure is referred to needs to retain running status, it is impossible to the process being moved to end.In present embodimentIn, the reservation procedure includes system process and desktop process.The system process is the operation system under running statusSystem itself, is the process for ensureing normal operation of terminal, if terminating the process, it is more likely that cause terminal to restart or collapseEtc. abnormal conditions, so the system process can not be moved to end as reservation procedure.The desktop process refers to desktop programs,It is the total program management of file and icon of terminal desktop.For concrete example, so that terminal is as computer as an example, the desktop process is justIncluding the taskbar below start menu, desktop, desktop icons and file management.If terminating the desktop process, will leadFamily of applying cannot be introduced into desktop, also cannot carry out any operation to terminal, so the desktop process can not be moved to end.
In other embodiments, the reservation procedure can also include that some users are not intended to the process being moved to end,Process, foreground process etc. are currently in use for example, the process that is currently in use mainly includes backstage downloading process, music etc.The process that a little users are currently in use, generally, user is not intended to terminate the process being currently in use, so described retainingCan be added according to the custom of user in process and be currently in use process.The foreground process is shown in the application on display screen.In other embodiments, the reservation procedure can also include user's white list process, and user's white list process is to beUnite according to the higher one or several processes of the user's usage frequency counted for historical behavior peration data, so in userToggle speed when opening user's white list process can accelerate.
In step s 103, terminate the process in addition to the reservation procedure in the process list, with releasing memorySpace.
Specifically, after the reservation procedure in the process list is filtered out, terminate remaining process.By mistakeThe strobe utility of reservation procedure is filtered, useful process is filtered out, terminates those idle processes, idle process is prevented rearPlatform power consumption, take CPU, using behaviors such as flows, so as to discharge the memory headroom of terminal, it is ensured that the application program of current operationPossess enough memory headroom operations, and then lift the operation fluency of terminal.
In the present embodiment, the function of closing process described above can be realized by two ways:(1), closeProcess function is integrated in the systemic-function of terminal, as in existing systemic-function can setting options, user can be withThis application function is opened in system is arranged.(2), close process function and be alternatively an independent application, may be installed operationIn the terminal of the operating systems such as IOS, Android, Windows, user can be smooth so as to lift operation by opening the applicationDegree.
It is above-mentioned understand, the method for the closings process in the embodiment of the present invention, by end process list in except retain intoProcess outside journey, can discharge the memory headroom of terminal, lift the operation fluency of terminal, not only easy to operate, Er QiekeTo reduce interacting for user and optimization software, the operating time of saving user, Consumer's Experience is improved.
Fig. 2 is the flow chart of the method for another kind of closing process provided in an embodiment of the present invention.In the present embodiment, shouldThe method of closing process includes step S201-S205.
In step s 201, the process list of terminal is obtained, wherein, the process list includes multiple processes.
Specifically, the process is the executory application program in terminal, is the once execution activity in terminal, when withA program is run at family, just starts a process.The process list can include multiple processes.Terminal passes through task managementThe software modules such as device are managed to process, and the process being currently running one process list of setting is managed.
In step S202, the reservation procedure in the process list is filtered out according to the process list, it is wherein, describedReservation procedure includes system process and desktop process.
Specifically, the reservation procedure is referred to needs to retain running status, it is impossible to the process being moved to end.In present embodimentIn, the reservation procedure includes system process and desktop process.The system process is the operation system under running statusSystem itself, is the process for ensureing normal operation of terminal, if terminating the process, it is more likely that cause terminal to restart or collapseEtc. abnormal conditions, so the system process can not be moved to end as reservation procedure.The desktop process refers to desktop programs,It is the total program management of file and icon of terminal desktop.For concrete example, so that terminal is as computer as an example, the desktop process is justIncluding the taskbar below start menu, desktop, desktop icons and file management.If terminating the desktop process, will leadFamily of applying cannot be introduced into desktop, also cannot carry out any operation to terminal, so the desktop process can not be moved to end.
In other embodiments, the reservation procedure can also include that some users are not intended to the process being moved to end,Process, foreground process etc. are currently in use for example, the process that is currently in use mainly includes backstage downloading process, music etc.The process that a little users are currently in use, generally, user is not intended to terminate the process being currently in use, so described retainingCan be added according to the custom of user in process and be currently in use process.The foreground process is shown in the application on display screen.In other embodiments, the reservation procedure can also include user's white list process, and user's white list process is to beSystem is filtered out according to the higher one or several processes of the user's usage frequency counted for user's history behavior peration dataUser's white list process is conducive to toggle speed when accelerating user's opening user's white list process.
In step S203, the amount of ram that the terminal has currently been used is read.
In step S204, judge whether the amount of ram that the terminal has currently been used is more than the default internal memory of the terminalThreshold value.
Specifically, the memory threshold is that system is arranged automatically, as the hardware configuration of terminal is not quite similar, so beingThe memory threshold that system is arranged automatically is also not necessarily identical.For concrete example, when total amount of ram of terminal is less than or equal to 1G, instituteState that memory threshold can be total amount of ram of the terminal 85%;When total amount of ram of terminal is more than 1G and is less than 3G, instituteState that memory threshold can be total amount of ram of the terminal 90%;It is when total amount of ram of terminal is more than or equal to 3G, described interiorDeposit that threshold value can be total amount of ram of the terminal 90%.The memory threshold is not changeless, and system can be with rootAutomatically arranged according to the concrete condition of terminal.
In other embodiments, user can also change the internal memory threshold of suitable Consumer's Experience by UI interactive interfacesValue.After user is successfully modified, system can be according to the operation after newly-installed memory threshold execution step S204.
In step S205, if the amount of ram that the terminal has currently been used is more than the default internal memory threshold of the terminalValue, then terminate the process in addition to the reservation procedure in the process list.
Specifically, if the amount of ram that the terminal has currently been used is more than the default memory threshold of the terminal, showPresent terminal does not have enough memory headroom operations, it is possible to affect the operation fluency of terminal.
Specifically, after the reservation procedure in the process list is filtered out, terminate remaining process.By mistakeThe strobe utility of reservation procedure is filtered, useful process is filtered out, terminates those idle processes, idle process is prevented rearPlatform power consumption, take CPU, using behaviors such as flows, so as to discharge the memory headroom of terminal, it is ensured that the application program of current operationPossess enough memory headroom operations, and then lift the operation fluency of terminal.
In the present embodiment, the function of closing process described above can be realized by two ways:(1), closeProcess function is integrated in the systemic-function of terminal, as in existing systemic-function can setting options, user can be withThis application function is opened in system is arranged.(2), close process function and be alternatively an independent application, may be installed operationIn the terminal of the operating systems such as IOS, Android, Windows, user can be by opening the application, so as to lift terminal operatingFluency.
It is above-mentioned understand, the method for the closings process in the embodiment of the present invention, by end process list in except retain intoProcess outside journey, can discharge the memory headroom of terminal, lift the operation fluency of terminal, not only easy to operate, Er QiekeTo reduce interacting for user and optimization software, the operating time of saving user, Consumer's Experience is improved.
Fig. 3 is a kind of structural representation of the device of closing process provided in an embodiment of the present invention, the dress of the closing processPut 300 and be applied to intelligent terminal, the intelligent terminal can be mobile phone, panel computer, notebook computer, palm PC, movementInternet device (MID, mobile internet device), wearable device (such as intelligent watch (iwatch etc.), intelligenceBracelet etc.) or other terminal device of applications client can be installed.The terminal passes through to obtain process list, then according to instituteState the reservation procedure that process list is filtered out in the process list, terminate in the process list except the reservation procedure itOuter process, with releasing memory space, and then lifts the operation fluency of terminal.The device 300 of the closing process includes:ObtainModule 310, filtering module 320, read module 330, judge module 340, terminate module 350.
Acquisition module 310, for obtaining the process list of terminal, wherein, the process list includes multiple processes.
Specifically, the process is the executory application program in terminal, is the once execution activity in terminal, when withA program is run at family, just starts a process.The process list can include multiple processes.Terminal passes through task managementThe software modules such as device are managed to process, and the process being currently running one process list of setting is managed.
Filtering module 320, for filtering out the reservation procedure in the process list according to the process list, wherein,The reservation procedure includes system process and desktop process.
Specifically, the reservation procedure is referred to needs to retain running status, it is impossible to the process being moved to end.In present embodimentIn, the reservation procedure includes system process and desktop process.The system process is the operation system under running statusSystem itself, is the process for ensureing normal operation of terminal, if terminating the process, it is more likely that cause terminal to restart or collapseEtc. abnormal conditions, so the filtering module 320 will filter out system process, it is ensured that the system process is not moved to end.It is describedDesktop process refers to desktop programs, is the total program management of file and icon of terminal desktop.For concrete example, with terminal as electricityAs a example by brain, the desktop process is just including the taskbar below start menu, desktop, desktop icons and file management.If knotBeam falls the desktop process, and user will be caused to cannot be introduced into desktop, also cannot carry out any operation to terminal, so the filtrationModule 320 needs to filter desktop process and ensure that the desktop process is not moved to end.
In other embodiments, the reservation procedure can also include that some users are not intended to the process being moved to end,Process, foreground process etc. are currently in use for example, the process that is currently in use mainly includes backstage downloading process, music etc.The process that a little users are currently in use, generally, user is not intended to terminate the process being currently in use, so described retainingCan be added according to the custom of user in process and be currently in use process.The foreground process is shown in the application on display screen.In other embodiments, the reservation procedure can also include user's white list process, and user's white list process is to beSystem is filtered out according to the higher one or several processes of the user's usage frequency counted for user's history behavior peration dataUser's white list process is conducive to toggle speed when accelerating user's opening user's white list process.
Read module 303, for reading the amount of ram that the terminal has currently been used;
Judge module 304, it is whether default more than the terminal for judging the amount of ram that the terminal has currently been usedMemory threshold.
Specifically, the memory threshold is that system is arranged automatically, as the hardware configuration of terminal is not quite similar, so beingThe memory threshold that system is arranged automatically is also not necessarily identical.For concrete example, when total amount of ram of terminal is less than or equal to 1G, instituteState that memory threshold can be total amount of ram of the terminal 85%;When total amount of ram of terminal is more than 1G and is less than 3G, instituteState that memory threshold can be total amount of ram of the terminal 90%;It is when total amount of ram of terminal is more than or equal to 3G, described interiorDeposit that threshold value can be total amount of ram of the terminal 90%.The memory threshold is not changeless, and system can be with rootAutomatically arranged according to the concrete condition of terminal.
In other embodiments, user can also change the internal memory threshold of suitable Consumer's Experience by UI interactive interfacesValue.After user is successfully modified, system can be according to the operation after newly-installed memory threshold execution step S204.
Terminate module 305, if be more than the default internal memory of the terminal for the amount of ram that the terminal has currently been usedThreshold value, then terminate the process in addition to the reservation procedure in the process list.
Specifically, if the amount of ram that the terminal has currently been used is more than the default memory threshold of the terminal, showPresent terminal does not have enough memory headroom operations, it is possible to affect the operation fluency of terminal.
Specifically, after the reservation procedure in the process list is filtered out, terminate remaining process.By mistakeThe strobe utility of reservation procedure is filtered, useful process is filtered out, terminates those idle processes, idle process is prevented rearPlatform power consumption, take CPU, using behaviors such as flows, so as to discharge the memory headroom of terminal, it is ensured that the application program of current operationPossess enough memory headroom operations, and then lift the operation fluency of terminal.
It is understood that the function of each functional module of the device of closing process in the embodiment of the present invention can be according to upperThe method stated in embodiment of the method shown in Fig. 1-Fig. 2 is implemented, and which implements process and is referred to said method embodimentIn associated description, here is omitted.
It is above-mentioned understand, the device of the closings process in the embodiment of the present invention, by end process list in except retain intoProcess outside journey, can discharge the memory headroom of terminal, lift the operation fluency of terminal, not only easy to operate, Er QiekeTo reduce interacting for user and optimization software, the operating time of saving user, Consumer's Experience is improved.
Refering to Fig. 4, Fig. 4 is a kind of terminal of closing process provided in an embodiment of the present invention, the terminal 400 of the closing processThe device of closing process described above can be included, the 26S Proteasome Structure and Function of the device of the closing process may refer to reality in Fig. 3Apply the related description in example.It is understood that the terminal 400 of the closing process of the embodiment of the present invention, it is also possible to using Fig. 1 orThe method of the closing process shown in Fig. 2 any embodiments.Specifically:
Terminal 400 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more metersThe memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160,WiFi (wireless fidelity, Wireless Fidelity) module 170, the process for including or more than one processing coreDevice 180, and the part such as power supply 190.It will be understood by those skilled in the art that the terminal structure illustrated in Fig. 4 do not constitute it is rightThe restriction of terminal, can include than illustrating more or less of part, or combine some parts, or different part clothPut.Wherein:
RF circuits 110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base stationAfter downlink information is received, transfer to one or more than one processor 180 is processed;In addition, will be related to up data is activation toBase station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, useFamily identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexDevice etc..Additionally, RF circuits 110 can also be communicated with network and other equipment by radio communication.The radio communication can makeWith arbitrary communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirelyBall mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (CodeDivision Multiple Access, CDMA), WCDMA (Wideband Code Division MultipleAccess, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (ShortMessaging Service, Short Message Service) etc..
Memory 120 can be used to store software program and module, and processor 180 is stored in memory 120 by operationSoftware program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journeySequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one functionSuch as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use created number according to terminal 400According to (such as voice data, phone directory etc.) etc..Additionally, memory 120 can include high-speed random access memory, can also wrapInclude nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory120 access.
Input block 130 can be used for the numeral of receives input or character information, and produce and user's setting and functionThe relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touchSensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect useFamily thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive tableOperation on face 131 or near the Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional, Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is usedThe touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touchTouch information is received in detection means, and is converted into contact coordinate, then give processor 180, and can receiving processor 180The order sent simultaneously is performed.Furthermore, it is possible to adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waveRealize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically,Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.),One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used to showing by user input information or be supplied to the information and terminal 400 of userVarious graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystalShow device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display floater141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected thereon or neighbouring is touchedAfter touching operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to the type of touch eventCorresponding visual output is provided on display floater 141.Although in the diagram, Touch sensitive surface 131 is conduct with display floater 141Two independent parts realizing input and output function, but in some embodiments it is possible to by Touch sensitive surface 131 with showPanel 141 is integrated and realization is input into and output function.
Terminal 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensingsDevice.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to environmentAdjusting the brightness of display floater 141, proximity transducer can cut out and show when terminal 400 is moved in one's ear the light and shade of lightPanel 141 and/or backlight.As one kind of motion sensor, in the detectable all directions of Gravity accelerometer (generallyThree axles) acceleration size, can detect that size and the direction of gravity when static, can be used for recognize mobile phone attitude application (ratioSuch as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;ExtremelyThe other sensors such as the gyroscope that can also configure in terminal 400, barometer, hygrometer, thermometer, infrared ray sensor, hereRepeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 400.Audio frequencyElectric signal after the voice data for receiving conversion can be transferred to loudspeaker 161, is converted to sound by loudspeaker 161 by circuit 160Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160Voice data is converted to, then after voice data output processor 180 is processed, Jing RF circuits 110 are being sent to such as another endEnd, or voice data is exported to memory 120 further to process.Voicefrequency circuit 160 is also possible that earphone jack,To provide the communication of peripheral hardware earphone and terminal 400.
WiFi belongs to short range wireless transmission technology, and terminal 400 can help user's transceiver electronicses by WiFi module 170Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 4 is illustratedWiFi module 170, but it is understood that, which is simultaneously not belonging to must be configured into for terminal 400, can exist as needed completelyOmit in the scope of the essence for not changing invention.
Processor 180 is the control centre of terminal 400, using each portion of various interfaces and connection whole mobile phonePoint, software program and/or module in memory 120 is stored in by running or performing, and call and be stored in memory 120Interior data, perform the various functions and processing data of terminal 400, so as to carry out integral monitoring to mobile phone.Optionally, processor180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modem processor,Wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes nothingLine communicates.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal 400 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can be by electricityManagement system is logically contiguous with processor 180, so as to realize management charging, electric discharge and power consumption by power-supply management systemThe functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply eventThe random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal 400 can also include camera, bluetooth module etc., will not be described here.Specifically in this realityApply in example, the display unit of terminal is touch-screen display, terminal also includes memory, and one or more than oneProgram, one of them or more than one program storage is in memory, and is configured to by one or more than one processDevice performs one or more than one program bag containing for carrying out the instruction of following operation:
The process list of terminal is obtained, wherein, the process list includes multiple processes;
Reservation procedure in the process list is filtered out according to the process list, wherein, the reservation procedure includesSystem process and desktop process;
Terminate the process in addition to the reservation procedure in the process list, with releasing memory space.
Alternatively, the reservation procedure also includes user's white list process, is currently in use in process and foreground process extremelyIt is few one.
Alternatively, read the amount of ram that the terminal has currently been used;
Judge whether the amount of ram that the terminal has currently been used is more than the default memory threshold of the terminal;
If the amount of ram that the terminal has currently been used is more than the default memory threshold of the terminal, performs and terminate instituteThe step of stating in process list the process in addition to the reservation procedure.
Alternatively, the default memory threshold is that system is arranged automatically, or, it is user's sets itself.
Alternatively, user's white list process includes:Made according to the user that user's history behavior peration data is countedWith one or more processes of frequency highest.
One of ordinary skill in the art will appreciate that all or part of flow process in realizing above-described embodiment method, can beInstruct related hardware to complete by computer program, described program can be stored in a computer read/write memory mediumIn, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random AccessMemory, RAM) etc..
Above disclosed is only a kind of preferred embodiment of the invention, can not limit certainly the power of the present invention with thisSharp scope, one of ordinary skill in the art will appreciate that all or part of flow process of above-described embodiment is realized, and according to present invention powerProfit requires made equivalent variations, still falls within the covered scope of invention.