CN106933677A - System exception processing method and processing device - Google Patents

System exception processing method and processing device Download PDF

Info

Publication number
CN106933677A
CN106933677A CN201710108517.6A CN201710108517A CN106933677A CN 106933677 A CN106933677 A CN 106933677A CN 201710108517 A CN201710108517 A CN 201710108517A CN 106933677 A CN106933677 A CN 106933677A
Authority
CN
China
Prior art keywords
application
electronic equipment
application program
destination application
running status
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.)
Pending
Application number
CN201710108517.6A
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201710108517.6A priority Critical patent/CN106933677A/en
Publication of CN106933677A publication Critical patent/CN106933677A/en
Pending 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/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • 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/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A kind of system exception processing method, is applied in electronic equipment, and methods described includes the running status of the operating system of the monitoring electronic equipment;When monitoring that the running status is in abnormal, the reason for analyzing the running status and be in abnormal;And the running status is processed according to the reason.The present invention also provides a kind of system exception processing unit.The present invention can improve temperature rise and operating system interim card problem, improve Consumer's Experience.

Description

System exception processing method and processing device
Technical field
The present invention relates to the technical field of abnormality processing, more particularly to a kind of system exception processing method and processing device.
Background technology
System exception treatment in current electronic equipment is general using limit frequency, the switch periods of adjustment power amplifier and tune The modes such as whole LCDs relevant parameter, although can improve temperature rise, but the not solve problem from root, do not simply fail to The phenomenon of improvement system interim card, can also increase the probability of system interim card, influence Consumer's Experience.
The content of the invention
In view of the foregoing, it is necessary to a kind of system exception processing method and processing device is provided, temperature rise and interim card can be improved Problem, improves Consumer's Experience.
A kind of system exception processing method, is applied in electronic equipment, and methods described includes:
Monitor the running status of the operating system of the electronic equipment;
When monitoring that the running status is in abnormal, the reason for analyzing the running status and be in abnormal;And
The running status is processed according to the reason.
According to the preferred embodiment of the present invention, the running status of the operating system of the monitoring electronic equipment includes:
Monitor the temperature of the electronic equipment;
When the temperature of the electronic equipment is higher than the first temperature threshold, monitor that the running status is in abnormal.
Include according to the preferred embodiment of the present invention, the reason for the analysis running status is in abnormal:
Obtain the daily record preserved in the operating system;
The occupancy of all application programs in the operating system is calculated according to the daily record;And
Occupancy according to all application programs determines the application program in abnormality.
It is described that answering in abnormality is determined according to the occupancy of all application programs according to the preferred embodiment of the present invention Included with program:
Occupancy to all application programs is ranked up, the application program of presetting digit capacity before obtaining;
Transported on the backstage of the electronic equipment when there is first object application program in the application program of the preceding presetting digit capacity OK, and the first object application program be not the automatic carry of user on backstage when, determine the first object application program It is abnormal;Or
Transported on the foreground of the electronic equipment when there is the second destination application in the application program of the preceding presetting digit capacity During row, the second destination application exception is determined;Or
Transported on the backstage of the electronic equipment when there is the 3rd destination application in the application program of the preceding presetting digit capacity OK, and the 3rd destination application be user's carry in running background, determine the 3rd destination application exception.
It is described treatment is carried out to the running status according to the reason to include according to the preferred embodiment of the present invention:
When it is determined that during the first object application exception, clear up the corresponding process of the first object application program, Discharge the resource that the first object application program takes;Or
When it is determined that second destination application is abnormal, export prompt message to point out user to be confirmed whether to described Second destination application is processed;Or
When it is determined that the 3rd destination application is abnormal, export prompt message to point out user to be confirmed whether to described 3rd destination application is processed.
According to the preferred embodiment of the present invention, methods described also includes:
When the temperature of the electronic equipment is more than or equal to second temperature threshold value, the second temperature threshold value is more than described During the first temperature threshold, the system layer of the operating system is directly reported by the inner nuclear layer of the operating system, by institute State system layer and obtain the 4th destination application in abnormality;When the 4th destination application is in running background When, notify that the inner nuclear layer clears up the corresponding process of the 4th destination application by the system layer, and discharge described Resource shared by 4th destination application.
A kind of system exception processing unit, runs in the electronic equipment, and described device includes:
Monitoring modular, the running status of the operating system for monitoring the electronic equipment;
Analysis module, for when monitoring that the running status is in abnormal, analyzing the running status and being in exception The reason for;And
Processing module, for being processed the running status according to the reason.
According to the preferred embodiment of the present invention, the monitoring modular is used for the operation of the operating system for monitoring the electronic equipment State includes:
Monitor the temperature of the electronic equipment;
When the temperature of the electronic equipment is higher than the first temperature threshold, monitor that the running status is in abnormal.
According to the preferred embodiment of the present invention, the analysis module includes:
Acquisition submodule, for obtaining the daily record preserved in the operating system;
Calculating sub module, the occupancy for calculating all application programs in the operating system according to the daily record;And
Determination sub-module, for determining the application program in abnormality according to the occupancy of all application programs.
According to the preferred embodiment of the present invention, the determination sub-module is used at according to the occupancy determination of all application programs Include in the application program of abnormality:
Occupancy to all application programs is ranked up, the application program of presetting digit capacity before obtaining;
Transported on the backstage of the electronic equipment when there is first object application program in the application program of the preceding presetting digit capacity OK, and the first object application program be not the automatic carry of user on backstage when, determine the first object application program It is abnormal;Or
Transported on the foreground of the electronic equipment when there is the second destination application in the application program of the preceding presetting digit capacity During row, the second destination application exception is determined;Or
Transported on the backstage of the electronic equipment when there is the 3rd destination application in the application program of the preceding presetting digit capacity OK, and the 3rd destination application be user's carry in running background, determine the 3rd destination application exception.
According to the preferred embodiment of the present invention, the processing module be used for according to the reason to the running status at Reason includes:
When it is determined that during the first object application exception, clear up the corresponding process of the first object application program, Discharge the resource that the first object application program takes;Or
When it is determined that second destination application is abnormal, export prompt message to point out user to be confirmed whether to described Second destination application is processed;Or
When it is determined that the 3rd destination application is abnormal, export prompt message to point out user to be confirmed whether to described 3rd destination application is processed.
According to the preferred embodiment of the present invention, the processing module is additionally operable to when the temperature of the electronic equipment is more than or waits In second temperature threshold value, when the second temperature threshold value is more than first temperature threshold, by the kernel of the operating system Layer directly reports the system layer of the operating system, and the 4th intended application in abnormality is obtained by the system layer Program;
The processing module is additionally operable to when the 4th destination application is in running background, logical by the system layer Know that the inner nuclear layer clears up the corresponding process of the 4th destination application, and discharge shared by the 4th destination application Resource.
As can be seen from the above technical solutions, the running status of the operating system of the present invention monitoring electronic equipment;When When monitoring that the running status is in abnormal, the reason for analyzing the running status and be in abnormal;And according to the reason pair The running status is processed.The present invention can improve temperature rise and interim card problem, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the flow chart of the preferred embodiment that present system abnormality eliminating method is applied to electronic equipment.
Fig. 2 is the functional block diagram of the preferred embodiment of present system exception handling device.
Fig. 3 is the structural representation of the electronic equipment of the preferred embodiment that the present invention realizes system exception processing method.
Main element symbol description
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.
As shown in figure 1, Fig. 1 is the flow of the preferred embodiment that present system abnormality eliminating method is applied to electronic equipment Figure.According to different demands, the order of step can change in the flow chart, and some steps can be omitted.
S11, the running status of the operating system of electronic equipment described in the electronic equipment monitoring.
In at least one embodiment of the present invention, the electronic equipment sets the first activation threshold value.
First activation threshold value includes, but are not limited to:First temperature threshold.Such as described first temperature threshold is 45 ° Or 50 ° or 60 ° etc., first temperature threshold can be set by User Defined.
In at least one embodiment of the present invention, the electronic equipment is by detecting the temperature of the electronic equipment, prison Survey the running status of the operating system.The electronic equipment can utilize thermistor to detect the temperature of the electronic equipment, Certainly in other embodiments, it is also an option that other temperature-sensing devices and temperature sensor, this is not restricted for the present invention.
In at least one embodiment of the present invention, the electronic equipment sets first temperature threshold and the electronics Standby temperature is contrasted, and judges whether the running status is abnormal:
When the temperature of the electronic equipment is less than first temperature threshold, the electronic equipment determines the operation shape State does not carry out any treatment without abnormal, and the corresponding process of abnormality processing function in a dormant state, is not take up system resource.
In at least one embodiment of the present invention, by taking Android system as an example, the Android system includes:System layer, Native layers and linux kernel layer.The electronic equipment monitors the temperature of the electronic equipment on linux kernel layer, and will The temperature of the electronic equipment reports to described native layers, on the native layers, analyzes the operation of the operating system State.When monitoring that the running status is in abnormal, anomalous event is reported into the system layer, by the system layer point The reason for analysing the anomalous event and process step, and notify the linux kernel layer according to the process step to described different Ordinary affair part is processed.
In at least one embodiment of the present invention, when the temperature of the electronic equipment is more than or equal to the described first temperature During degree threshold value, the electronic equipment determines that the running status has exception.When monitoring that the running status is in abnormal, hold Row S12.
S12, the reason for the electronic equipment analyzes the running status and is in abnormal.
In at least one embodiment of the present invention, the electronic equipment records the daily record of the operating system.Institute State daily record for record hardware in the operating system, using and the service condition that sets of system, while the behaviour can also be recorded Make the event occurred in system, such as system interim card, installation, the load of processor of application.
The daily record includes system journal, application log and security log.Specifically, in the daily record can be recorded Depositing total amount, free memory amount, system operation time, number of users, load, internal memory usage amount and exchange area usage amount, each subregion makes With situation etc..
The electronic equipment can be realized to the analysis of user behavior and to the running status by analyzing the daily record Analysis.For example:By analyzing the daily record of the electronic equipment, CPU (CentralProcessing Unit, centre are obtained Reason device), the occupancy situation of the hardware resource such as internal memory.
In at least one embodiment of the present invention, the electronic equipment obtains the daily record preserved in the operating system, The occupancy of all application programs in the operating system is calculated according to the daily record, according to the occupancy of all application programs Rate determines the application program in abnormality.
Application program (such as dialing, short message application) and user that the application program is carried including the operating system The application program of installation, such as video software, Games Software, music software, shopping software.
The occupancy include it is following one or more:Take duration, committed memory etc..
Preferably, the electronic equipment is ranked up to the occupancy of all application programs, presetting digit capacity (preceding 5 before obtaining Name) application program.
Transported on the backstage of the electronic equipment when there is first object application program in the application program of the preceding presetting digit capacity OK, and the first object application program be not the automatic carry of user on backstage when, the electronic equipment determines described first Destination application exception.The running background refers to that an application program does not show on a user interface, but the application journey The process of sequence is still in operation.The first object application program include the operating system carry application program (as dialing, it is short Letter application etc.) and user installation application program.
For example:XX application programs occupancy in systems is at the 3rd, and the XX application programs are running background During application program, the electronic equipment determines the XX application exceptions.
In at least one embodiment of the present invention, when having the second intended application in the application program of the preceding presetting digit capacity In the front stage operation of the electronic equipment, the electronic equipment determines the second destination application exception to program.
When application program is in front stage operation, the application program is operated.For example:One video software is on foreground Operation causes the temperature of the electronic equipment to raise, and at the 5th, the electronics sets video software occupancy in systems It is standby to determine the video software exception.
In at least one embodiment of the present invention, when having the 3rd intended application in the application program of the preceding presetting digit capacity Program the electronic equipment running background, and operation information of the electronic equipment according to described in the daily record, detection To the 3rd destination application be user's carry in running background, the electronic equipment determines the 3rd intended application Program exception.
For example:Games Software is placed on running background by user, Games Software occupancy in systems at the 2nd, The electronic equipment determines the Games Software exception.
In at least one embodiment of the present invention, the mode of prompting user can be mode or the voice side of prompting frame Formula etc., the present invention is not limited the mode for pointing out user.
In other embodiments, when the occupancy of the application program of the preceding presetting digit capacity is both less than default occupancy, The electronic equipment determines that the running status, without abnormal, is left intact.The default occupancy can be 50%, 55% etc., the default occupancy is set by User Defined.
S13, the electronic equipment is processed the running status according to the reason.
In at least one embodiment of the present invention, when the electronic equipment determines the first object application exception When, the electronic equipment directly clears up the corresponding process of the first object application program, discharges the first object application journey Resource shared by sequence.
In at least one embodiment of the present invention, it is described when the electronic equipment uses the Android system Electronic equipment determines the first object application exception in the system layer, and determines the first object application program pair The process step answered is:Clear up the corresponding process of the first object application program and discharge the first object application program institute The resource of occupancy.The system layer notifies that the Linux inner core is processed according to the process step.
In at least one embodiment of the present invention, when the electronic equipment determines the second destination application exception When, the electronic equipment exports prompt message to point out user to be confirmed whether to process second destination application. When user confirms to clear up second destination application, the electronic equipment clears up the second destination application correspondence Process, discharge the resource shared by second destination application.When user confirms not clearing up second intended application During program, it is left intact.
In at least one embodiment of the present invention, when the electronic equipment determines the 3rd destination application exception When, the electronic equipment exports prompt message to point out user to be confirmed whether to process the 3rd destination application. When user confirms to clear up three destination application, the electronic equipment clears up the 3rd destination application correspondence Process, discharge the resource shared by the 3rd destination application.When user confirms not clearing up the 3rd intended application During program, it is left intact.
It should be noted that the resource that the electronic equipment release application program takes includes, but are not limited to:Release is described CPU, internal memory that application program takes etc..
In at least one embodiment of the present invention, by taking Android system as an example, the electronic equipment is by the running status The system layer is given in abnormal reporting events, the reason for running status described in the system layer analysis is in abnormal (such as Step S12), and the process step for determining to process the event in the system layer, the system layer notifies described Linux inner core is processed (such as step S13) according to the process step.
In other embodiments, so that the operating system is as Android system as an example, the electronic equipment also sets up the second temperature Degree threshold value, the second temperature threshold value is more than first temperature threshold.
When the temperature of the electronic equipment is more than or equal to the second temperature threshold value, by the system Linux inner core directly reports the system layer of the operating system, and in abnormality the is obtained by the system layer Four destination applications.
Preferably, the electronic equipment is ranked up to the occupancy of all application programs, presetting digit capacity before obtaining The application program of (first 5) is used as the 4th destination application.When the 4th destination application is in front stage operation, Prompting user is confirmed whether cleaning the 4th destination application.When user confirms cleaning the 4th destination application When, the electronic equipment clears up the corresponding process of the 4th destination application, discharges the 4th destination application institute The resource of occupancy.When user confirms not clear up four destination application, it is left intact.
When the 4th destination application is in running background, the electronic equipment notifies described by the system layer Linux inner core clears up the corresponding process of the 4th destination application, and discharges shared by the 4th destination application Resource.
In other embodiments, the operating system may not be Android system, when the 4th destination application In front stage operation, user is pointed out to be confirmed whether cleaning the 4th destination application.When the 4th destination application In running background, the electronic equipment clears up the corresponding process of the 4th destination application, and discharges the 4th mesh Resource shared by mark application program.
In sum, the present invention can monitor the running status of the operating system of the electronic equipment;When monitoring the fortune When row state is in abnormal, the reason for analyzing the running status and be in abnormal;And according to the reason to the running status Processed.The present invention can improve temperature rise and interim card problem, improve Consumer's Experience.
As shown in Fig. 2 being the functional block diagram of the preferred embodiment of present system exception handling device.The system is different Normal processing unit 11 includes monitoring modular 100, analysis module 101 and processing module 102.The analysis module 101 includes obtaining Submodule 1011, calculating sub module 1012 and determination sub-module 1013.Module alleged by the present invention refers to that one kind can be processed Device is performed and can complete the series of computation machine program segment of fixing function, and its storage is in memory.In the present embodiment In, the function on each module will be described in detail in follow-up embodiment.
Monitoring modular 100 monitors the running status of the operating system of the electronic equipment.
In at least one embodiment of the present invention, the monitoring modular 100 sets the first activation threshold value.
First activation threshold value includes, but are not limited to:First temperature threshold.Such as described first temperature threshold is 45 ° Or 50 ° or 60 ° etc., first temperature threshold can be set by User Defined.
In at least one embodiment of the present invention, the monitoring modular 100 is by detecting the temperature of the electronic equipment, Monitor the running status of the operating system.The monitoring modular 100 can utilize thermistor to detect the electronic equipment Temperature, certainly in other embodiments, it is also an option that other temperature-sensing devices and temperature sensor, of the invention not make herein Limitation.
In at least one embodiment of the present invention, the monitoring modular 100 is by first temperature threshold and the electricity The temperature of sub- equipment is contrasted, and judges whether the running status is abnormal:
When the temperature of the electronic equipment is less than first temperature threshold, the monitoring modular 100 determines the fortune Row state does not carry out any treatment without abnormal, and the corresponding process of abnormality processing function in a dormant state, is not take up system money Source.
In at least one embodiment of the present invention, by taking Android system as an example, the Android system includes:System layer, Native layers and linux kernel layer.The monitoring modular 100 monitors the temperature of the electronic equipment on linux kernel layer, and The temperature of the electronic equipment is reported to described native layers, on the native layers, analyze the fortune of the operating system Row state.When monitoring that the running status is in abnormal, anomalous event is reported into the system layer, by the system layer The reason for analyzing the anomalous event and process step, and notify the linux kernel layer according to the process step to described Anomalous event is processed.
In at least one embodiment of the present invention, when the temperature of the electronic equipment is more than or equal to the described first temperature During degree threshold value, the monitoring modular 100 determines that the running status has exception.
When monitoring that the running status is in abnormal, the analysis module 101 analyzes the running status in different Often the reason for.
In at least one embodiment of the present invention, the analysis module 101 records the daily record of the operating system. The daily record be used to recording hardware in the operating system, using and the service condition that sets of system, while can also record described The event occurred in operating system, such as system interim card, installation, the load of processor of application.
The daily record includes system journal, application log and security log.Specifically, in the daily record can be recorded Depositing total amount, free memory amount, system operation time, number of users, load, internal memory usage amount and exchange area usage amount, each subregion makes With situation etc..
The electronic equipment can be realized to the analysis of user behavior and to the running status by analyzing the daily record Analysis.For example:By analyzing the daily record of the electronic equipment, CPU (Central Processing Unit, centre are obtained Reason device), the occupancy situation of the hardware resource such as internal memory.
In at least one embodiment of the present invention, the acquisition submodule 1011 obtains what is preserved in the operating system Daily record, the calculating sub module 1012 calculates the occupancy of all application programs in the operating system, institute according to the daily record State determination sub-module 1013 and the application program in abnormality is determined according to the occupancy of all application programs.
Application program (such as dialing, short message application) and user that the application program is carried including the operating system The application program of installation, such as video software, Games Software, music software, shopping software.
The occupancy include it is following one or more:Take duration, committed memory etc..
Preferably, the occupancy of 101 pairs of all application programs of the analysis module is ranked up, presetting digit capacity before obtaining The application program of (first 5).
Transported on the backstage of the electronic equipment when there is first object application program in the application program of the preceding presetting digit capacity OK, and the first object application program be not the automatic carry of user on backstage when, the determination sub-module 1013 determine institute State first object application exception.The running background refers to that an application program does not show on a user interface, but described The process of application program is still in operation.The first object application program includes the application program that carries of the operating system (such as Dialing, short message application etc.) and user installation application program.
For example:XX application programs occupancy in systems is at the 3rd, and the XX application programs are running background During application program, the determination sub-module 1013 determines the XX application exceptions.
In at least one embodiment of the present invention, when having the second intended application in the application program of the preceding presetting digit capacity In the front stage operation of the electronic equipment, the determination sub-module 1013 determines that second destination application is different to program Often.
When application program is in front stage operation, the application program is operated.For example:One video software is on foreground Operation causes the temperature of the electronic equipment to raise, and video software occupancy in systems is described to determine son at the 5th Module 1013 determines the video software exception.
In at least one embodiment of the present invention, when having the 3rd intended application in the application program of the preceding presetting digit capacity Program the electronic equipment running background, and operation information of the analysis module 101 according to described in the daily record, inspection Measure the 3rd destination application be user's carry in running background, the determination sub-module 1013 determines the described 3rd Destination application exception.
For example:Games Software is placed on running background by user, Games Software occupancy in systems at the 2nd, The determination sub-module 1013 determines the Games Software exception.
In at least one embodiment of the present invention, the mode of prompting user can be mode or the voice side of prompting frame Formula etc., the present invention is not limited the mode for pointing out user.
In other embodiments, when the occupancy of the application program of the preceding presetting digit capacity is both less than default occupancy, The determination sub-module 1013 determines that the running status, without abnormal, is left intact.The default occupancy can be 50%th, 55% etc., the default occupancy is set by User Defined.
Processing module 102 is processed the running status according to the reason.
In at least one embodiment of the present invention, when the determination sub-module 1013 determines the first object application journey When sequence is abnormal, the processing module 102 directly clears up the corresponding process of the first object application program, discharges first mesh Resource shared by mark application program.
In at least one embodiment of the present invention, it is described when the electronic equipment uses the Android system Determination sub-module 1013 determines the first object application exception in the system layer, and determines the first object application The corresponding process step of program is:The processing module 102 clears up the corresponding process of the first object application program and release Resource shared by the first object application program.The system layer notifies the Linux inner core according to the treatment step Suddenly processed.
In at least one embodiment of the present invention, when the determination sub-module 1013 determines the second intended application journey When sequence is abnormal, the processing module 102 exports prompt message to point out user to be confirmed whether to second destination application Processed.When user confirms to clear up second destination application, the processing module 102 clears up second target The corresponding process of application program, discharges the resource shared by second destination application.When user confirms not clearing up described During the second destination application, it is left intact.
In at least one embodiment of the present invention, when the determination sub-module 1013 determines the 3rd intended application journey When sequence is abnormal, the processing module 102 exports prompt message to point out user to be confirmed whether to the 3rd destination application Processed.When user confirms to clear up three destination application, the processing module 102 clears up the 3rd target The corresponding process of application program, discharges the resource shared by the 3rd destination application.When user confirms not clearing up described During three destination applications, it is left intact.
It should be noted that the resource that the electronic equipment release application program takes includes, but are not limited to:Release is described CPU, internal memory that application program takes etc..
In at least one embodiment of the present invention, by taking Android system as an example, the electronic equipment is by the running status The system layer is given in abnormal reporting events, the analysis module 101 is at running status described in the system layer analysis In the reason for abnormal (such as step S12), and the process step for determining to process the event in the system layer, the system System layer notifies that the Linux inner core is processed (such as step S13) according to the process step by the processing module 102.
In other embodiments, so that the operating system is as Android system as an example, the monitoring modular 100 also sets up second Temperature threshold, the second temperature threshold value is more than first temperature threshold.
When the temperature of the electronic equipment is more than or equal to the second temperature threshold value, the processing module 102 is led to The Linux inner core for crossing the operating system directly reports the system layer of the operating system, is obtained by the system layer The 4th destination application in abnormality.
Preferably, the occupancy of all application programs of the analysis module 101 pairs is ranked up, default position before obtaining The application program of number (first 5) is used as the 4th destination application.When the 4th destination application is in front stage operation When, the prompting user of the processing module 102 is confirmed whether cleaning the 4th destination application.When user confirms that cleaning is described During four destination applications, the processing module 102 clears up the corresponding process of the 4th destination application, and release is described Resource shared by 4th destination application.When user confirms not clear up four destination application, do not do any Treatment.
When the 4th destination application is in running background, the processing module 102 is notified by the system layer The Linux inner core clears up the corresponding process of the 4th destination application, and discharges the 4th destination application Shared resource.
In other embodiments, the operating system may not be Android system, when the 4th destination application In front stage operation, the prompting user of the processing module 102 is confirmed whether cleaning the 4th destination application.When described In running background, the processing module 102 clears up the corresponding process of the 4th destination application to four destination applications, And discharge the resource shared by the 4th destination application.
The present invention can monitor the running status of the operating system of the electronic equipment;When monitoring that the running status is in When abnormal, the reason for analyzing the running status and be in abnormal;And the running status is processed according to the reason.This Invention can improve temperature rise and interim card problem, improve Consumer's Experience.
The above-mentioned integrated unit realized in the form of software function module, can store and be deposited in an embodied on computer readable In storage media.Above-mentioned software function module storage is in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each The part steps of embodiment methods described.
As shown in figure 3, being that the structure of electronic equipment of the preferred embodiment that the present invention realizes system exception processing method is shown It is intended to.The electronic equipment 1 includes memory 12 and processor 13.
The electronic equipment 1 be it is a kind of can according to the instruction being previously set or store, carry out automatically numerical computations and/or The equipment of information processing, its hardware includes but is not limited to microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
Also including but is not limited to any one can be with user by keyboard, mouse, remote control, touch pad or voice-operated device etc. Mode carries out the electronic product of man-machine interaction, for example, personal computer, panel computer, smart mobile phone, personal digital assistant (Personal Digital Assistant, PDA), game machine, IPTV (Internet Protocol Television, IPTV), intellectual Wearable etc..
Network residing for the electronic equipment 1 include but is not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, it is virtual specially With network (Virtual Private Network, VPN) etc..
The memory 12 is used to store a kind of program and various data of fault detection method of conversing, and in the electronics High speed is realized in the running of equipment 1, the access of program or data is automatically completed.The memory 12 can be electronic equipment 1 external memory storage and/or internal storage.Further, the memory 12 can be no material object shape in integrated circuit The circuit with store function of formula, such as RAM (Random-Access Memory, random access memory), FIFO (First In First Out) etc..Or, the memory 12 can also be the memory with physical form, such as memory bar, TF cards (Trans-flash Card) etc..
The processor 13, also known as central processing unit (CPU, Central Processing Unit), is one piece of super large rule The integrated circuit of mould, is the arithmetic core (Core) and control core (Control Unit) of electronic equipment 1.The processor 13 The operating system of the executable electronic equipment 1 and types of applications program, the program code of installation etc., such as at system exception Reason device 11.
The system exception processing unit 11 monitors the running status of the operating system of the electronic equipment 1;When monitoring When the running status is in abnormal, the reason for analyzing the running status and be in abnormal;And according to the reason to the fortune Row state is processed.The present invention can improve temperature rise and interim card problem, improve Consumer's Experience.
With reference to Fig. 1, the memory 12 in the electronic equipment 1 stores multiple instruction to realize at a kind of system exception Reason method, the processor 13 can perform the multiple instruction so as to realize:The running status of monitor operating system;When monitoring When the running status is in abnormal, the reason for analyzing the running status and be in abnormal;And according to the reason to the fortune Row state is processed.
According to the preferred embodiment of the present invention, the running status of the operating system of the monitoring electronic equipment includes:
Monitor the temperature of the electronic equipment;
When the temperature of the electronic equipment is higher than the first temperature threshold, monitor that the running status is in abnormal.
According to the preferred embodiment of the present invention, the processor 13 also performs multiple instruction to be included:
Obtain the daily record preserved in the system of the electronic equipment 1;
The occupancy of all application programs in the operating system is calculated according to the daily record;And
Occupancy according to all application programs determines the application program in abnormality.
Include according to the preferred embodiment of the present invention, the reason for the analysis running status is in abnormal:
Obtain the daily record preserved in the operating system;
The occupancy of all application programs in the operating system is calculated according to the daily record;And
Occupancy according to all application programs determines the application program in abnormality.
It is described that answering in abnormality is determined according to the occupancy of all application programs according to the preferred embodiment of the present invention Included with program:
Occupancy to all application programs is ranked up, the application program of presetting digit capacity before obtaining;
Transported on the backstage of the electronic equipment when there is first object application program in the application program of the preceding presetting digit capacity OK, and the first object application program be not the automatic carry of user on backstage when, determine the first object application program It is abnormal;Or
Transported on the foreground of the electronic equipment when there is the second destination application in the application program of the preceding presetting digit capacity During row, the second destination application exception is determined;Or
Transported on the backstage of the electronic equipment when there is the 3rd destination application in the application program of the preceding presetting digit capacity OK, and the 3rd destination application be user's carry in running background, determine the 3rd destination application exception.
According to the preferred embodiment of the present invention, carrying out treatment to the running status according to the reason includes:
When it is determined that during the first object application exception, clear up the corresponding process of the first object application program, Discharge the resource that the first object application program takes;Or
When it is determined that second destination application is abnormal, export prompt message to point out user to be confirmed whether to described Second destination application is processed;Or
When it is determined that the 3rd destination application is abnormal, export prompt message to point out user to be confirmed whether to described 3rd destination application is processed.
According to the preferred embodiment of the present invention, the processor 13 also performs multiple instruction to be included:
When the temperature of the electronic equipment is more than or equal to second temperature threshold value, the second temperature threshold value is more than described During the first temperature threshold, the system layer of the operating system is directly reported by the Linux inner core of the operating system, led to Cross the system layer and obtain the 4th destination application in abnormality;When the 4th destination application is transported on backstage During row, notify that the Linux inner core clears up the corresponding process of the 4th destination application by the system layer, and release Put the resource shared by the 4th destination application.
Specifically, the processor 13 refers to correlation in Fig. 1 correspondence embodiments to the concrete methods of realizing of above-mentioned instruction The description of step, will not be described here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the module Divide, only a kind of division of logic function there can be other dividing mode when actually realizing.
The module that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as module The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of module therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional module in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of software function module to realize.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be in other specific forms realized.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires to be limited rather than described above, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.The right that any attached associated diagram mark in claim should not be considered as involved by limitation will Ask.
Furthermore, it is to be understood that " including " word is not excluded for other units or step, odd number is not excluded for plural number.In system claims Multiple units or device of statement can also be realized by a unit or device by software or hardware.Second grade word is used To represent title, and it is not offered as any specific order.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although reference Preferred embodiment has been described in detail to the present invention, it will be understood by those within the art that, can be to of the invention Technical scheme is modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.

