CN105975305B - OS Events processing method, device and terminal - Google Patents

OS Events processing method, device and terminal Download PDF

Info

Publication number
CN105975305B
CN105975305B CN201610285448.1A CN201610285448A CN105975305B CN 105975305 B CN105975305 B CN 105975305B CN 201610285448 A CN201610285448 A CN 201610285448A CN 105975305 B CN105975305 B CN 105975305B
Authority
CN
China
Prior art keywords
operating system
mobile terminal
event
memory space
module
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.)
Active
Application number
CN201610285448.1A
Other languages
Chinese (zh)
Other versions
CN105975305A (en
Inventor
闫昊
张晓亮
王舒捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610285448.1A priority Critical patent/CN105975305B/en
Publication of CN105975305A publication Critical patent/CN105975305A/en
Application granted granted Critical
Publication of CN105975305B publication Critical patent/CN105975305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure provides a kind of OS Events processing method, device and terminal, a kind of OS Events processing method, the operating system applied to mobile terminal, which comprises obtain the available memory space capacity of mobile terminal;When determining that the available memory space capacity is less than preset threshold, according to preset event handling strategy, the event of the operation in the operating system is controlled;Wherein, the event handling strategy reduces the event run in the operating system for controlling the operating system.When the available memory space deficiency of mobile terminal, the mobile terminal is easy to appear Caton problem, in view of this, disclosed technique scheme can be when the free memory capacity of mobile terminal be lower, the event number run in operating system by reducing the mobile terminal, the occupied dosage of memory is reduced, to achieve the purpose that guarantee that running of mobile terminal is smooth, solves the problems, such as Caton, to be that the use of user offers convenience.

Description

OS Events processing method, device and terminal
Technical field
This disclosure relates to field of terminal technology, in particular to a kind of OS Events processing method, device and terminal.
Background technique
In recent years, the fast development of terminal technology makes the type of mobile terminal and function more and more abundant, with intelligent hand For machine, smart phone can provide traditional call function not only for user, can also provide the amusement function such as playing audio-video Energy.But when the operating system duration of mobile terminal is longer or the operating system in the application program that runs it is more When, it the problems such as which is easy to appear operation not smooth, Caton, can make troubles to the use of user.
Summary of the invention
To solve the above-mentioned problems, the disclosure provides a kind of OS Events processing method, device and terminal.
Specifically, the disclosure is achieved by the following technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of OS Events processing method is provided, is applied to mobile whole The operating system at end, which comprises
Obtain the available memory space capacity of mobile terminal;
When determining that the available memory space capacity is less than preset threshold, according to preset event handling strategy, control The event of operation in the operating system;
Wherein, the event handling strategy reduces the thing run in the operating system for controlling the operating system Part.
In one embodiment, described according to preset event handling strategy, control the thing of the operation in the operating system Part, comprising:
It detects and application program whether occurs in the operating system without response events;
When detecting that generation application program is without response events in the operating system, the operating system is prevented to execute The operation of dump storehouse.
In one embodiment, described according to preset event handling strategy, control the thing of the operation in the operating system Part, comprising:
Detect the operating system whether the changed message of broadcasting network;
When detecting the changed message of the operating system broadcasting network, intercept what the operating system was broadcasted The changed message of network.
In one embodiment, described according to preset event handling strategy, control the thing of the operation in the operating system Part, comprising:
Obtain number of each application program in front stage operation of running background in preset duration;
Front stage operation number is met to the closing application program of default closedown condition.
In one embodiment, the method also includes:
When determining that the available memory space capacity is less than preset threshold, output is for guiding user to clear up memory headroom Prompting message;
It receives user and is directed to the cleaning selection operation that the prompting message is made, wherein the cleaning selection operation is directed toward The content of the specified cleaning of the user;
According to the cleaning selection operation, the content in memory headroom is cleared up.
According to the second aspect of an embodiment of the present disclosure, a kind of OS Events processing unit is provided, is applied to mobile whole The operating system at end, described device include:
Module is obtained, is configured as obtaining the available memory space capacity of mobile terminal;
Control module is configured as being less than default threshold in the available memory space capacity for determining that the acquisition module is got In the case where value, according to preset event handling strategy, the event of the operation in the operating system is controlled;
Wherein, the event handling strategy reduces the thing run in the operating system for controlling the operating system Part.
In one embodiment, the control module, comprising:
First detection sub-module is configured as being less than in the available memory space capacity for determining that the acquisition module is got In the case where preset threshold, detects and application program whether occurs in the operating system without response events;
Operation prevents submodule, is configured as the resistance in the case where the testing result of first detection sub-module, which is, is Only the operating system executes the operation of dump storehouse.
In one embodiment, the control module, comprising:
Second detection sub-module is configured as being less than in the available memory space capacity for determining that the acquisition module is got In the case where preset threshold, detect the operating system whether the changed message of broadcasting network;
Message block submodule is configured as blocking in the case where the testing result of second detection sub-module, which is, is Cut the changed message of network that the operating system is broadcasted.
In one embodiment, the control module, comprising:
Number of run acquisition submodule is configured as in the available memory space capacity for determining that the acquisition module is got In the case where preset threshold, number of each application program in front stage operation of running background in preset duration is obtained;
Closing application program submodule, the application program for being configured as meeting front stage operation number default closedown condition are closed It closes.
In one embodiment, described device further include:
Output module is configured as being less than default threshold in the available memory space capacity for determining that the acquisition module is got In the case where value, the prompting message for guiding user to clear up memory headroom is exported;
Receiving module is configured as receiving the cleaning selection that user makes for the prompting message of output module output Operation, wherein the cleaning selection operation is directed toward the content of the specified cleaning of the user;
Cleaning modul is configured as the cleaning selection operation received according to the receiving module, in memory headroom Content is cleared up.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, the terminal includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the available memory space capacity of mobile terminal;
When determining that the available memory space capacity is less than preset threshold, according to preset event handling strategy, control The event of operation in the operating system;
Wherein, the event handling strategy reduces the thing run in the operating system for controlling the operating system Part.
When the available memory space deficiency of mobile terminal, which is easy to appear Caton problem, in view of this, this Embodiment can be run in the operating system by reducing the mobile terminal when the free memory capacity of mobile terminal is lower Event number, to reduce the occupied dosage of memory, to achieve the purpose that guarantee that running of mobile terminal is smooth, solves the problems, such as Caton, To offer convenience for the use of user.
The present embodiment can be in the insufficient situation of available memory space of mobile terminal, through the behaviour for preventing mobile terminal Make the mode that system executes dump stack manipulation, to reduce the occupied dosage of memory, with reach guarantee running of mobile terminal it is smooth, The purpose of Caton is solved the problems, such as, so that the use for user offers convenience.
The present embodiment can be in the insufficient situation of available memory space of mobile terminal, through the behaviour for intercepting mobile terminal Make the mode of the changed message of network of system broadcasts, to reduce the occupied dosage of memory, to reach guarantee mobile terminal Operation is smooth, solves the problems, such as the purpose of Caton, so that the use for user offers convenience.
The present embodiment can be in the insufficient situation of available memory space of mobile terminal, and reminding user to select can in memory With the content of cleaning, to reduce the occupied dosage of memory, to reach the mesh for guaranteeing that running of mobile terminal is smooth, solves the problems, such as Caton , so that the use for user offers convenience.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of disclosure flow chart of OS Events processing method shown according to an exemplary embodiment;
Fig. 2 is the process of the disclosure another OS Events processing method shown according to an exemplary embodiment Figure;
Fig. 3 is the process of the disclosure another OS Events processing method shown according to an exemplary embodiment Figure;
Fig. 4 is a kind of disclosure application scenarios of OS Events processing method shown according to an exemplary embodiment Figure;
Fig. 5 is a kind of disclosure block diagram of OS Events processing unit shown according to an exemplary embodiment;
Fig. 6 is the block diagram of the disclosure another OS Events processing unit shown according to an exemplary embodiment;
Fig. 7 is the block diagram of the disclosure another OS Events processing unit shown according to an exemplary embodiment;
Fig. 8 is the block diagram of the disclosure another OS Events processing unit shown according to an exemplary embodiment;
Fig. 9 is the block diagram of the disclosure another OS Events processing unit shown according to an exemplary embodiment;
Figure 10 is a kind of disclosure one for OS Events processing unit shown according to an exemplary embodiment Structural schematic diagram.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is only to be not intended to be limiting the disclosure merely for for the purpose of describing particular embodiments in the term that the disclosure uses. The "an" of the singular used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where disclosure range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
In recent years, the fast development of terminal technology makes the type of mobile terminal and function more and more abundant, with intelligent hand For machine, smart phone can provide traditional call function not only for user, can also provide the amusement function such as playing audio-video Energy.But when the operating system duration of mobile terminal is longer or the operating system in the application program that runs it is more When, it the problems such as which is easy to appear operation not smooth, Caton, can make troubles to the use of user.On solving Problem is stated, present disclose provides a kind of OS Events processing method, device and terminals.
A kind of OS Events processing method provided first below the disclosure is introduced.
As shown in Figure 1, Fig. 1 is a kind of disclosure OS Events processing method shown according to an exemplary embodiment Flow chart, applied to the operating system of mobile terminal, this method be may comprise steps of:
In a step 101, the available memory space capacity of mobile terminal is obtained.
Mobile terminal in the present embodiment may include: smart phone, tablet computer etc..Operation system in the present embodiment System includes but is not limited to following system: Android system, Windows system and IOS system.
It is understood that the memory size of mobile terminal is limited, the application journey run in the system of mobile terminal Sequence can occupy a part of memory headroom.With the increase of the operating system duration of mobile terminal, the application that is run in system Program is more and more, occupied by more and more application programs that the memory headroom of the mobile terminal can be run, correspondingly, should The available memory space of mobile terminal also can be fewer and fewer.Available memory space in the present embodiment can be understood as mobile terminal In unappropriated memory headroom.
In practical applications, mobile terminal can obtain the free memory of the mobile terminal by way of operating instruction Spatial content, in addition it is also possible to take any one free memory sky that may be implemented to obtain mobile terminal in the related technology Between capacity this purpose technology, the disclosure do not limit this.
In a step 102, when determining that above-mentioned available memory space capacity is less than preset threshold, at preset event Reason strategy, controls the event of the operation in aforesaid operations system;Wherein, above-mentioned event handling strategy is for controlling aforesaid operations system System reduces the event run in aforesaid operations system.
In view of most mobile terminal Caton problems be as mobile terminal available memory space it is insufficient caused by, because This, the present embodiment can be directed to the threshold value of equipment available memory space, i.e. preset threshold in the present embodiment by setting one, Whether the available memory space for determining mobile terminal is insufficient, if the available memory space capacity of mobile terminal is less than above-mentioned Preset threshold, then it is assumed that the available memory space of the mobile terminal is insufficient, asks at this point, being easy to produce operation portion smoothness, Caton etc. Topic.
It should be noted that being empirically worth, the preset threshold in the present embodiment can be 200M.In addition, it is contemplated that not It, can also be according to the factory memory of each mobile terminal, the value of preset threshold, this reality is arranged with the mobile terminal of hardware configuration Example is applied not limit this.
For the situation of the available memory space deficiency of mobile terminal, the present embodiment can from reduce the occupied dosage of memory, Releasing memory space angularly, the available memory space capacity of Lai Tigao mobile terminal.
In a kind of feasible embodiment, it can be simply turned off the event run in the system of mobile terminal, or Only forbid the operation of some events, or run in the system of turning-off mobile terminal event while, and forbid one The operation of a little events, the event run in the operating system to achieve the purpose that reduce the mobile terminal.
In view of when the available memory space deficiency of mobile terminal, which is easy to appear Caton problem, by upper Embodiment is stated as it can be seen that the embodiment can be when the free memory capacity of mobile terminal be lower, by reducing the mobile terminal The event number run in operating system guarantees that running of mobile terminal is smooth, solves to reduce the occupied dosage of memory to reach The purpose of Caton problem, so that the use for user offers convenience.
It is directed to the operation of some events in the system by forbidden moves terminal mentioned in embodiment illustrated in fig. 1, is come Achieve the purpose that reduce the event angle that runs in the operating system of the mobile terminal, present disclose provides corresponding embodiment, As shown in Figures 2 and 3, Fig. 2 and embodiment shown in Fig. 3 are introduced separately below.
As shown in Fig. 2, Fig. 2 is the disclosure another OS Events processing side shown according to an exemplary embodiment The flow chart of method, this method may comprise steps of:
In step 201, the available memory space capacity of mobile terminal is obtained.
In step 202, when determining that above-mentioned available memory space capacity is less than preset threshold, above-mentioned mobile terminal is detected Operating system in application program whether occurs without response events.
It, should when the application program run in Android system responds not sensitive enough for some time by taking Android system as an example Responding not sensitive enough event is ANR (Application Not Responding, application program is without response) event.
In step 203, when detecting that generation application program is without response events in aforesaid operations system, above-mentioned behaviour is prevented Make the operation that system executes dump storehouse.
Original of the operating system of mobile terminal when application program occurs without response events, for search program without response Cause can go the operation for executing dump storehouse, however, the operating system of mobile terminal is in dump storehouse, it can be by the mobile terminal All application programs of middle installation are hung up, and later all take out the storehouse of each application program, whole operation process can occupy compared with More memories.Therefore, in the situation of the available memory space deficiency of mobile terminal, it can choose and application program is occurring without response When do not go execute dump storehouse operation, i.e., do not go to grab relevant Debugging message.
As seen from the above-described embodiment, which can lead in the insufficient situation of available memory space of mobile terminal The mode for preventing the operating system of mobile terminal from executing dump stack manipulation is crossed, to reduce the occupied dosage of memory, is protected with reaching Card running of mobile terminal is smooth, solves the problems, such as the purpose of Caton, so that the use for user offers convenience.
After embodiment shown in Fig. 2 is introduced, next embodiment shown in Fig. 3 is introduced.
As shown in figure 3, Fig. 3 is the disclosure another OS Events processing side shown according to an exemplary embodiment The flow chart of method, this method may comprise steps of:
In step 301, the available memory space capacity of mobile terminal is obtained.
In step 302, when determining that above-mentioned available memory space capacity is less than preset threshold, above-mentioned mobile terminal is detected Operating system whether the changed message of broadcasting network.
When the network for detecting local environment changes, the operating system of mobile terminal can radio network within the system The changed message of network, the message can wake up the multiple application programs installed in system.
In step 303, when detecting the changed message of aforesaid operations system broadcasts network, aforesaid operations are intercepted The changed message of the network that system is broadcasted.
By above-mentioned steps 302 it is found that the changed message of network that the operating system of mobile terminal is broadcasted can be this The multiple application programs installed in system wake up, although the application program being waken up can't go to execute specific task, call out Application program this operation of waking up can occupy more memory headroom, cause heavier burden to aforesaid operations system.Therefore, it is moving The situation of the available memory space deficiency of dynamic terminal can intercept the message of the operating system broadcast of the mobile terminal, avoid this Application program in system is waken up.
As seen from the above-described embodiment, which can lead in the insufficient situation of available memory space of mobile terminal The mode for intercepting the changed message of network of operating system broadcast of mobile terminal is crossed, to reduce the occupied dosage of memory, To achieve the purpose that guarantee that running of mobile terminal is smooth, solves the problems, such as Caton, so that the use for user offers convenience.
In practical applications, the operating system of mobile terminal is starting some application programs sometimes automatically from the background, however, Starting and running for application program is all meeting committed memory space, therefore, insufficient in the available memory space of mobile terminal Situation, can be with quiescing system in backstage self-starting application program.
In addition, the quantity of the thread run in operating system is more, the memory headroom of occupancy is also more, therefore, can be with Number of threads in the cache memory cache of mobile terminal is adjusted, for example is adjusted to 12 lines from 32 threads Journey.
It is directed to the event run in the system by turning-off mobile terminal mentioned in embodiment illustrated in fig. 1, is come Achieve the purpose that reduce the event angle that runs in the operating system of the mobile terminal, present disclose provides corresponding embodiment, Corresponding embodiment is introduced separately below.
Based on embodiment illustrated in fig. 1, for the step 102 in embodiment illustrated in fig. 1, in a kind of feasible embodiment In, above-mentioned steps 102 may include:
When determining that above-mentioned available memory space capacity is less than preset threshold, running background is respectively answered in acquisition preset duration With program front stage operation number;Front stage operation number is met to the closing application program of default closedown condition.
The application program of front stage operation refers to currently running application program on mobile terminal display screen, background application journey Sequence refers to currently being not shown on display screen and in the application program of operation.
In view of the application program of running background can also occupy the memory headroom of mobile terminal, therefore can choose user Closing application program be not frequently used, running background, to discharge the memory headroom occupied by the application program.
The present embodiment can according to running background in preset duration each application program in the number of front stage operation, count Application program that user is not frequently used, running background.Specifically, number of run can be come to latter several application programs It closes.
In another embodiment that the disclosure provides, the method which provides can be with embodiment shown in Fig. 1 On the basis of, following steps can also be increased:
In S1, when determining that above-mentioned available memory space capacity is less than preset threshold, export for guiding user to clear up The prompting message of memory headroom.
In the present embodiment, when the available memory space deficiency of mobile terminal, the side of graphic user interface can be passed through Formula exports above-mentioned prompting message, or above-mentioned prompting message can also be exported by way of voice, and the present embodiment does not do this It limits.
It in S2, receives user and is directed to the cleaning selection operation that above-mentioned prompting message is made, wherein above-mentioned cleaning selection behaviour Make the content for being directed toward the specified cleaning of the user.
The present embodiment can provide the interface of selection cleaning content for user, and in practical applications, which can be shifting An icon on dynamic terminal display, user can click the icon and complete cleaning selection operation.
In S3, according to above-mentioned cleaning selection operation, the content in memory headroom is cleared up.
As shown in figure 4, can be shown automatically on the display screen of the mobile phone when available memory space deficiency of smart phone The icon of " cleaning memory ", after user clicks the icon, graphic user interface jumps to cleaning Object Selection interface, user's selection After the object for it is expected cleaning in the interface, smart phone begins a clean up corresponding content, cleans out rear graphic user interface and jumps Go to the prompting interface that cleaning is completed.
As seen from the above-described embodiment, which can mention in the insufficient situation of available memory space of mobile terminal The user that wakes up selects the content that can be cleared up in memory, to reduce the occupied dosage of memory, guarantees running of mobile terminal stream to reach Freely, the purpose of Caton is solved the problems, such as, so that the use for user offers convenience.
It should be noted that although describing the operation of the method for the present invention in the accompanying drawings with particular order, this is not required that Or hint must execute these operations in this particular order, or have to carry out operation shown in whole and be just able to achieve the phase The result of prestige.On the contrary, the step of describing in flow chart can change and execute sequence.Additionally or alternatively, it is convenient to omit certain Multiple steps are merged into a step and executed, and/or a step is decomposed into execution of multiple steps by step.
Corresponding with the embodiment of aforementioned operation system event processing method, the disclosure additionally provides OS Events processing The embodiment of device.
As shown in figure 5, Fig. 5 is a kind of disclosure OS Events processing unit shown according to an exemplary embodiment Block diagram, applied to the operating system of mobile terminal, above-mentioned apparatus may include:
Module 510 is obtained, is configured as obtaining the available memory space capacity of mobile terminal;
Control module 520 is configured as being less than in the available memory space capacity for determining that the acquisition module 510 is got In the case where preset threshold, according to preset event handling strategy, the event of the operation in the operating system is controlled;
Wherein, the event handling strategy reduces the thing run in the operating system for controlling the operating system Part.
In view of when the available memory space deficiency of mobile terminal, which is easy to appear Caton problem, by upper Embodiment is stated as it can be seen that the embodiment can be when the free memory capacity of mobile terminal be lower, by reducing the mobile terminal The event number run in operating system guarantees that running of mobile terminal is smooth, solves to reduce the occupied dosage of memory to reach The purpose of Caton problem, so that the use for user offers convenience.
As shown in fig. 6, Fig. 6 is the disclosure another OS Events processing dress shown according to an exemplary embodiment The block diagram set, on the basis of which can be with embodiment shown in Fig. 5, the control module 520 may include:
First detection sub-module 610 is configured as holding in the available memory space for determining that the acquisition module 510 is got In the case that amount is less than preset threshold, detects and application program whether occurs in the operating system without response events;
Operation prevents submodule 620, is configured as the case where the testing result of first detection sub-module 610 is to be Under, prevent the operating system from executing the operation of dump storehouse.
As shown in fig. 7, Fig. 7 is the disclosure another OS Events processing dress shown according to an exemplary embodiment The block diagram set, on the basis of which can be with embodiment shown in Fig. 5, the control module 520 may include:
Second detection sub-module 710 is configured as holding in the available memory space for determining that the acquisition module 510 is got Amount be less than preset threshold in the case where, detect the operating system whether the changed message of broadcasting network;
Message block submodule 720 is configured as the case where the testing result of second detection sub-module 710 is to be Under, intercept the changed message of network that the operating system is broadcasted.
As shown in figure 8, Fig. 8 is the disclosure another OS Events processing dress shown according to an exemplary embodiment The block diagram set, on the basis of which can be with embodiment shown in Fig. 5, the control module 520 may include:
Number of run acquisition submodule 810 is configured as empty in the free memory for determining that the acquisition module 510 is got Between capacity be less than preset threshold in the case where, obtain preset duration in running background each application program front stage operation time Number;
Closing application program submodule 820 is configured as meeting front stage operation number into the application journey of default closedown condition Sequence is closed.
As shown in figure 9, Fig. 9 is the disclosure another OS Events processing dress shown according to an exemplary embodiment The block diagram set, the embodiment can be on the basis of any embodiments shown in Fig. 5~Fig. 8, which can also include:
Output module 910 is configured as being less than in the available memory space capacity for determining that the acquisition module 510 is got In the case where preset threshold, the prompting message for guiding user to clear up memory headroom is exported;
Receiving module 920, be configured as receive user for the output module 910 output prompting message make it is clear Manage selection operation, wherein the cleaning selection operation is directed toward the content of the specified cleaning of the user;
Cleaning modul 930 is configured as the cleaning selection operation received according to the receiving module 920, to memory sky Between in content cleared up.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure additionally provides a kind of terminal, comprising: processor;For storage processor executable instruction Memory;Wherein, the processor is configured to: obtain the available memory space capacity of mobile terminal;It can use described in the determination When memory headroom capacity is less than preset threshold, according to preset event handling strategy, the operation in the operating system is controlled Event;Wherein, the event handling strategy reduces the event run in the operating system for controlling the operating system.
As shown in Figure 10, Figure 10 is that the disclosure is shown according to an exemplary embodiment a kind of at OS Events Manage a structural schematic diagram of device 1000.For example, device 1000 can be mobile phone, computer, digital broadcast terminal, message Transceiver, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant, aircraft etc..
Referring to Fig.1 0, device 1000 may include following one or more components: processing component 1002, memory 1004, Power supply module 1006, multimedia component 1008, audio component 1010, the interface 1012 of input/output (I/O), sensor module 1014 and communication component 1016.
The integrated operation of the usual control device 1000 of processing component 1002, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing element 1002 may include one or more processors 1020 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more moulds Block, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include multi-media module, To facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in equipment 1000.These data Example includes the instruction of any application or method for operating on device 1000, contact data, telephone book data, Message, picture, video etc..Memory 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1006 provides electric power for the various assemblies of device 1000.Electric power assembly 1006 may include power management System, one or more power supplys and other with for device 1000 generate, manage, and distribute the associated component of electric power.
Multimedia component 1008 includes the screen of one output interface of offer between device 1000 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also detection duration and pressure relevant to touch or slide.In some embodiments, multimedia component 1008 Including a front camera and/or rear camera.When equipment 1000 is in operation mode, such as screening-mode or video mode When, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition camera shooting Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when device 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1004 or via communication Component 1016 is sent.In some embodiments, audio component 1010 further includes a loudspeaker, is used for output audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, and the state for providing various aspects for device 1000 is commented Estimate.For example, sensor module 1014 can detecte the state that opens/closes of equipment 1000, the relative positioning of component, such as institute The display and keypad that component is device 1000 are stated, sensor module 1014 can be with detection device 1000 or device 1,000 1 The position change of a component, the existence or non-existence that user contacts with device 600,1000 orientation of device or acceleration/deceleration and dress Set 1000 temperature change.Sensor module 1014 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1014 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1000,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1016 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of device 1000 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (9)

1. a kind of OS Events processing method, which is characterized in that applied to the operating system of mobile terminal, the method packet It includes:
Obtain the available memory space capacity of mobile terminal;
When determining that the available memory space capacity is less than preset threshold, according to preset event handling strategy, described in control The event of operation in operating system;
Wherein, the event handling strategy reduces the event run in the operating system for controlling the operating system;
It is described according to preset event handling strategy, control the event of the operation in the operating system, comprising:
It detects and application program whether occurs in the operating system without response events;
When detecting that generation application program is without response events in the operating system, the operating system is prevented to execute dump heap The operation of stack.
2. the method according to claim 1, wherein described according to preset event handling strategy, described in control The event of operation in operating system, comprising:
Detect the operating system whether the changed message of broadcasting network;
When detecting the changed message of the operating system broadcasting network, the network that the operating system is broadcasted is intercepted Changed message.
3. the method according to claim 1, wherein described according to preset event handling strategy, described in control The event of operation in operating system, comprising:
Obtain number of each application program in front stage operation of running background in preset duration;
Front stage operation number is met to the closing application program of default closedown condition.
4. the method according to claim 1, wherein the method also includes:
When determining that the available memory space capacity is less than preset threshold, export for guiding user to clear up mentioning for memory headroom Show message;
It receives user and is directed to the cleaning selection operation that the prompting message is made, wherein described in the cleaning selection operation is directed toward The content of the specified cleaning of user;
According to the cleaning selection operation, the content in memory headroom is cleared up.
5. a kind of OS Events processing unit, which is characterized in that applied to the operating system of mobile terminal, described device packet It includes:
Module is obtained, is configured as obtaining the available memory space capacity of mobile terminal;
Control module is configured as being less than preset threshold in the available memory space capacity for determining that the acquisition module is got In the case of, according to preset event handling strategy, control the event of the operation in the operating system;
Wherein, the event handling strategy reduces the event run in the operating system for controlling the operating system;
The control module, comprising:
First detection sub-module is configured as determining that it is default that the available memory space capacity that gets of acquisition module is less than In the case where threshold value, detects and application program whether occurs in the operating system without response events;
Operation prevents submodule, is configured as preventing institute in the case where the testing result of first detection sub-module, which is, is State the operation that operating system executes dump storehouse.
6. device according to claim 5, which is characterized in that the control module, comprising:
Second detection sub-module is configured as determining that it is default that the available memory space capacity that gets of acquisition module is less than In the case where threshold value, detect the operating system whether the changed message of broadcasting network;
Message block submodule is configured as intercepting institute in the case where the testing result of second detection sub-module, which is, is State the changed message of network that operating system is broadcasted.
7. device according to claim 5, which is characterized in that the control module, comprising:
Number of run acquisition submodule is configured as being less than in the available memory space capacity for determining that the acquisition module is got In the case where preset threshold, number of each application program in front stage operation of running background in preset duration is obtained;
Closing application program submodule is configured as meeting front stage operation number into the closing application program of default closedown condition.
8. device according to claim 5, which is characterized in that described device further include:
Output module is configured as being less than preset threshold in the available memory space capacity for determining that the acquisition module is got In the case of, export the prompting message for guiding user to clear up memory headroom;
Receiving module is configured as receiving the cleaning selection behaviour that user makes for the prompting message of output module output Make, wherein the cleaning selection operation is directed toward the content of the specified cleaning of the user;
Cleaning modul is configured as the cleaning selection operation received according to the receiving module, to the content in memory headroom It is cleared up.
9. a kind of terminal, which is characterized in that the terminal includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the available memory space capacity of mobile terminal;
When determining that the available memory space capacity is less than preset threshold, according to preset event handling strategy, control operation The event of operation in system;
Wherein, the event handling strategy reduces the event run in the operating system for controlling the operating system;
It is described according to preset event handling strategy, control the event of the operation in the operating system, comprising:
It detects and application program whether occurs in the operating system without response events;
When detecting that generation application program is without response events in the operating system, the operating system is prevented to execute dump heap The operation of stack.
CN201610285448.1A 2016-04-29 2016-04-29 OS Events processing method, device and terminal Active CN105975305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610285448.1A CN105975305B (en) 2016-04-29 2016-04-29 OS Events processing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610285448.1A CN105975305B (en) 2016-04-29 2016-04-29 OS Events processing method, device and terminal

Publications (2)

Publication Number Publication Date
CN105975305A CN105975305A (en) 2016-09-28
CN105975305B true CN105975305B (en) 2019-03-22

Family

ID=56994595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610285448.1A Active CN105975305B (en) 2016-04-29 2016-04-29 OS Events processing method, device and terminal

Country Status (1)

Country Link
CN (1) CN105975305B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484538B (en) * 2016-10-10 2020-01-14 Oppo广东移动通信有限公司 Memory control method and device of terminal equipment and terminal equipment
CN108733435B (en) * 2017-04-17 2021-06-18 北京嘀嘀无限科技发展有限公司 Method and device for preventing application from triggering ANR (automatic neighbor discovery)
CN107678698B (en) * 2017-10-31 2020-11-17 太仓市昊博技术服务有限公司 Cache data cleaning method, server, terminal and computer readable storage medium
CN112199250B (en) * 2020-09-15 2024-05-14 北京达佳互联信息技术有限公司 Picture monitoring method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873616A (en) * 2010-06-21 2010-10-27 宇龙计算机通信科技(深圳)有限公司 Mobile terminal self-check method and system and mobile terminal
CN102768639A (en) * 2012-06-11 2012-11-07 北京奇虎科技有限公司 Operating system kernel-level error positioning method and device
CN104516806A (en) * 2014-12-26 2015-04-15 北京奇虎科技有限公司 Power consumption information detection result display method and system for mobile terminal
CN105094936A (en) * 2015-09-24 2015-11-25 广东小天才科技有限公司 Background application program cleaning method and device applied to mobile terminal
CN105260319A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Cleaning method and cleaning system for mobile terminal
CN105338177A (en) * 2015-09-30 2016-02-17 小米科技有限责任公司 Information delayed broadcasting method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050015579A1 (en) * 2003-07-15 2005-01-20 Rajeev Grover Handling exceptions
US9176804B2 (en) * 2013-06-27 2015-11-03 International Business Machines Corporation Memory dump optimization in a system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873616A (en) * 2010-06-21 2010-10-27 宇龙计算机通信科技(深圳)有限公司 Mobile terminal self-check method and system and mobile terminal
CN102768639A (en) * 2012-06-11 2012-11-07 北京奇虎科技有限公司 Operating system kernel-level error positioning method and device
CN104516806A (en) * 2014-12-26 2015-04-15 北京奇虎科技有限公司 Power consumption information detection result display method and system for mobile terminal
CN105260319A (en) * 2015-09-11 2016-01-20 上海卓易科技股份有限公司 Cleaning method and cleaning system for mobile terminal
CN105094936A (en) * 2015-09-24 2015-11-25 广东小天才科技有限公司 Background application program cleaning method and device applied to mobile terminal
CN105338177A (en) * 2015-09-30 2016-02-17 小米科技有限责任公司 Information delayed broadcasting method and device

Also Published As

Publication number Publication date
CN105975305A (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN106970754B (en) Screen capture processing method and device
CN105260117B (en) Application program control method and device
CN105807873B (en) Temprature control method and device
CN107544810B (en) Method and device for controlling application program
US10409684B2 (en) Method, device and storage medium for cleaning memory
CN105975305B (en) OS Events processing method, device and terminal
EP3133874B1 (en) Method and apparatus for starting energy saving mode
CN105162945B (en) Method for information display and device
CN105677460A (en) Application processing method and apparatus
US11871083B2 (en) Video stream playback control method, device, and storage medium
CN105487680B (en) Method, apparatus and terminal for terminal screenshotss
CN105137831B (en) Energy-saving mode open method and device
CN105955441B (en) Application management method and device
CN105807894B (en) Using the treating method and apparatus for holding lock
CN110262692A (en) A kind of touch screen scanning method, device and medium
CN105930213A (en) Application running method and apparatus
CN106095544B (en) Central processing unit control method and device
CN105867592B (en) A kind of method and apparatus managing electric quantity consumption
CN105739840A (en) Terminal and starting method of application programs in terminal
CN107566750A (en) Control method, device and the storage medium of flash lamp
CN106455002A (en) Wireless search method and device, and terminal
CN104899151B (en) Internal storage data reading/writing method and device
CN106201611B (en) Run the method and device of application
CN105512050B (en) EMS memory management process and device
CN104965746B (en) The method and device of quick start

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant