CN110399244A - A kind of method, system and the mobile terminal of the abnormality processing that is switched on - Google Patents
A kind of method, system and the mobile terminal of the abnormality processing that is switched on Download PDFInfo
- Publication number
- CN110399244A CN110399244A CN201910680162.7A CN201910680162A CN110399244A CN 110399244 A CN110399244 A CN 110399244A CN 201910680162 A CN201910680162 A CN 201910680162A CN 110399244 A CN110399244 A CN 110399244A
- Authority
- CN
- China
- Prior art keywords
- thread
- booting
- abnormal
- abnormality processing
- exception
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0736—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
- G06F11/0742—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
A method of booting abnormality processing, comprising steps of starting a newly-built daemon thread when booting;Judge whether booting normally completes;When being judged as that appearance booting is abnormal, abnormal thread is inquired in the thread having been turned on;Judge whether the abnormal thread is the required thread that is switched on;When being judged as YES the required thread of the booting, reinitialize the data of abnormal thread respective modules, and restart the exception thread, or be judged as be not the booting must thread when, terminate the thread.The present invention also provides the systems and mobile terminal of booting abnormality processing can also normally start in the case where mobile terminal can be made exception occur in booting, user is allowed to have better usage experience.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method of abnormality processing that is switched on, system and
Mobile terminal.
Background technique
Now with the rapid development of mobile terminal hardware and manufacturing process, the service life of mobile terminal is increasingly
It is long.And as mobile terminal uses the growth of time, tripartite's application of mobile terminal installation be it is special more, increase in use process
The data added are also to accumulate over a long period, and there are many security risks.The quality of especially tripartite's application software is very different, data
Use and save lack of standardization, the mobile terminal for leading to us in use for some time, it is different often to there is mobile terminal-opening
Often, user cannot normally-open mobile terminal enter using main interface.Once such case occurs, user only returns repair in shop reason,
Influence to user is particularly big.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of sides of abnormality processing that is switched on
Method, system and mobile terminal can also normally start, allow in the case where mobile terminal can be made exception occur in booting
User has better usage experience.
To achieve the above object, the method for booting abnormality processing provided by the invention, comprising the following steps:
Start a newly-built daemon thread when booting;
Judge whether booting normally completes;
When being judged as that appearance booting is abnormal, abnormal thread is inquired in the thread having been turned on;
Judge whether the abnormal thread is the required thread that is switched on;
Handle abnormal thread.
Further, the step of starting a newly-built daemon thread when booting further comprises:
Start a newly-built daemon thread in booting, and detects the current available machine time.
Further, the abnormal thread includes: the thread for endless loop occur, is embodied as the occupancy of thread CPU
Rate is high;The thread in a large amount of committed memory spaces, the occupancy for being embodied as the thread memory are high;And there is especially severe
The thread of system mistake.
Further, in the data for reinitializing abnormal thread respective modules, and restart the step of the exception thread
It is further comprising the steps of after rapid:
In the data for reinitializing abnormal thread respective modules, and the step of restarting the exception thread cannot repair it is described
Booting is abnormal, then needs to force to terminate the abnormal thread, first complete booting, notify to use by corresponding exception information again after booting
Family makes user complete corresponding reparation operation.
Further, the step of processing exception thread further comprises:
When being judged as YES the required thread of the booting, the data of abnormal thread respective modules are reinitialized, and it is different to restart this
Normal thread, or be judged as when not being the required thread of the booting, terminate the abnormal thread.
To achieve the above object, the system of booting abnormality processing provided by the invention, comprising:
Module is guarded in booting, is used to start a newly-built daemon thread in booting;
Judgment module, for judging whether booting normally completes and judge whether abnormal thread is the required thread that is switched on;
Enquiry module is enabled in inquiring the abnormal thread in the thread having been turned on;And
Exception processing module, for handling abnormal thread, to complete to be switched on.
Further, further includes:
Memory module, for storing normal boot-strap time and the required thread list of normal boot-strap.
Further, the abnormal thread includes: the thread for endless loop occur, is embodied as the occupancy of thread CPU
Rate is high;The thread in a large amount of committed memory spaces, the occupancy for being embodied as the thread memory are high;And there is especially severe
The thread of system mistake.
Further, the exception processing module reinitializes different when being judged as YES the required thread of the booting
Data of normal thread respective modules, and restart the exception thread, or be judged as when not being the required thread of the booting, end institute
State abnormal thread.
To achieve the above object, mobile terminal provided by the invention, comprising: the system of the booting abnormality processing.
Method, system and the mobile terminal of booting abnormality processing of the invention create a daemon thread in booting,
Whether monitoring booting normally completes;If the current available machine time is more than the normal boot-strap time, whether current abnormal thread is judged
For the required thread that is switched on;If abnormal thread is not the required thread that is switched on, directly terminate the thread;If abnormal thread is booting
Required thread, then reinitialize the data of the thread respective modules, restart this thread, can reach mobile phone appearance in booting
It in the case where exception, can also normally start, user can be allowed to have better usage experience.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention
Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram of booting abnormality processing according to the present invention;
Fig. 2 is the system architecture diagram of booting abnormality processing according to the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is that the method flow diagram of booting abnormality processing according to the present invention opens of the invention below with reference to Fig. 1
The method of machine abnormality processing is described in detail.
Start a newly-built daemon thread in step 101, booting.In the present embodiment, start one in booting
Newly-built daemon thread, and detect the current available machine time.
In step 102, judge whether booting normally completes, when being judged as that booting is normal, terminates process;It is being judged as out
When now booting is abnormal, next step 103 is carried out.Specifically, after starting a newly-built daemon thread, pass through the available machine time
To judge whether booting is normal.If the current available machine time is greater than the normal boot-strap time, it is judged as that appearance booting is abnormal;Such as
The fruit current available machine time is less than or equal to the normal boot-strap time, then is judged as that booting is normal.Wherein, above-mentioned normal boot-strap time thing
First it is set.
In step 103, abnormal thread (abnormal thread occur) is inquired in the thread having been turned on.In the present embodiment,
Such as abnormal thread includes: the thread for endless loop occur, is embodied as thread CPU(Central Processing
Unit, central processing unit) occupancy it is high;The thread in a large amount of committed memory spaces, is embodied as the occupancy of the thread memory
Rate is high;And there is the thread of the system mistake of especially severe.
In step 104, judge whether abnormal thread is the required thread that is switched on, if it is determined that not being the required thread that is switched on
When, terminate the exception thread (step 106);Be switched on required thread if the judgment is Yes, then carries out next step 105.Specifically,
After inquiring abnormal thread, by abnormal thread and normal boot-strap must thread list be compared, if abnormal thread is just
When in the required thread list of normally opened machine, then it is judged as the required thread of booting;If abnormal thread is not in the required thread of normal boot-strap
When in list, then it is judged as not it is the required thread that is switched on.
In step 105, the data of abnormal thread respective modules are reinitialized, and restart the exception thread.In this implementation
In example, the data of abnormal thread respective modules are reinitialized, and restart the exception thread, it is abnormal to repair booting, it completes just
Normal booting.If aforesaid operations still cannot repair booting exception, need to force to terminate abnormal thread, first completes to open
Corresponding exception information is notified user again after booting by machine, so that user is completed corresponding reparation operation, such as carry out recovery appearance
Setting etc..
In step 106, it is judged as it is not when being switched on required thread, to terminate the exception thread.If abnormal thread is not opened
The required thread of machine, expression are that the thread of tripartite causes booting abnormal, then can directly terminate the exception thread, completion is normally opened
Machine.
Fig. 2 is the system architecture diagram of booting abnormality processing according to the present invention.As described in Figure 2, booting of the invention is abnormal
The system 200 of processing includes: that module 201, memory module 202, judgment module 203, enquiry module 204 and exception are guarded in booting
Processing module 205.
Module 201 is guarded in booting, when being used to start a newly-built daemon thread in booting, and detecting current booting
Between.
Memory module 202, for storing normal boot-strap time and the required thread list of normal boot-strap.
Judgment module 203, for judging whether booting normally completes and judge whether abnormal thread is the required line that is switched on
Journey.In the present embodiment, judge whether booting normally completes with the normal boot-strap time by comparing the current available machine time, such as
The fruit current available machine time is greater than the normal boot-strap time, then is judged as that appearance booting is abnormal;If the current available machine time be less than or
Equal to the normal boot-strap time, then it is judged as that booting is normal.In addition, in the present embodiment, by by abnormal thread and normal boot-strap
Must thread list be compared to judge whether it is the required thread of booting, if aftermentioned exception thread is required in normal boot-strap
When in thread list, then it is judged as the required thread of booting;If aftermentioned exception thread is not in the required thread list of normal boot-strap
When middle, then it is judged as not it is the required thread that is switched on.
Enquiry module 204 is enabled in the abnormal thread of inquiry (abnormal thread occur) in the thread having been turned on.In this reality
It applies in example, such as abnormal thread includes: the thread for endless loop occur, the occupancy for being embodied as thread CPU is high;Largely account for
With the thread of memory headroom, the occupancy for being embodied as the thread memory is high;And there is the system mistake of especially severe
Thread.
Exception processing module 205, for handling abnormal thread, to complete to be switched on.In the present embodiment, it is not being judged as
Be switched on required thread when, terminate the thread;When being judged as abnormal thread is to be switched on required thread, abnormal thread is reinitialized
The data of respective modules, and restart the exception thread.In the present embodiment, the number of abnormal thread respective modules is reinitialized
According to, and restart the exception thread, and it is abnormal to repair booting, complete normal booting.If aforesaid operations still cannot repair this
Booting is abnormal, then needs to force to terminate abnormal thread, first completes booting, corresponding exception information is notified user again after booting,
So that user is completed corresponding reparation operation, such as carries out restoring the setting etc. that appears on the scene.
The method and system of above-mentioned booting abnormality processing can be suitable for mobile terminal.Mobile terminal includes: mobile phone, plate
Computer, notebook etc..
According to the present embodiment, a daemon thread is created in booting, whether monitoring booting normally completes;If currently opened
The machine time is more than the normal boot-strap time, then whether the current abnormal thread of judgement is the required thread that is switched on;If abnormal thread is not
Be switched on required thread, directly terminates the thread;If abnormal thread is the required thread that is switched on, it is corresponding to reinitialize the thread
The data of module restart this thread.Therefore, reach mobile phone booting when there is exception in the case where, can also normally start, allow
User has better usage experience.
Those of ordinary skill in the art will appreciate that: the foregoing is only a preferred embodiment of the present invention, and does not have to
In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art
For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into
Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include
Within protection scope of the present invention.
Claims (10)
1. a kind of method for the abnormality processing that is switched on, which comprises the following steps:
Start a newly-built daemon thread when booting;
Judge whether booting normally completes;
When being judged as that appearance booting is abnormal, abnormal thread is inquired in the thread having been turned on;
Judge whether the abnormal thread is the required thread that is switched on;
Handle abnormal thread.
2. the method for booting abnormality processing according to claim 1, which is characterized in that starting one creates when the booting
Daemon thread the step of, further comprise:
Start a newly-built daemon thread in booting, and detects the current available machine time.
3. the method for booting abnormality processing according to claim 1, which is characterized in that
The exception thread includes: the thread for endless loop occur, and the occupancy for being embodied as thread CPU is high;It is a large amount of to occupy
The thread of memory headroom, the occupancy for being embodied as the thread memory are high;And there is the line of the system mistake of especially severe
Journey.
4. the method for booting abnormality processing according to claim 1, which is characterized in that
In the data for reinitializing abnormal thread respective modules, and after the step of restarting the exception thread, further include
Following steps:
In the data for reinitializing abnormal thread respective modules, and the step of restarting the exception thread cannot repair it is described
Booting is abnormal, then needs to force to terminate the abnormal thread, first complete booting, notify to use by corresponding exception information again after booting
Family makes user complete corresponding reparation operation.
5. the method for booting abnormality processing according to claim 1, which is characterized in that the step for handling abnormal thread
Suddenly, further comprise:
When being judged as YES the required thread of the booting, the data of abnormal thread respective modules are reinitialized, and it is different to restart this
Normal thread, or be judged as when not being the required thread of the booting, terminate the abnormal thread.
6. a kind of system for the abnormality processing that is switched on characterized by comprising
Module is guarded in booting, is used to start a newly-built daemon thread in booting;
Judgment module, for judging whether booting normally completes and judge whether abnormal thread is the required thread that is switched on;
Enquiry module is enabled in inquiring the abnormal thread in the thread having been turned on;And
Exception processing module, for handling abnormal thread, to complete to be switched on.
7. the system of booting abnormality processing according to claim 6, which is characterized in that further include:
Memory module, for storing normal boot-strap time and the required thread list of normal boot-strap.
8. the system of booting abnormality processing according to claim 6, which is characterized in that
The exception thread includes: the thread for endless loop occur, and the occupancy for being embodied as thread CPU is high;It is a large amount of to occupy
The thread of memory headroom, the occupancy for being embodied as the thread memory are high;And there is the line of the system mistake of especially severe
Journey.
9. the system of booting abnormality processing according to claim 6, which is characterized in that
The exception processing module reinitializes abnormal thread respective modules when being judged as YES the required thread of the booting
Data, and restart the exception thread, or be judged as when not being the required thread of the booting, terminate the abnormal thread.
10. a kind of mobile terminal characterized by comprising
The system of booting abnormality processing described in any one of claim 6 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910680162.7A CN110399244A (en) | 2019-07-26 | 2019-07-26 | A kind of method, system and the mobile terminal of the abnormality processing that is switched on |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910680162.7A CN110399244A (en) | 2019-07-26 | 2019-07-26 | A kind of method, system and the mobile terminal of the abnormality processing that is switched on |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110399244A true CN110399244A (en) | 2019-11-01 |
Family
ID=68326056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910680162.7A Withdrawn CN110399244A (en) | 2019-07-26 | 2019-07-26 | A kind of method, system and the mobile terminal of the abnormality processing that is switched on |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110399244A (en) |
-
2019
- 2019-07-26 CN CN201910680162.7A patent/CN110399244A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8762782B2 (en) | Basic input-output system circuit and method for using the same | |
US20010037473A1 (en) | Backup apparatus and a backup method | |
CN106201844B (en) | A kind of log collecting method and device | |
CN103581225A (en) | Distributed system node processing task method | |
CN104834575A (en) | Firmware recovery method and device | |
CN102508734B (en) | Operating system recovery method and intelligent equipment | |
CN110119325B (en) | Server fault processing method, device, equipment and computer readable storage medium | |
CN100583782C (en) | Software upgrade method and device | |
WO2016192161A1 (en) | Data processing method and device | |
CN113115351A (en) | Network exception processing method and device, terminal equipment and medium | |
US20080082630A1 (en) | System and method of fault tolerant reconciliation for control card redundancy | |
CN103491134A (en) | Container monitoring method and device and agency service system | |
CN101964725A (en) | Method and system for realizing upgrading without interrupting service | |
CN106170013B (en) | A kind of Kafka message uniqueness method based on Redis | |
CN102902563A (en) | Linux operating system and method for mounting file system in starting process of Linux operating system | |
CN104010077A (en) | Information processing method and electronic equipment | |
US7734956B2 (en) | Process management system | |
WO2023065601A1 (en) | Server component self-test anomaly recovery method and device, system, and medium | |
CN102508703B (en) | Multi-interface management method under single task | |
CN106874126A (en) | Host process method for detecting abnormality in a kind of software development | |
CN110399244A (en) | A kind of method, system and the mobile terminal of the abnormality processing that is switched on | |
CN109828945A (en) | A kind of service message processing method and system | |
CN108958980A (en) | Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception | |
CN109032673A (en) | Automatically reply the method and computer system of basic input output system image shelves | |
CN114647531B (en) | Failure solving method, failure solving system, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20191101 |