Claims (12)

1. a kind of system exception processing method, is applied in electronic equipment, it is characterised in that methods described includes:
Monitor the running status of the operating system of the electronic equipment;
When monitoring that the running status is in abnormal, the reason for analyzing the running status and be in abnormal;And
The running status is processed according to the reason.
2. the system as claimed in claim 1 abnormality eliminating method, it is characterised in that the operation of the monitoring electronic equipment The running status of system includes:
Monitor the temperature of the electronic equipment;
When the temperature of the electronic equipment is higher than the first temperature threshold, monitor that the running status is in abnormal.
3. the system as claimed in claim 1 abnormality eliminating method, it is characterised in that the analysis running status is in different Often the reason for, includes:
Obtain the daily record preserved in the operating system;
The occupancy of all application programs in the operating system is calculated according to the daily record;And
Occupancy according to all application programs determines the application program in abnormality.
4. system exception processing method as claimed in claim 3, it is characterised in that the occupancy according to all application programs Rate determines that the application program in abnormality includes:
Occupancy to all application programs is ranked up, the application program of presetting digit capacity before obtaining;
When there is running background of the first object application program in the electronic equipment in the application program of the preceding presetting digit capacity, and The first object application program be not the automatic carry of user on backstage when, determine the first object application exception; Or
When having the second destination application in the front stage operation of the electronic equipment in the application program of the preceding presetting digit capacity, Determine the second destination application exception;Or
When there is running background of the 3rd destination application in the electronic equipment in the application program of the preceding presetting digit capacity, and 3rd destination application be user's carry in running background, determine the 3rd destination application exception.
5. system exception processing method as claimed in claim 4, it is characterised in that it is described according to the reason to the operation State carries out treatment to be included:
When it is determined that during the first object application exception, clearing up the corresponding process of the first object application program, release The resource that the first object application program takes;Or
When it is determined that second destination application is abnormal, export prompt message to point out user to be confirmed whether to described second Destination application is processed;Or
When it is determined that the 3rd destination application is abnormal, export prompt message to point out user to be confirmed whether to the described 3rd Destination application is processed.
6. system exception processing method as claimed in claim 2, it is characterised in that methods described also includes:
When the temperature of the electronic equipment is more than or equal to second temperature threshold value, the second temperature threshold value is more than described first During temperature threshold, the system layer of the operating system is directly reported by the inner nuclear layer of the operating system, by the system System layer obtains the 4th destination application in abnormality;When the 4th destination application is in running background, lead to Cross the system layer and notify that the inner nuclear layer clears up the corresponding process of the 4th destination application, and discharge the 4th mesh Resource shared by mark application program.
7. a kind of system exception processing unit, in running on the electronic equipment, it is characterised in that described device includes:
Monitoring modular, the running status of the operating system for monitoring the electronic equipment;
Analysis module, for when monitoring that the running status is in abnormal, analyzing the running status and being in abnormal original Cause;And
Processing module, for being processed the running status according to the reason.
8. system exception processing unit as claimed in claim 7, it is characterised in that the monitoring modular is used to monitor the electricity The running status of the operating system of sub- equipment includes:
Monitor the temperature of the electronic equipment;
When the temperature of the electronic equipment is higher than the first temperature threshold, monitor that the running status is in abnormal.
9. system exception processing unit as claimed in claim 7 or 8, it is characterised in that the analysis module includes:
Acquisition submodule, for obtaining the daily record preserved in the operating system;
Calculating sub module, the occupancy for calculating all application programs in the operating system according to the daily record;And
Determination sub-module, for determining the application program in abnormality according to the occupancy of all application programs.
10. system exception processing unit as claimed in claim 9, it is characterised in that the determination sub-module is used for according to institute The occupancy for having application program determines that the application program in abnormality includes:
Occupancy to all application programs is ranked up, the application program of presetting digit capacity before obtaining;
When there is running background of the first object application program in the electronic equipment in the application program of the preceding presetting digit capacity, and The first object application program be not the automatic carry of user on backstage when, determine the first object application exception; Or
When having the second destination application in the front stage operation of the electronic equipment in the application program of the preceding presetting digit capacity, Determine the second destination application exception;Or
When there is running background of the 3rd destination application in the electronic equipment in the application program of the preceding presetting digit capacity, and 3rd destination application be user's carry in running background, determine the 3rd destination application exception.
11. system exception processing units as claimed in claim 10, it is characterised in that the processing module is used for according to described Reason carries out treatment to the running status to be included:
When it is determined that during the first object application exception, clearing up the corresponding process of the first object application program, release The resource that the first object application program takes;Or
When it is determined that second destination application is abnormal, export prompt message to point out user to be confirmed whether to described second Destination application is processed;Or
When it is determined that the 3rd destination application is abnormal, export prompt message to point out user to be confirmed whether to the described 3rd Destination application is processed.
12. system exception processing units as claimed in claim 7, it is characterised in that the processing module is additionally operable to when described The temperature of electronic equipment is more than or equal to second temperature threshold value, and the second temperature threshold value is more than first temperature threshold When, the system layer of the operating system is directly reported by the inner nuclear layer of the operating system, obtained by the system layer The 4th destination application in abnormality;
The processing module is additionally operable to, when the 4th destination application is in running background, institute be notified by the system layer State inner nuclear layer and clear up the corresponding process of the 4th destination application, and discharge shared by the 4th destination application Resource.
CN201710108517.6A 2017-02-27 2017-02-27 System exception processing method and processing device Pending CN106933677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710108517.6A CN106933677A (en) 2017-02-27 2017-02-27 System exception processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710108517.6A CN106933677A (en) 2017-02-27 2017-02-27 System exception processing method and processing device

