CN107357655A - A kind of processing method of process, terminal and computer-readable recording medium - Google Patents

A kind of processing method of process, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107357655A
CN107357655A CN201710481893.XA CN201710481893A CN107357655A CN 107357655 A CN107357655 A CN 107357655A CN 201710481893 A CN201710481893 A CN 201710481893A CN 107357655 A CN107357655 A CN 107357655A
Authority
CN
China
Prior art keywords
internal storage
storage state
journey
entered
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201710481893.XA
Other languages
Chinese (zh)
Inventor
刘磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710481893.XA priority Critical patent/CN107357655A/en
Publication of CN107357655A publication Critical patent/CN107357655A/en
Withdrawn legal-status Critical Current

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/5016Allocation 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 the resource being the memory
    • 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/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of processing method of process, methods described includes:Obtain and internal storage state is not used;It is determined that when unused internal storage state is preset state, from the corresponding relation of default preset state and priority limit, determine that priority limit corresponding to internal storage state is not used;In the process of priority limit corresponding to unused internal storage state is fallen into, the process of highest priority is defined as journey to be entered;Kill journey to be entered;Kill when journey failure is entered, in remaining process beyond the process for losing and losing that kills off, redefine journey to be entered, and kill journey to be entered again;Kill when it is successfully to enter journey, reacquire and internal storage state is not used.The embodiment of the present invention further simultaneously discloses a kind of terminal and computer-readable recording medium.

Description