Publications (1)

Publication Number Publication Date
CN106933677A true CN106933677A (en) 2017-07-07

Family

ID=59424579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710108517.6A Pending CN106933677A (en) 2017-02-27 2017-02-27 System exception processing method and processing device

Country Status (1)

Country Link
CN (1) CN106933677A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390857A (en) * 2017-07-20 2017-11-24 奇酷互联网络科技(深圳)有限公司 The method and apparatus and mobile terminal of a kind of temperature control
CN107645546A (en) * 2017-09-12 2018-01-30 深圳Tcl新技术有限公司 File monitor method, smart machine and storage medium based on Android system
CN107729180A (en) * 2017-09-30 2018-02-23 珠海市魅族科技有限公司 Abnormal information processing method and processing device, computer installation and readable storage medium storing program for executing
CN107861818A (en) * 2017-11-30 2018-03-30 努比亚技术有限公司 Internal memory method for cleaning, mobile terminal and storage medium based on TP and LCD
CN107943657A (en) * 2017-11-24 2018-04-20 郑州云海信息技术有限公司 A kind of linux system problem automatic analysis method and system
CN108052280A (en) * 2017-11-29 2018-05-18 努比亚技术有限公司 A kind of data cached delet method, terminal and computer readable storage medium
CN109271297A (en) * 2018-11-08 2019-01-25 维沃移动通信有限公司 A kind of abnormal prompt method and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024532A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Hardware monitoring method and system
CN105302637A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Restoration method and apparatus for jamming caused by system process runtime exception and mobile terminal
CN106331352A (en) * 2016-08-26 2017-01-11 珠海格力电器股份有限公司 Temperature control method and device for mobile phone, and terminal
CN106445604A (en) * 2016-09-29 2017-02-22 深圳市邦华电子有限公司 Clearing method and device for applications
CN106445783A (en) * 2016-09-27 2017-02-22 北京金山安全软件有限公司 Method and device for detecting jamming of electronic equipment and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024532A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Hardware monitoring method and system
CN105302637A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Restoration method and apparatus for jamming caused by system process runtime exception and mobile terminal
CN106331352A (en) * 2016-08-26 2017-01-11 珠海格力电器股份有限公司 Temperature control method and device for mobile phone, and terminal
CN106445783A (en) * 2016-09-27 2017-02-22 北京金山安全软件有限公司 Method and device for detecting jamming of electronic equipment and electronic equipment
CN106445604A (en) * 2016-09-29 2017-02-22 深圳市邦华电子有限公司 Clearing method and device for applications

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390857A (en) * 2017-07-20 2017-11-24 奇酷互联网络科技(深圳)有限公司 The method and apparatus and mobile terminal of a kind of temperature control
CN107645546A (en) * 2017-09-12 2018-01-30 深圳Tcl新技术有限公司 File monitor method, smart machine and storage medium based on Android system
CN107729180A (en) * 2017-09-30 2018-02-23 珠海市魅族科技有限公司 Abnormal information processing method and processing device, computer installation and readable storage medium storing program for executing
CN107729180B (en) * 2017-09-30 2020-07-03 珠海市魅族科技有限公司 Abnormal information processing method and device, computer device and readable storage medium
CN107943657A (en) * 2017-11-24 2018-04-20 郑州云海信息技术有限公司 A kind of linux system problem automatic analysis method and system
CN108052280A (en) * 2017-11-29 2018-05-18 努比亚技术有限公司 A kind of data cached delet method, terminal and computer readable storage medium
CN108052280B (en) * 2017-11-29 2021-07-23 努比亚技术有限公司 Method for deleting cache data, terminal and computer readable storage medium
CN107861818A (en) * 2017-11-30 2018-03-30 努比亚技术有限公司 Internal memory method for cleaning, mobile terminal and storage medium based on TP and LCD
CN107861818B (en) * 2017-11-30 2022-01-14 努比亚技术有限公司 Memory cleaning method based on TP and LCD, mobile terminal and storage medium
CN109271297A (en) * 2018-11-08 2019-01-25 维沃移动通信有限公司 A kind of abnormal prompt method and mobile terminal