A kind of processing method of process, terminal and computer-readable recording medium
Technical field
The present invention relates to the Memory recycle in computer system, more particularly to a kind of processing method of process, terminal and meter Calculation machine readable storage medium storing program for executing.
Background technology
In computer systems, internal memory is all rare resource, and any one computer system has its distinctive internal memory Reclaim mechanism, if computer system occur Memory recycle failure or Memory recycle not in time, can cause computer system without The internal memory newly applied of method distribution, so as to cause computer system to crash the problems such as restarting, it is seen then that Memory recycle is for department of computer science The normal operation of system is particularly important.
At present, different with other computer systems for the memory management mechanism of Android (Android) system, it is depended on Lowmemorykiller mechanism, still, existing lowmemorykiller mechanism can repeat according to algorithm in android system The a certain specific process of selection, when selected process can not reclaim, computer system can be caused because not having free memory And crash or collapse.
The content of the invention
In view of this, it is a primary object of the present invention to propose a kind of processing method of process, terminal and computer-readable Storage medium, it is intended to eliminate individual process in existing computer system kill caused by computer system free memory not The situation of foot occurs, and so as to improve Memory recycle efficiency, and then improves the performance of computer system.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of processing method of process, including:Obtain and internal storage state is not used; When to determine the unused internal storage state be preset state, from the default preset state and the corresponding relation of priority limit In, determine priority limit corresponding to the unused internal storage state;It is excellent corresponding to the unused internal storage state falling into In the process of first level scope, the process of highest priority is defined as journey to be entered;Kill the journey to be entered;Kill described treat When entering journey failure, in remaining process beyond the process for losing and losing that kills off, journey to be entered is redefined, and kill institute again State journey to be entered;Kill described when it is successfully to enter journey, the unused internal storage state of reacquisition.
Alternatively, methods described also includes:For priority limit corresponding to different unused internal storage state determinations, set Corresponding relation between different unused internal storage states and priority limit;By the unused internal storage state and priority model Corresponding relation between enclosing is added in the corresponding relation of the preset state and priority limit.
Alternatively, it is described in remaining process beyond the process for losing and losing that kills off, redefine the journey to be entered, bag Include:When falling into the process of priority limit corresponding to the unused internal storage state, kill off beyond the process for losing and losing and exist During process, there will be process in highest priority process, be redefined as the journey to be entered;It is described unused when falling into In the process of priority limit corresponding to internal storage state, kill off and lose when process is not present beyond the process that loses, update described in not Use internal storage state;According to the unused internal storage state after the renewal, the journey to be entered is redefined.
Alternatively, it is described when falling into the process of priority limit corresponding to the unused internal storage state, kill off and lose When process is not present beyond the process lost, the unused internal storage state is updated, including:When falling into the unused internal storage state In the process of corresponding priority limit, kill off and lose when process is not present beyond the process that loses, from the preset state with it is excellent In first level corresponding relation, internal memory is not used in the next-hop that the unused internal storage state is updated to the unused internal storage state State.
Alternatively, the unused internal storage state according to after the renewal, the journey to be entered is redefined, including: From the preset state and priority corresponding relations, priority corresponding to the unused internal storage state after the renewal is determined Scope;It will fall into the process of priority limit corresponding to the unused internal storage state after the renewal, highest priority is entered Journey is redefined as the journey to be entered.
Alternatively, the preset state includes one kind in following state:It is normal NORMAL, medium MODERATE, low LOW, CRITICAL of the utmost importance, exhaust EXHAUSTED.
Second aspect, the embodiment of the present invention provide a kind of terminal, and it is total that the terminal includes processor, memory and communication Line;The communication bus is used to realize the connection communication between processor and memory;The processor is used to perform memory The processing routine of the process of middle storage, to realize following steps:Obtain and internal storage state is not used;Determine the unused internal memory shape When state is preset state, from the corresponding relation of the default preset state and priority limit, described be not used is determined Priority limit corresponding to internal storage state;, will in the process of priority limit corresponding to the unused internal storage state is fallen into The process of highest priority is defined as journey to be entered;Kill the journey to be entered;Described in killing when journey failure is entered, killing off Lose in remaining process beyond the process lost, redefine journey to be entered, and kill the journey to be entered again;Kill described When it is successfully to enter journey, reacquires and internal storage state is not used.
Alternatively, the processor is additionally operable to perform the processing routine of the process, to realize following steps:To be different Priority limit corresponding to internal storage state determination is not used, is set between different unused internal storage state and priority limit Corresponding relation;By the corresponding relation between the unused internal storage state and priority limit added to the preset state with it is excellent In the corresponding relation of first level scope.
Alternatively, it is described in remaining process beyond the process for losing and losing that kills off, redefine the journey to be entered, institute The processing routine that processor is additionally operable to perform the process is stated, to realize following steps:When falling into the unused internal storage state In the process of corresponding priority limit, kill off and lose when process be present beyond the process that loses, there will be process in priority Highest process, it is redefined as the journey to be entered;When falling into priority limit corresponding to the unused internal storage state In process, kill off and lose when process is not present beyond the process that loses, the renewal unused internal storage state;After the renewal Unused internal storage state, redefine the journey to be entered.
Alternatively, it is described when falling into the process of priority limit corresponding to the unused internal storage state, kill off and lose When process is not present beyond the process lost, the unused internal storage state is updated, the processor is additionally operable to perform the process Processing routine, to realize following steps:When falling into the process of priority limit corresponding to the unused internal storage state, remove Kill when process is not present beyond the process of failure, will be described unused from the preset state and priority corresponding relations Internal storage state is not used in the next-hop that internal storage state is updated to the unused internal storage state.
Alternatively, the unused internal storage state according to after the renewal, the journey to be entered, the place are redefined Reason device is additionally operable to perform the processing routine of the process, to realize following steps:Closed from the preset state is corresponding with priority In system, priority limit corresponding to the unused internal storage state after the renewal is determined;Do not make falling into after the renewal In the process of priority limit corresponding to internal storage state, the process of highest priority is redefined as the journey to be entered.
Alternatively, the preset state includes one kind in following state:It is normal NORMAL, medium MODERATE, low LOW, CRITICAL of the utmost importance, exhaust EXHAUSTED.
The third aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, and the computer-readable medium is deposited The processing routine of process is contained, one or more embodiments as described above are realized when the processing routine of the process is executed by processor Described in process processing method the step of.
Processing method, terminal and the computer-readable recording medium for a kind of process that the embodiment of the present invention is provided, first, Obtain and internal storage state is not used;Secondly, determine to be not used internal storage state when being preset state, from default preset state with it is excellent In the corresponding relation of first level scope, determine that priority limit corresponding to internal storage state is not used;Falling into unused internal memory shape In the process of priority limit corresponding to state, the process of highest priority is defined as journey to be entered;Then, kill and wait to enter Journey;Kill when journey failure is entered, in remaining process beyond the process for losing and losing that kills off, redefine journey to be entered, and Again journey to be entered is killed;Repeated in this way, can avoid that the process do not fallen will be killed;That is, by losing killing off Redefine journey to be entered in remaining process beyond the process lost, avoid the occurrence of individual process kill caused by computer The situation of system low free memory occurs, and so as to improve Memory recycle efficiency, and then improves the performance of computer system.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the processing method of the process in the embodiment of the present invention one;
Fig. 4 is a kind of process arrangement schematic diagram in the embodiment of the present invention one;
Fig. 5 is the schematic flow sheet of the processing method of the process in the embodiment of the present invention two;
Fig. 6 is a kind of optional process arrangement schematic diagram in the embodiment of the present invention two;
Fig. 7 is the optional process arrangement schematic diagram of another kind in the embodiment of the present invention two;
Fig. 8 is another optional process arrangement schematic diagram in the embodiment of the present invention two;
Fig. 9 is the structural representation of the terminal in the embodiment of the present invention three;
Figure 10 is the structural representation of the computer-readable recording medium in the embodiment of the present invention four.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (PDA, Personal Digital Assistant), portable Media player (PMP, Portable Media Player), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:Radio frequency (RF, Radio Frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (GSM, Global System of Mobile Communication), general packet radio service (GPRS, General Packet Radio Service), CDMA 2000 (CDMA2000, Code Division Multiple Access 2000), WCDMA (WCDMA, Wideband Code Division Multiple Access), TD SDMA (TD-SCDMA, Time Division- Synchronous Code Division Multiple Access), FDD Long Term Evolution (FDD-LTE, Frequency Division Duplexing-Long Term Evolution) and time division duplex Long Term Evolution (TDD-LTE, Time Division Duplexing-Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (GPU, Graphics Processing Unit) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (LCD, Liquid Crystal Display), Organic Light Emitting Diode can be used Forms such as (OLED, Organic Light-Emitting Diode) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite includes communicating user equipment (UE, the User of connection successively for the LTE system of universal mobile communications technology, the LTE system Equipment) 201, evolved UMTS Terrestrial radio access network (E-UTRAN, Evolved UMTS Terrestrial Radio Access Network) 202, the IP industry of evolved packet-based core networks (EPC, Evolved Packet Core) 203 and operator Business 204.
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include mobility management entity (MME, Mobility Management Entity) 2031, ownership Client server (HSS, Home Subscriber Server) 2032, other MME2033, gateway (SGW, Serving Gate Way) 2034, grouped data network gateway (PGW, PDN Gate Way) 2035 and policy and rate functional entity (PCRF, Policy and Charging Rules Function) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IMS, IP Multimedia ) or other IP operations etc. Subsystem.
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
Based on foregoing embodiment, the embodiment of the present invention provides a kind of processing method of process, and this method can apply to Terminal, the function that the processing method of the process is realized can be realized by the processor caller code in terminal, when Right program code can be stored in computer-readable storage medium, it is seen then that the terminal comprises at least processor and storage medium.
The present embodiment provides a kind of processing method of process, and Fig. 3 is the processing method of the process in the embodiment of the present invention one Schematic flow sheet, with reference to shown in figure 3, the processing method of above-mentioned process includes:
S301:Obtain and internal storage state is not used;
Specifically, when terminal is in running order, the Installed System Memory of terminal can be divided into using internal memory and be not used interior Deposit, when the unused internal memory of terminal is less, the system in case of system halt caused by the Installed System Memory deficiency of terminal can be caused or restarted, that , in order to reduce the system of terminal due to be not used low memory caused by deadlock and restart, to obtain in real time unused Internal storage state.
Wherein, above-mentioned terminal can be mobile phone, tablet personal computer, intelligent television etc., and here, the embodiment of the present invention, which is not done, to be had Body limits.
Wherein, the system of above-mentioned terminal can be Windows systems, android system or IOS systems, here, this hair Bright embodiment is not specifically limited.
Internal storage state, which is not used, in above-mentioned acquisition to include:The size of internal memory is not used in the Installed System Memory of computing terminal, Determine to be not used the ratio of total internal memory shared by internal memory, so that it is determined that going out the state of the unused internal memory corresponding to the ratio;
Internal storage state, which is not used, in above-mentioned acquisition to include:The size of internal memory is used in the Installed System Memory of computing terminal, The ratio using total internal memory shared by internal memory is determined, so that it is determined that going out the state of unused internal memory;Here, the embodiment of the present invention is not It is specifically limited.
S302:It is determined that when unused internal storage state is preset state, from default preset state and pair of priority limit In should being related to, determine that priority limit corresponding to internal storage state is not used;
In S301, after getting unused internal storage state, judge currently whether unused internal storage state is default shape State, when unused internal storage state is not preset state, illustrate that the size of current unused internal memory is in relatively well-to-do State, it is not necessary to collection process reclaims internal memory, so, it is not necessary to release processing is carried out to process.
When unused internal storage state is preset state, illustrate, the size of current unused internal memory is in relatively tight State, it is necessary to collection process with releasing memory, so, first from default preset state and the corresponding relation of priority limit In, determine that priority limit corresponding to internal storage state is not used, here, it is necessary to which explanation, each preset state are all right There should be a kind of priority limit;So, corresponding priority limit can be determined according to the current internal storage state that is not used.
S303:In the process of priority limit corresponding to unused internal storage state is fallen into, by the process of highest priority It is defined as journey to be entered;
In S302, determine to be not used corresponding to internal storage state after priority limit, in order to which the process of killing is to discharge Internal memory is, it is necessary to first determine journey to be entered, also, in order to meet the needs of client, it is also necessary to according to unused internal storage state pair The priority limit answered determines journey to be entered so that the journey to be entered determined since the minimum process of significance level, with Prevent from killing important process to be inconvenient caused by user for releasing memory.
For above-mentioned priority, in actual applications, carried out so that the system of above-mentioned terminal is android system as an example Illustrate, in the original lowmemorykiller mechanism of android system, the priority of android system with symbol ADJ come Represent, ADJ values typically between 0-1000, wherein, the significance level of process is higher corresponding to the smaller explanation of ADJ values, then, quilt The priority of recovery is lower, and the significance level of process is lower corresponding to the bigger explanation of ADJ values, then, the priority being recovered It is higher.
Fig. 4 is a kind of arrangement schematic diagram of process in the embodiment of the present invention one, as shown in figure 4, process includes five Process, is process A, process B, process C, process D and process E respectively, wherein, process A ADJ values are 990, process B ADJ values For 960, process C ADJ values are 660, and process D ADJ values are 130, and process E ADJ values are 80;Priority entering from high to low Journey is followed successively by:Process A, process B, process C, process D and process E.
So, in S303, in the process of priority limit corresponding to unused internal storage state is fallen into, by priority most High is defined as journey to be entered, that is, will fall into significance level in the process of priority limit corresponding to unused internal storage state Minimum process is first defined as journey to be entered, then, the demand of the user met while releasing memory.
Wherein, above-mentioned process can be process corresponding to third party application, can also terminal system program it is corresponding Process, here, the embodiment of the present invention is not specifically limited.
S304:Kill journey to be entered;
After journey to be entered is determined in S303, in order to reclaim internal memory, it is necessary to kill the journey to be entered determined, its In, the result that kills journey to be entered can be failure or successfully, illustrate in two kinds of situation below.
S305:Kill when journey failure is entered, in remaining process beyond the process for losing and losing that kills off, redefine and treat Journey is entered, and kills journey to be entered again;
When killing when journey failure is entered, the journey to be entered for illustrating to determine is the process for killing not fall, in order to discharge Go out internal memory, it is necessary to redefine journey to be entered, also, in order to prevent that the journey to be entered redefined from being the process killing not fall, that , in S305, in remaining process beyond the process for losing and losing that kills off, journey to be entered is redefined, is then back to S304.
According to S305 and S304 repetitive cyclings, until finding not killing after having traveled through all processes successfully to wait to kill During process, return to S301, currently unused internal storage state, release process reclaim the mesh of internal memory to reach for monitoring in real time 's.
So, it can prevent the system repeatedly of terminal from reclaim caused system in case of system halt or again to killing the process do not fallen Open.
S306:Kill when it is successfully to enter journey, reacquire and internal storage state is not used.
When killing when Cheng Chenggong is entered, illustrate to release process, reached the purpose of recovery internal memory, then, now need Currently unused internal storage state is reacquired, that is, returns to S301.
For example, when current process is as shown in Figure 4, wherein, the ADJ values of the process A in Fig. 4 are 990, process B ADJ It is worth for 660, process C ADJ values are 240, and process D ADJ values are 130, and process E ADJ values are 80;Fig. 5 is implemented for the present invention A kind of optional process arrangement schematic diagram in example two, when the unused state for getting terminal is NORMAL, is determined Priority limit corresponding to NORMAL is [900,1000], and highest priority is defined as in the process that will fall into [900,1000] Journey to be entered, then process A is defined as journey to be entered, when killing successfully, as shown in figure 5, release process A, returns to S301;This Sample, repetitive cycling, currently unused internal storage state, release process reclaim the purpose of internal memory to reach for monitoring in real time.
A kind of processing method for process that the embodiment of the present invention is provided, first, obtain and internal storage state is not used;Secondly, When determining that it is preset state that internal storage state, which is not used, from the corresponding relation of default preset state and priority limit, really Make priority limit corresponding to unused internal storage state;Falling into the process of priority limit corresponding to unused internal storage state In, the process of highest priority is defined as journey to be entered;Then, journey to be entered is killed;Kill wait enter journey failure when, except Kill in remaining process beyond the process of failure, redefine journey to be entered, and kill journey to be entered again;In this way, can be with The process do not fallen will be killed by, which avoiding, repeats;That is, remaining lost by being killed off in process beyond the process lost is entered Journey to be entered is redefined in journey, avoid the occurrence of individual process kill caused by computer system low free memory shape Condition occurs, and so as to improve Memory recycle efficiency, and then improves the performance of computer system.
Embodiment two
Based on foregoing embodiment, the present embodiment provides a kind of processing method of process, and this method can apply to terminal, The function that the processing method of the process is realized can be realized by the processor caller code in terminal, certain program Code can be stored in computer-readable storage medium, it is seen then that the terminal comprises at least processor and storage medium.
It is above-mentioned in order to determine the corresponding relation of preset state and priority limit on the basis of above-described embodiment one The processing method of process can also include:
For different unused internal storage state determine corresponding to priority limit, set different unused internal storage states with Corresponding relation between priority limit;
Corresponding relation between unused internal storage state and priority limit is added to preset state and priority limit Corresponding relation in.
Before the processing method of executive process, the corresponding relation of preset state and priority is first determined, it is specific next Say, preset state includes various states, and corresponding priority limit is determined for each state so that each default pair There should be a kind of priority limit, and each process has priority, then so that each preset state is all corresponding with one The process in individual priority limit section.
Or illustrated so that the system of above-mentioned terminal is android system as an example, it is original in android system In lowmemorykiller mechanism, the priority of android system is represented with symbol ADJ, in actual applications, according to entering Process can be divided into five classes in table 1 below by the priority of journey:
Process status Process priority
Foreground process ADJ>=0 and ADJ<100
It can be seen that process ADJ>=100 and ADJ<200
Can aware processes ADJ>=200 and ADJ<300
Service processes ADJ>=300 and ADJ<900
Background process ADJ>=900 and ADJ<=1000
Table 1
In table 1 above, the ADJ values section of foreground process for [0,100), represent to be significance level highest for user Process section, belong to the minimum section of priority in release process;It can be seen that the ADJ values section of process for [100,200), represent For user for significance level less than foreground process higher than can aware processes process, belong to the higher process area of significance level Between, the relatively low section of priority is belonged in release process;Can aware processes ADJ values section for [200,300), represent to user For for significance level less than visible process be higher than service processes process, belong to the medium process section of significance level, discharge Belong to the moderate section of priority in process;The ADJ values section of service processes for [300,900), represent to attach most importance to for user Want degree less than can aware processes be higher than the process of background process, belong to the relatively low process section of significance level, in release process Belong to the higher section of priority;The ADJ values section of background process is [900,1000], represents to be significance level for user Less than the process of service processes, belong to the minimum process section of significance level, the section of highest priority is belonged in release process;
It can be seen that process can be divided into above-mentioned five kinds of states according to the significance level for user, in order to meet the need of user The scope, it is necessary to for different current unused internal storage state setting different priorities is sought, in a kind of optional embodiment, Above-mentioned preset state can include one kind in following state:
Normal NORMAL, medium MODERATE, low LOW, CRITICAL of the utmost importance, EXHAUSTED is exhausted, wherein, currently When unused internal storage state is NORMAL, represent that current unused internal memory from the state for normally just entering anxiety, does not make currently When with internal storage state being MODERATE, represent that current unused internal memory enters relatively nervous state, internal memory is currently not used When state is LOW, represent that currently unused internal memory comes into very nervous state, currently unused internal storage state is During CRITICAL, represent that currently unused internal memory comes into the state to put upon the full stretch, currently unused internal storage state is During EXHAUSTED, represent that currently unused internal memory comes into the state exhausted, table 2 below is preferential corresponding to preset state Level scope:
Internal storage state is not used Priority limit
NORMAL ADJ>=900 and ADJ<=1000
MODERATE ADJ>=300 and ADJ<=1000
LOW ADJ>=200 and ADJ<=1000
CRITICAL ADJ>=100 and ADJ<=1000
EXHAUSTED ADJ>=0 and ADJ<=1000
Table 2
In above-mentioned table 2, when current unused internal storage state is NORMAL, ADJ sections are corresponding to priority limit [900,1000], the process for representing to kill when unused state is NORMAL is only background process;It is not used when current When internal storage state is MODERATE, ADJ sections corresponding to priority limit are [300,1000], represent that unused state is The process that can be killed during MODERATE is background process and service processes;When current unused internal storage state is LOW, preferentially ADJ sections corresponding to level scope are [200,1000], and the process for representing to kill when unused state is LOW is that backstage is entered Journey, service processes and can aware processes;When current unused internal storage state is CRITICAL, ADJ corresponding to priority limit Section is [100,1000], the process that representing unused state can kill when being CRITICAL be background process, service processes, Can aware processes and visible process;When current unused internal storage state is EXHAUSTED, ADJ areas corresponding to priority limit Between be [0,1000], the process that representing unused state can kill when being EXHAUSTED be background process, service processes, can Aware processes, visible process and foreground process.
When killing when journey failure is entered, in order to redefine out journey to be entered, in a kind of optional embodiment, Fig. 6 For the schematic flow sheet of the processing method of the process in the embodiment of the present invention two, lost as shown in fig. 6, killing journey to be entered in S305 When losing, in remaining process beyond the process for losing and losing that kills off, journey to be entered is redefined, and kills journey to be entered again, It can include:
S601:When falling into the process of priority limit corresponding to unused internal storage state, kill off lose the process that loses with It is outer when process be present, there will be process in highest priority process, be redefined as journey to be entered;
First, to judge to fall into the process of priority limit corresponding to unused internal storage state, kill off and lose entering of losing Whether process also be present beyond journey, if in the presence of illustrate the process that can be also killed in current unused internal storage state, then, it will deposit Process in the process of highest priority be defined as journey to be entered, if not killing success always, the like, until it is current not The process of corresponding priority limit, which is all traversed, in use state finishes.
S602:When falling into the process of priority limit corresponding to unused internal storage state, kill off lose the process that loses with When process is not present outside, updates and internal storage state is not used;
S603:According to the unused internal storage state after renewal, journey to be entered is redefined.
When judging to obtain falling into the process of priority limit corresponding to unused internal storage state, the process for losing and losing is killed off Whether process is not present in addition, has illustrated to fall into the process of priority limit corresponding to the current unused state determined time Go through and finish, and kill, in order to discharge process to reclaim internal memory, it is necessary to update unused internal storage state, so as to according to renewal Rear unused internal storage state redefines out journey to be entered.
In specific implementation process, in order to update unused internal storage state, when falling into unused internal storage state pair in S402 In the process for the priority limit answered, kill off and lose when process is not present beyond the process that loses, the unused internal storage state of renewal can With including:
When falling into the process of priority limit corresponding to unused internal storage state, kill off and do not deposited beyond the process for losing and losing In process, from preset state and priority corresponding relations, unused internal storage state is updated to internal storage state is not used Internal storage state is not used in next-hop.
It is by taking Andriod systems as an example, when judgement obtains falling into priority model corresponding to unused internal storage state further below In the process enclosed, kill off and process be not present beyond the process for losing and losing, then, from preset state and priority corresponding relations, The next-hop state of current unused internal storage state is first found out, then, unused internal storage state is updated to internal memory is not used The next-hop state of state;For example, currently unused internal storage state is NORMAL, then NORMAL next-hop state is MODERATE, then unused internal storage state is updated to MODERATE;Currently unused internal storage state is MODERATE, then MODERATE next-hop state is LOW, then unused internal storage state is updated into LOW;Currently unused internal storage state is LOW, then LOW next-hop state is CRITICAL, then unused internal storage state is updated into CRITICAL;It is current to be not used Internal storage state is CRITICAL, then CRITICAL next-hop state is EXHAUSTED, then updates unused internal storage state For EXHAUSTED;Currently unused internal storage state is EXHAUSTED, then next-hop state is not present in EXHAUSTED, then returns S301 is back to, so, repetitive cycling, currently unused internal storage state, release process reclaim the mesh of internal memory to reach for monitoring in real time 's.
In specific implementation process, in order to redefine out journey to be entered, according to the unused internal memory after renewal in S403 State, journey to be entered is redefined, can included:
From preset state and priority corresponding relations, priority corresponding to the unused internal storage state after renewal is determined Scope;It will fall into the process of priority limit corresponding to the unused internal storage state after updating, the process weight of highest priority Newly it is defined as journey to be entered.
Wherein, update and be not used after internal storage state in S402, can be true from preset state and priority corresponding relations Priority limit corresponding to the unused internal storage state after renewal is made, for example, currently unused internal storage state is updated to MODERATE, then wait to kill by the process of priority limit corresponding to MODERATE, the process of highest priority is redefined as Process, journey to be entered is killed, killed when journey failure is entered, judgement falls into priority model corresponding to the unused internal storage state In the process enclosed, kill off and lose beyond the process that loses whether process also be present, if in the presence of, there will be process in highest priority Process, be redefined as the journey to be entered;If being not present, update and internal storage state is not used, wait to enter so as to redefine Journey, until having traveled through all processes does not discharge process;Or kill when it is successfully to enter journey, reacquire in being not used State is deposited, currently unused internal storage state, release process reclaim the purpose of internal memory to reach for monitoring in real time.
For example, Fig. 7 is the optional process arrangement schematic diagram of another kind in the embodiment of the present invention two, and current process is During Fig. 4, wherein, the ADJ values of the process A in Fig. 4 are 990, and process B ADJ values are 660, and process C ADJ values are 240, process D ADJ values be 130, process E ADJ values are 80;When the unused state for getting terminal is NORMAL, NORMAL is determined Corresponding priority limit is [900,1000], in the process that [900,1000] will be fallen into highest priority be defined as waiting enter Journey, then process A is defined as journey to be entered, when killing unsuccessfully, judgement is fallen into the process of [900,1000], is killed off to lose and is lost Process beyond whether there is process, judge process B be present, then process B be defined as journey to be entered, when killing successfully, such as Shown in Fig. 7, process B is discharged;
Fig. 8 is another optional process arrangement schematic diagram in the embodiment of the present invention two, when process A and process B are killed Lose when losing, judgement is fallen into the process of [900,1000], is killed off and whether there is process beyond the process for losing and losing, and judges not deposit In process, then internal storage state MODERATE is not used in the current next-hop that internal storage state renewal NORMAL is not used, Priority limit corresponding to MODERATE is [300,1000], will be fallen into the process of [300,1000], highest priority is entered Journey C is redefined as journey to be entered, and kills process C, when killing C successes, as shown in figure 8, release process C;
In addition, when judging whether kill process C succeeds, if failure, the like, until all processes have been traveled through, if Success, reacquire and internal storage state is not used, the current unused internal storage state of monitoring in real time, release process is to reach recovery internal memory Purpose.
Embodiment three
Based on foregoing embodiment of the method, the present embodiment provides a kind of terminal, and Fig. 9 is the terminal in the embodiment of the present invention three Structural representation, with reference to shown in figure 9, the terminal includes processor 91, memory 92 and communication bus 93;Above-mentioned communication bus 93 are used to realize the connection communication between processor 91 and memory 92;Above-mentioned processor 91 is used to perform to store in memory 92 Process processing routine, to realize following steps:
Obtain and internal storage state is not used;It is determined that internal storage state is not used when be preset state, from default preset state and In the corresponding relation of priority limit, determine that priority limit corresponding to internal storage state is not used;Falling into unused internal memory In the process of priority limit corresponding to state, the process of highest priority is defined as journey to be entered;Kill journey to be entered;Kill Fall when journey failure is entered, in remaining process beyond the process for losing and losing that kills off, redefine journey to be entered, and kill again Fall journey to be entered;Kill when it is successfully to enter journey, reacquire and internal storage state is not used.
In order to determine the corresponding relation of preset state and priority limit, in a kind of optional embodiment, the place Reason device is additionally operable to perform the processing routine of the process, to realize following steps:
For different unused internal storage state determine corresponding to priority limit, set different unused internal storage states with Corresponding relation between priority limit;Corresponding relation between unused internal storage state and priority limit is added to default In the corresponding relation of state and priority limit.
In order to redefine journey to be entered to kill journey to be entered again, in a kind of optional embodiment, except killing In remaining process beyond the process of failure, journey to be entered is redefined, the processor is additionally operable to perform the place of the process Program is managed, to realize following steps:
When falling into the process of priority limit corresponding to unused internal storage state, kill off beyond the process for losing and losing and exist During process, there will be process in highest priority process, be redefined as journey to be entered;When falling into unused internal storage state In the process of corresponding priority limit, kill off and lose when process is not present beyond the process that loses, the unused internal storage state of renewal; According to the unused internal storage state after renewal, journey to be entered is redefined.
It is corresponding when falling into unused internal storage state in a kind of optional embodiment in order to update unused internal storage state Priority limit process in, kill off and lose when process is not present beyond the process that loses, the unused internal storage state of renewal is described Processor is additionally operable to perform the processing routine of the process, to realize following steps:
When falling into the process of priority limit corresponding to unused internal storage state, kill off and do not deposited beyond the process for losing and losing In process, from preset state and priority corresponding relations, unused internal storage state is updated to internal storage state is not used Internal storage state is not used in next-hop.
In order to redefine journey to be entered, in a kind of optional embodiment, according to the unused internal storage state after renewal, Journey to be entered is redefined, the processor is additionally operable to perform the processing routine of the process, to realize following steps:
From preset state and priority corresponding relations, priority corresponding to the unused internal storage state after renewal is determined Scope;It will fall into the process of priority limit corresponding to the unused internal storage state after updating, the process weight of highest priority Newly it is defined as journey to be entered.
Wherein, above-mentioned preset state includes one kind in following state:Normal NORMAL, medium MODERATE, low LOW, CRITICAL of the utmost importance, exhaust EXHAUSTED.
Example IV
Based on foregoing embodiment of the method, the present embodiment provides a kind of computer-readable recording medium, and Figure 10 is the present invention The structural representation of computer-readable recording medium in example IV, as shown in Figure 10, the computer-readable recording medium 101 The processing routine of process is stored with, one or more as described above implement is realized when the processing routine of above-mentioned process is executed by processor The step of processing method of process described in example.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of processing method of process, it is characterised in that methods described includes:
Obtain and internal storage state is not used;
It is corresponding with priority limit from the default preset state when to determine the unused internal storage state be preset state In relation, priority limit corresponding to the unused internal storage state is determined;
In the process of priority limit corresponding to the unused internal storage state is fallen into, the process of highest priority is defined as Journey to be entered;
Kill the journey to be entered;
Described in killing when journey failure is entered, in remaining process beyond the process for losing and losing that kills off, redefine and wait to enter Journey, and the journey to be entered is killed again;
Kill described when it is successfully to enter journey, the unused internal storage state of reacquisition.
2. according to the method for claim 1, it is characterised in that methods described also includes:
For different unused internal storage state determine corresponding to priority limit, set different unused internal storage states with it is preferential Corresponding relation between level scope;
Corresponding relation between the unused internal storage state and priority limit is added to the preset state and priority In the corresponding relation of scope.
3. according to the method for claim 1, it is characterised in that described to kill off remaining process beyond the process for losing and losing In, the journey to be entered is redefined, including:
When falling into the process of priority limit corresponding to the unused internal storage state, kill off beyond the process for losing and losing and exist During process, there will be process in highest priority process, be redefined as the journey to be entered;
When falling into the process of priority limit corresponding to the unused internal storage state, kill off and do not deposited beyond the process for losing and losing In process, the unused internal storage state is updated;
According to the unused internal storage state after the renewal, the journey to be entered is redefined.
4. according to the method for claim 3, it is characterised in that described excellent corresponding to the unused internal storage state when falling into In the process of first level scope, kill off and lose when process is not present beyond the process that loses, update the unused internal storage state, wrap Include:
When falling into the process of priority limit corresponding to the unused internal storage state, kill off and do not deposited beyond the process for losing and losing In process, from the preset state and priority corresponding relations, the unused internal storage state is updated to described not make Internal storage state is not used with the next-hop of internal storage state.
5. according to the method for claim 3, it is characterised in that the unused internal storage state according to after the renewal, The journey to be entered is redefined, including:
From the preset state and priority corresponding relations, determine excellent corresponding to the unused internal storage state after the renewal First level scope;
It will fall into the process of priority limit corresponding to the unused internal storage state after the renewal, the process of highest priority It is redefined as the journey to be entered.
6. according to the method for claim 1, it is characterised in that the preset state includes one kind in following state:
Normal NORMAL, medium MODERATE, low LOW, CRITICAL of the utmost importance, exhaust EXHAUSTED.
7. a kind of terminal, it is characterised in that the terminal includes processor, memory and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used for the processing routine for performing the process stored in memory, to realize following steps:
Obtain and internal storage state is not used;
It is corresponding with priority limit from the default preset state when to determine the unused internal storage state be preset state In relation, priority limit corresponding to the unused internal storage state is determined;
In the process of priority limit corresponding to the unused internal storage state is fallen into, the process of highest priority is defined as Journey to be entered;Kill the journey to be entered;
Described in killing when journey failure is entered, in remaining process beyond the process for losing and losing that kills off, redefine and wait to enter Journey, and the journey to be entered is killed again;
Kill described when it is successfully to enter journey, the unused internal storage state of reacquisition.
8. terminal according to claim 7, it is characterised in that the processor is additionally operable to perform the processing journey of the process Sequence, to realize following steps:
For different unused internal storage state determine corresponding to priority limit, set different unused internal storage states with it is preferential Corresponding relation between level scope;
Corresponding relation between the unused internal storage state and priority limit is added to the preset state and priority In the corresponding relation of scope.
9. terminal according to claim 7, it is characterised in that described to kill off remaining process beyond the process for losing and losing In, the journey to be entered is redefined, the processor is additionally operable to perform the processing routine of the process, to realize following walk Suddenly:
When falling into the process of priority limit corresponding to the unused internal storage state, kill off beyond the process for losing and losing and exist During process, there will be process in highest priority process, be redefined as the journey to be entered;
When falling into the process of priority limit corresponding to the unused internal storage state, kill off and do not deposited beyond the process for losing and losing In process, the unused internal storage state is updated;
According to the unused internal storage state after the renewal, the journey to be entered is redefined.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable medium storage has the processing journey of process Sequence, the processing of the process as any one of claim 1 to 6 is realized when the processing routine of the process is executed by processor The step of method.
CN201710481893.XA 2017-06-22 2017-06-22 A kind of processing method of process, terminal and computer-readable recording medium Withdrawn CN107357655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710481893.XA CN107357655A (en) 2017-06-22 2017-06-22 A kind of processing method of process, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710481893.XA CN107357655A (en) 2017-06-22 2017-06-22 A kind of processing method of process, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107357655A true CN107357655A (en) 2017-11-17

Family

ID=60273217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710481893.XA Withdrawn CN107357655A (en) 2017-06-22 2017-06-22 A kind of processing method of process, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107357655A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908478A (en) * 2017-11-30 2018-04-13 努比亚技术有限公司 Memory method for cleaning, mobile terminal and computer-readable recording medium
CN110347434A (en) * 2019-05-31 2019-10-18 口碑(上海)信息技术有限公司 A kind of processing method and device for calculating equipment application

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092689A (en) * 2013-01-10 2013-05-08 深圳市金立通信设备有限公司 Method and terminal of process management
CN103544063A (en) * 2013-09-30 2014-01-29 三星电子(中国)研发中心 Method and device for removing processes applied to Android platform
CN103914322A (en) * 2013-01-05 2014-07-09 腾讯科技(深圳)有限公司 Terminal acceleration method and terminal
CN104199669A (en) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 Method and device for managing application program processes
CN105718791A (en) * 2014-12-01 2016-06-29 Tcl集团股份有限公司 Method and apparatus for protecting application program data
CN106021130A (en) * 2016-05-10 2016-10-12 北京小米移动软件有限公司 Memory processing method and device
CN106407000A (en) * 2015-08-10 2017-02-15 联想移动通信科技有限公司 Terminal memory optimization method, apparatus and system
CN106844159A (en) * 2017-02-03 2017-06-13 广东欧珀移动通信有限公司 A kind of information acquisition method, device and intelligent terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914322A (en) * 2013-01-05 2014-07-09 腾讯科技(深圳)有限公司 Terminal acceleration method and terminal
CN103092689A (en) * 2013-01-10 2013-05-08 深圳市金立通信设备有限公司 Method and terminal of process management
CN103544063A (en) * 2013-09-30 2014-01-29 三星电子(中国)研发中心 Method and device for removing processes applied to Android platform
CN104199669A (en) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 Method and device for managing application program processes
CN105718791A (en) * 2014-12-01 2016-06-29 Tcl集团股份有限公司 Method and apparatus for protecting application program data
CN106407000A (en) * 2015-08-10 2017-02-15 联想移动通信科技有限公司 Terminal memory optimization method, apparatus and system
CN106021130A (en) * 2016-05-10 2016-10-12 北京小米移动软件有限公司 Memory processing method and device
CN106844159A (en) * 2017-02-03 2017-06-13 广东欧珀移动通信有限公司 A kind of information acquisition method, device and intelligent terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908478A (en) * 2017-11-30 2018-04-13 努比亚技术有限公司 Memory method for cleaning, mobile terminal and computer-readable recording medium
CN107908478B (en) * 2017-11-30 2021-11-16 努比亚技术有限公司 Memory cleaning method, mobile terminal and computer readable storage medium
CN110347434A (en) * 2019-05-31 2019-10-18 口碑(上海)信息技术有限公司 A kind of processing method and device for calculating equipment application

Similar Documents

Publication Publication Date Title
CN107249074A (en) Application program quick start method, mobile terminal and computer-readable recording medium
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN106961706A (en) Method, mobile terminal and the computer-readable recording medium of communication pattern switching
CN107133092A (en) Multi-thread synchronization processing method, terminal and computer-readable recording medium
CN107436779A (en) A kind of application management method, equipment and computer-readable recording medium
CN107343083A (en) One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107357656A (en) A kind of memory allocation method, mobile terminal and computer-readable recording medium
CN107329682A (en) Edge exchange method and mobile terminal
CN107809536A (en) Display screen fingerprint recognition processing method, mobile terminal and storage medium
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN107656774A (en) Adaptive regulation method, device, terminal device and the storage medium of systematic parameter
CN107844230A (en) A kind of advertisement page method of adjustment, mobile terminal and computer-readable recording medium
CN107580350A (en) A kind of signal intensity switching method, equipment and computer-readable recording medium
CN107273433A (en) A kind of file scanning method, equipment and computer-readable recording medium
CN107678698A (en) Data cached method for cleaning, server, terminal and computer-readable recording medium
CN107172605A (en) A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107390856A (en) A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption
CN107147781A (en) A kind of dialing process method, mobile terminal and computer-readable recording medium
CN107846725A (en) A kind of processing method of notification message, terminal and storage medium
CN108021220A (en) A kind of terminal applies control method, terminal and computer-readable recording medium
CN107562343A (en) A kind of interactive regulation and control method, equipment and computer-readable recording medium
CN110069167A (en) Touch point sweep-out method, mobile terminal and computer readable storage medium
CN109862184A (en) Terminal and its resource management-control method, computer readable storage medium
CN107133108A (en) Implementation method, terminal, server and the computer-readable recording medium of distributed complex lock
CN107357655A (en) A kind of processing method of process, terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20171117