Similar Documents

Publication Publication Date Title
CN106933677A (en) System exception processing method and processing device
CN110708204B (en) Abnormity processing method, system, terminal and medium based on operation and maintenance knowledge base
US9832214B2 (en) Method and apparatus for classifying and combining computer attack information
CN109981328B (en) Fault early warning method and device
US10248910B2 (en) Detection mitigation and remediation of cyberattacks employing an advanced cyber-decision platform
WO2021109314A1 (en) Method, system and device for detecting abnormal data
US11756404B2 (en) Adaptive severity functions for alerts
US20180159881A1 (en) Automated cyber physical threat campaign analysis and attribution
US10523580B2 (en) Automatic cloud provisioning based on related internet news and social network trends
KR20190075861A (en) Detection method, device, server and storage medium of DoS / DDoS attack
US20130324111A1 (en) Method and apparatus for telecommunications network performance anomaly events detection and notification
CN109639504B (en) Alarm information processing method and device based on cloud platform
CN109992473A (en) Monitoring method, device, equipment and the storage medium of application system
WO2022147564A1 (en) Detecting suspicious user logins in private networks using machine learning
CN110955586A (en) System fault prediction method, device and equipment based on log
CN109643349B (en) Dynamic ranking and presentation of endpoints based on symptom duration and importance of endpoints in environment
CN114205212A (en) Network security early warning method, device, equipment and readable storage medium
CN116418653A (en) Fault positioning method and device based on multi-index root cause positioning algorithm
US9946621B2 (en) Prevention of event flooding
JP2008158889A (en) Trouble factor detection program, trouble factor detection method and trouble factor detector
CN109873980A (en) Video monitoring method, device and terminal device
CN105718462A (en) Cheating detection method and apparatus for application operation
CN110659898B (en) Data control method, device and storage medium
CN113849362A (en) Business service platform management method, device and computer readable storage medium
CN108255710B (en) Script abnormity detection method and terminal thereof

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170707

RJ01 Rejection of invention patent application after publication