CN106445721A - Watchdog fault-tolerant processing method and mobile terminal - Google Patents

Watchdog fault-tolerant processing method and mobile terminal Download PDF

Info

Publication number
CN106445721A
CN106445721A CN201610888175.XA CN201610888175A CN106445721A CN 106445721 A CN106445721 A CN 106445721A CN 201610888175 A CN201610888175 A CN 201610888175A CN 106445721 A CN106445721 A CN 106445721A
Authority
CN
China
Prior art keywords
enumerator
blacklist list
house dog
mobile terminal
time
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.)
Granted
Application number
CN201610888175.XA
Other languages
Chinese (zh)
Other versions
CN106445721B (en
Inventor
范辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610888175.XA priority Critical patent/CN106445721B/en
Publication of CN106445721A publication Critical patent/CN106445721A/en
Application granted granted Critical
Publication of CN106445721B publication Critical patent/CN106445721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0793Remedial 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)
  • Telephonic Communication Services (AREA)
  • Alarm Systems (AREA)

Abstract

The invention is applicable to the technical field of communication and provides a watchdog fault-tolerant processing method and a mobile terminal. The method comprises the following steps of: setting a blacklist of a process, wherein the blacklist comprises one or more appointed abnormal processes; and when detecting that a counter of a watchdog is timed out, closing the abnormal processes, which cause timeout, according to the blacklist, and resetting the counter. According to the watchdog fault-tolerant processing method and the mobile terminal, provided by the invention, fault-tolerant processing of the single abnormal process is realized, and whole machine resetting and restart with relatively high cost are avoided; and a fault-tolerant recovering process of the abnormal processes by the watchdog is effectively simplified and fault-tolerant recovering time is shortened.

Description

The method of house dog fault-tolerant processing and mobile terminal
Technical field
The invention belongs to communication technical field, more particularly to a kind of method of house dog fault-tolerant processing and mobile terminal.
Background technology
At present, house dog is the conventional method for detecting abnormality of embedded system and mobile terminal, for inspection software or hard The idle situation of part long-time.Existing house dog generally feeds Canis familiaris L. task by an external counter, reset circuit and one Composition.The Canis familiaris L. task of feeding refers to that CPU periodically sends reset instruction to enumerator according to the count value of timer, to reset State enumerator.When the enumerator is not reset for a long time, default threshold value can be reached, house dog will produce overtime interrupt, And whole system is restarted in recording exceptional process and reset in THP terminal handler process.
However, in some cases, it is often as single abnormal process and takes CPU for a long time and cause to feed Canis familiaris L. task no Method is executed, and the cost that restarts that now whole system carried out resetting is higher, and expends the time.
Content of the invention
In consideration of it, embodiments providing a kind of method of house dog fault-tolerant processing and mobile terminal, seen with simplifying Door fault-tolerant recovery process of the Canis familiaris L. to abnormal process, shortens fault-tolerant recovery time.
A kind of first aspect, there is provided method of house dog fault-tolerant processing, methods described includes:
The blacklist list of setting process, the blacklist list includes one or more abnormal process that specifies;
When the enumerator time-out of house dog is detected, closed according to the blacklist list and cause the exception of time-out to enter Journey, and the enumerator that resets.
Further, described when the enumerator time-out of house dog is detected, closed according to the blacklist list and cause The abnormal process of time-out, and the enumerator that resets includes:
When the enumerator time-out of house dog is detected, the process state of the house dog is obtained;
If the process state is that hello Canis familiaris L. task dispatching is pending, obtain hello the corresponding CPU of Canis familiaris L. task works as advance Journey and process title;
Judge in the blacklist list, whether to include the process title;
If the blacklist list includes the process title, confirm that current process is the abnormal process that specifies, close Close the abnormal process, and the enumerator that resets.
Further, after the enumerator that resets, methods described also includes:
If next cycle reach when detect again the enumerator time-out, produce reset signal to the CPU with Restart system.
Further, methods described also includes:
If the process state is carrying out for feeding Canis familiaris L. task, reset signal is produced to the CPU to restart system.
Further, methods described also includes:
If do not include the process title in the blacklist list, reset signal is produced to the CPU to restart System.
A kind of second aspect, there is provided mobile terminal, the mobile terminal includes:
Setup module, for arranging the blacklist list of process, the blacklist list includes one or more specifying Abnormal process;
Processing module, for when the enumerator time-out of house dog is detected, closing according to the blacklist list and causing The abnormal process of time-out, and the enumerator that resets.
Further, the processing module includes:
First acquisition unit, for when the enumerator time-out of house dog is detected, obtaining the process shape of the house dog State;
Second acquisition unit, if be that hello Canis familiaris L. task dispatching is pending for the process state, obtains hello the Canis familiaris L. task The current process of corresponding CPU and process title;
Judging unit, for judging whether include the process title in the blacklist list;
Closing unit, if including the process title for the blacklist list, confirms that current process is specified Abnormal process, close the abnormal process, and the enumerator that resets.
Further, the processing module also includes:
First restarts unit, if detecting enumerator time-out for next cycle when reaching again, produces multiple Position signal is to the CPU to restart system.
Further, the processing module also includes:
Second restarts unit, if be carrying out for feeding Canis familiaris L. task for the process state, produces reset signal extremely The CPU is to restart system.
Further, the processing module also includes:
3rd restarts unit, if during for not including the process title in the blacklist list, produces the letter that resets Number to the CPU to restart system.
A kind of third aspect, there is provided mobile terminal, the mobile terminal includes:
Processor, for arranging the blacklist list of process, the blacklist list includes one or more specifying Abnormal process;When the enumerator time-out of house dog is detected, closed according to the blacklist list and cause the exception of time-out to enter Journey, and the enumerator that resets.
Further, the processor, for when the enumerator time-out of house dog is detected, obtaining the house dog Process state;If the process state is that hello Canis familiaris L. task dispatching is pending, obtain hello the corresponding CPU of Canis familiaris L. task works as advance Journey and process title;Judge in the blacklist list, whether to include the process title;If the blacklist list includes The process title, then confirm that current process is the abnormal process that specifies, close the abnormal process, and the counting that resets Device.
Compared with prior art, the embodiment of the present invention is by pre-setting the blacklist list of process, the blacklist row Table includes one or more abnormal process that specifies;When the enumerator time-out of house dog is detected, then according to the black name Single-row table closes the abnormal process for causing time-out, and the enumerator that resets;It is achieved thereby that to the fault-tolerant of single abnormal process Process, recovery system is attempted by closing single abnormal process, it is to avoid the higher whole machine of cost resets and restarts, effectively letter Change fault-tolerant recovery process of the house dog to abnormal process, shorten the time of fault-tolerant processing.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flowchart of the method for the house dog fault-tolerant processing that first embodiment of the invention is provided;
Fig. 2 be second embodiment of the invention provide house dog fault-tolerant processing method in step S102 realize flow process Figure;
Fig. 3 is the schematic block diagram of the mobile terminal that third embodiment of the invention is provided;
Fig. 4 is the schematic block diagram of the mobile terminal that fourth embodiment of the invention is provided;
Fig. 5 is the schematic block diagram of the mobile terminal that fifth embodiment of the invention is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention includes one or many by pre-setting the blacklist list of process, the blacklist list The individual abnormal process that specifies;When the enumerator time-out of house dog is detected, then caused according to blacklist list closing super When abnormal process, and the enumerator that resets;It is achieved thereby that the fault-tolerant processing to single abnormal process, single by closing Abnormal process is attempting recovery system, it is to avoid cost higher whole machine resets and restarts, and effectively simplifies house dog to exception The fault-tolerant recovery process of process, shortens the time of fault-tolerant processing.The embodiment of the present invention additionally provides corresponding mobile terminal, with Lower it is described in detail respectively.
Fig. 1 show first embodiment of the invention provide house dog fault-tolerant processing method realize flow process.
In embodiments of the present invention, the method for the house dog fault-tolerant processing is applied to mobile terminal, the mobile terminal Including but not limited to computer, smart mobile phone, panel computer, learning machine etc..
Refering to Fig. 1, the method for the house dog fault-tolerant processing includes:
The blacklist list of process, in step S101, is set, and the blacklist list includes one or more specifying Abnormal process.
The embodiment of the present invention has pre-defined a blacklist list, and the blacklist list is used for recording what user specified Abnormal process.Here, the abnormal process for close after can make the normal abnormal process of system recovery, usually malice Program or known defect process.
In step s 102, when the enumerator time-out of house dog is detected, closed according to the blacklist list and cause The abnormal process of time-out, and the enumerator that resets.
When the enumerator time-out of house dog is detected, the embodiment of the present invention is first looked at feeds the corresponding CPU's of Canis familiaris L. task According to the blacklist list, then current process determines whether the current process is different whether in the blacklist list Chang Jincheng, if the abnormal process is then closed, and the enumerator that resets, to attempt making system by closing abnormal process Recover normal, it is to avoid the higher whole machine of cost resets.
Used as a preferred exemplary of the present invention, Fig. 2 shows the fault-tolerant place of the house dog of second embodiment of the invention offer In the method for reason, step S102 implements flow process.Refering to Fig. 2, step S102 includes:
In step s 201, when the enumerator time-out of house dog is detected, the process state of the house dog is obtained.
Here, the process state of the house dog includes that hello Canis familiaris L. task is carrying out or hello Canis familiaris L. task dispatching is pending. When hello the Canis familiaris L. task refers to that detection cycle is reached, CPU sends reset instruction so that the enumerator to the enumerator of house dog Reset the operation for resetting.When enumerator time-out is not received by the reset instruction of CPU, enumerator will be generated a reset signal to CPU is so that cpu reset, prevents CPU from crashing.The embodiment of the present invention improves the process logic of house dog overtime interrupt, works as detection To the enumerator of house dog there is time-out when, directly do not produce reset signal to CPU come the system that resets, but first check house dog Process state.
In step S202, if the process state is that hello Canis familiaris L. task dispatching is pending, obtains the Canis familiaris L. task of feeding and correspond to The current process of CPU and process title.
Here, when pending hello the Canis familiaris L. task such as house dog, the embodiment of the present invention detects waiting list, checks described feeding The current process of the corresponding CPU of Canis familiaris L. task, obtains the process title of current process, so as to know cause time-out current process and Its process title.
In step S203, judge in the blacklist list, whether to include the process title.
After the process title for causing time-out is got, by each in the process title and the blacklist list Process title is contrasted one by one, to judge whether include the process title in the blacklist list.
If the blacklist list includes the process title, execution step S204.
In step S204, confirm that current process is the abnormal process that specifies, the abnormal process is closed, and it is described to reset Enumerator.
Here, when the embodiment of the present invention is the abnormal process that specifies by matching the process for causing time-out, then first lead to Cross and close the abnormal process recovery system is attempted, and counter O reset is resetted.It is achieved thereby that to single abnormal process Fault-tolerant processing, if the system can recover normal, avoid the higher whole machine of cost and reset and restart, shorten fault-tolerant place The time of reason.
Further, after the abnormal process is closed, system is likely to not recover normal, and the embodiment of the present invention is then led to Cross prolongation a cycle to restart system.After the enumerator that resets, step S102 can also include:
In step S205, if detecting the enumerator time-out when next cycle is reached again, the letter that resets is produced Number to the CPU to restart system.
Here, the embodiment of the present invention is in the enumerator time-out of house dog, and the process of Canis familiaris L. task is fed in detection impact, if The abnormal process that specifies in the blacklist list, then first close the abnormal process to attempt recovery system, then extends one Whether the enumerator of individual cycle observation house dog is still overtime, if so, then produces reset signal again to CPU to restart system;From And fault-tolerant processing process of the house dog to specified abnormal process had both been simplified, guaranteed system normally can be restarted.
Further, in embodiment illustrated in fig. 2, if the process state through the house dog acquired in step S201 is When hello Canis familiaris L. task is carrying out, described step S102 can also include:
If the process state is carrying out for feeding Canis familiaris L. task, reset signal is produced to the CPU to restart system.
Further, in embodiment illustrated in fig. 2, if after step S203 judges, if the process title is not in institute State in blacklist, described step S102 can also include:
If do not include the process title in the blacklist list, reset signal is produced to the CPU to restart System.
Here, if not including the process title in the blacklist list, that is, the current process for causing time-out is not The abnormal process that specifies, then produce overtime interrupt, restart system.
In sum, the embodiment of the present invention is wrapped in the blacklist list by pre-setting the blacklist list of process Include one or more abnormal process that specifies;When the enumerator time-out of house dog is detected, then according to the blacklist list Close the abnormal process for causing time-out, and the enumerator that resets;It is achieved thereby that the fault-tolerant processing to single abnormal process, leads to Cross and close single abnormal process to attempt recovery system, it is to avoid the higher whole machine of cost resets and restarts, and effectively simplifies and sees Door fault-tolerant recovery process of the Canis familiaris L. to abnormal process, shortens the time of fault-tolerant processing.
Fig. 3 shows the schematic block diagram of the mobile terminal that third embodiment of the invention is provided, and for convenience of description, only shows The part related to the embodiment of the present invention is gone out.
In embodiments of the present invention, the mobile terminal is used for realizing the house dog described in above-mentioned Fig. 1 or Fig. 2 embodiment The method of fault-tolerant processing.The mobile terminal includes but is not limited to computer, smart mobile phone, panel computer etc..
Refering to Fig. 3, the mobile terminal includes:
Setup module 31, for arranging the blacklist list of process, the blacklist list includes one or more fingers Fixed abnormal process;
Processing module 32, for when the enumerator time-out of house dog is detected, closing according to the blacklist list and drawing Play the abnormal process of time-out, and the enumerator that resets.
The embodiment of the present invention has pre-defined a blacklist list, and the blacklist list is used for recording what user specified Abnormal process.Here, the abnormal process for close after can make the normal abnormal process of system recovery, usually malice Program or known defect process.When the enumerator time-out of house dog is detected, the embodiment of the present invention is first looked at feeds Canis familiaris L. The current process of the corresponding CPU of task whether in the blacklist list, then according to the blacklist list close described in Abnormal process, and the enumerator that resets, to attempt recovery system by closing abnormal process, it is to avoid the higher whole machine of cost Reset.
Further, the processing module 32 includes:
First acquisition unit 321, for when the enumerator time-out of house dog is detected, obtaining the process of the house dog State;
Second acquisition unit 322, if be that hello Canis familiaris L. task dispatching is pending for the process state, obtain hello the Canis familiaris L. and appoints The current process of corresponding CPU of being engaged in and process title;
Judging unit 323, for judging whether include the process title in the blacklist list;
Closing unit 324, if including the process title for the blacklist list, confirms current process for referring to Fixed abnormal process, closes the abnormal process, and the enumerator that resets.
Here, the process state of the house dog includes that hello Canis familiaris L. task is carrying out or hello Canis familiaris L. task dispatching is pending. After enumerator time-out, if the process state of house dog is that hello Canis familiaris L. task dispatching is pending, detection causes the process of time-out, if The process is the abnormal process that specifies, then attempt recovery system by closing the abnormal process, and by counter O reset Reset, it is achieved thereby that the fault-tolerant processing to single abnormal process;If the system can recover normal, cost is avoided relatively High whole machine resets and restarts, and is effectively shortened the time of fault-tolerant processing.
Further, the processing module 32 also includes:
First restarts unit 325, if detecting enumerator time-out for next cycle when reaching again, produces Reset signal is to the CPU to restart system.
Here, the embodiment of the present invention is after the abnormal process is closed to attempt recovery system, then extends a cycle Whether the enumerator to observe house dog is still overtime, if so, then produces reset signal again to CPU to restart system;So as to Both house dog fault-tolerant processing process to abnormal process simplified, and guaranteed system normally can be restarted.
Further, the processing module 32 also includes:
Second restarts unit 326, if be carrying out for feeding Canis familiaris L. task for the process state, produces reset signal To the CPU to restart system.
Further, the processing module 32 also includes:
3rd restarts unit 327, if during for not including the process title in the blacklist list, produces reset Signal is to the CPU to restart system.
It should be noted that the mobile terminal in the embodiment of the present invention can be used for realizing complete in said method embodiment Portion's technical scheme, the function of its each functional module can be implemented according to the method in said method embodiment, and which is concrete The process of realization can refer to the associated description in examples detailed above, and here is omitted.
Referring to Fig. 4, it is the schematic block diagram of mobile terminal provided in an embodiment of the present invention.The mobile terminal as depicted Can include:One or more processors 501 (in figure only illustrates one);(in figure is only illustrated one or more input equipments 502 One), one or more outut devices 503 (in figure only illustrates), memorizer 504.Above-mentioned processor 501, input equipment 502nd, outut device 503, memorizer 504 are connected by bus 506.Memorizer 504 is used for store instruction, and processor 501 is used for Execute the instruction of the storage of memorizer 504.Wherein:
The processor 501, for arranging the blacklist list of process, the blacklist list includes one or more The abnormal process that specifies;When the enumerator time-out of house dog is detected, closed according to the blacklist list and cause time-out Abnormal process, and the enumerator that resets.
Alternatively, the processor 501 is additionally operable to:When the enumerator time-out of house dog is detected, guard the gate described in acquisition The process state of Canis familiaris L.;If the process state is that hello Canis familiaris L. task dispatching is pending, acquisition hello the corresponding CPU's of Canis familiaris L. task ought Front process and process title;Judge in the blacklist list, whether to include the process title;If in the blacklist list Including the process title, then confirm that current process is the abnormal process that specifies, close the abnormal process, and the meter that resets Number device.
Alternatively, the processor 501 is additionally operable to:If next cycle detects the enumerator again surpassing when reaching When, then reset signal is produced to the CPU to restart system.
Alternatively, the processor 501 is additionally operable to:If the process state is carrying out for feeding Canis familiaris L. task, produce Reset signal is to the CPU to restart system.
Alternatively, the processor 501 is additionally operable to:If do not include the process title in the blacklist list, Reset signal is produced to the CPU to restart system.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be CPU (Central Processing Unit, CPU) and/or graphic process unit (Graphic Processing Unit, GPU), it is also possible in this base Other general processors, digital signal processor (Digital Signal Processor, DSP), special integrated are combined on plinth Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..
Input equipment 502 can include that Trackpad, fingerprint adopt sensor (for gathering the finger print information of user and fingerprint Directional information), mike, communication module (such as Wi-Fi module, 2G/3G/4G mixed-media network modules mixed-media), physical button etc..
Outut device 503 can include display (LCD etc.), speaker etc..Wherein, display can be used to show by user The information of input or it is supplied to information of user etc..Display may include display floater, optionally, can adopt liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED form is configuring display floater.Further, above-mentioned touch screen can be covered over the display, when touch screen is detected Thereon or after neighbouring touch operation, processor 501 is sent to determine the type of touch event, with preprocessor 501 Corresponding visual output is provided over the display according to the type of touch event.
In implementing, processor 501 described in the embodiment of the present invention, input equipment 502, outut device 503, deposit Reservoir 504 can perform the realization side described in the embodiment of the method for house dog fault-tolerant processing provided in an embodiment of the present invention Formula, will not be described here.
Fig. 5 is a kind of schematic block diagram of mobile terminal provided in an embodiment of the present invention, and the mobile terminal can be used for reality The method of the house dog fault-tolerant processing for providing in existing above-described embodiment.
As shown in figure 5, mobile terminal 1 200 can include RF (Radio Frequency, radio frequency) circuit 110, include The memorizer 120 of one or more (in figure only illustrates one) computer-readable recording mediums, input block 130, display Unit 140, sensor 150, voicefrequency circuit 160, transport module 170, include one or more than one (in figure only illustrates one Individual) part such as the processor 180 of processing core and power supply 190.It will be understood by those skilled in the art that the shifting for illustrating in Fig. 5 1200 structure of dynamic terminal does not constitute the restriction to mobile terminal 1 200, can include than illustrating more or less of part, or Person combines some parts, or different part arrangements.Wherein:
RF circuit 110 is used for receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and the signal of telecommunication, so as to logical News network or other equipment are communicated.RF circuit 110 may include the various existing circuit elements for executing these functions Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage Device etc..RF circuit 110 can be communicated or by wireless with various networks such as the Internet, intranet, wireless network Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN). Above-mentioned wireless network can use various communication standards, agreement and technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM), enhancement mode mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division multiple Access, W-CDMA), CDMA (Code division access, CDMA), tdma (time Division multiple access, TDMA), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) is (as U.S.'s electricity Gas and Electronic Engineering Association's standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, IMU News and the agreement of short message, and any other suitable communications protocol, or even may include that those are currently developed not yet Agreement.
Memorizer 120 can be used to store software program and module, as the corresponding programmed instruction of method in above-mentioned embodiment/ Module, processor 180 is stored in software program and module in memorizer 120 by operation, should so as to execute various functions With and data processing, that is, arrange process blacklist list, when house dog enumerator time-out when according to the blacklist list The abnormal process that specifies is closed to attempt recovery system.Memorizer 120 may include high speed random access memory, may also include non-volatile Property memorizer, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.Real at some In example, memorizer 120 can further include the memorizer remotely located with respect to processor 180, and these remote memories are permissible By network connection to mobile terminal 1 200.The example of above-mentioned network includes but is not limited to the Internet, intranet, local Net, mobile radio communication and combinations thereof.
Input block 130 can be used for the numeral of receives input or character information, and produce and user setup and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable object such as finger, stylus or adnexa in touch-sensitive table Operation on face 131 or near the Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Optional , Touch sensitive surface 131 may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information being received in detection means, and is converted into contact coordinate, then gives processor 180, and can receiving processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using the polytype such as resistance-type, condenser type, infrared ray and surface acoustic wave Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for display by the information of user input or be supplied to information and the mobile terminal of user 1200 various graphical user interface, these graphical user interface can be by figure, text, icon, video and its combination in any To constitute.Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configuration display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected at which On or near touch operation after, send processor 180 to determine the type of touch event, with preprocessor 180 according to touch The type for touching event provides corresponding visual output on display floater 141.Although in Figure 5, Touch sensitive surface 131 and display surface Plate 141 is the part independent as two realizing input and input function, but in some embodiments it is possible to by touch-sensitive table Face 131 is integrated with display floater 141 and realization is input into and output function.
Mobile terminal 1 200 may also include at least one sensor 150, such as optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can basis The light and shade of ambient light adjusting the brightness of display floater 141, proximity transducer can when mobile terminal 1 200 is moved in one's ear, Close display floater 141 and/or backlight.Used as one kind of motion sensor, Gravity accelerometer can detect all directions The size of upper (generally three axles) acceleration, can detect that size and the direction of gravity when static, can be used to detect angle of inclination, And application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), the Vibration identification correlation work(of identification mobile phone attitude Energy (such as pedometer, percussion) etc.;The gyroscope that can also configure as mobile terminal 1 200, barometer, drimeter, thermometer, The other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 160, speaker 161, the audio frequency that microphone 162 can be provided between user and mobile terminal 1 200 connects Mouthful.The signal of telecommunication after the voice data for receiving conversion can be transferred to speaker 161, by speaker 161 by voicefrequency circuit 160 Be converted to acoustical signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 162, by voicefrequency circuit Voice data is converted to after 160 receptions, then after voice data output processor 180 is processed, through RF circuit 110 to be sent to ratio As another terminal, or voice data is exported to memorizer 120 to process further.Voicefrequency circuit 160 is also possible that Earphone jack, to provide the communication of peripheral hardware earphone and mobile terminal 1 200.
Mobile terminal 1 200 can help user to send and receive e-mail by transport module 170 (such as WiFi module), clear Look at webpage and streaming video etc. is accessed, it has provided the user wireless broadband internet and has accessed.Although Fig. 5 shows transmission mould Block 170, but it is understood that, which is simultaneously not belonging to must be configured into for mobile terminal 1 200, completely can be as needed not Omit in the scope of the essence for changing invention.
Processor 180 is the control centre of mobile terminal 1 200, using each of various interfaces and connection whole mobile phone Individual part, is stored in software program and/or module in memorizer 120 by running or executing, and calls and be stored in storage Data in device 120, execute various functions and the processing data of mobile terminal 1 200, so as to carry out integral monitoring to mobile phone.Can Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modulation /demodulation is processed Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Mobile terminal 1 200 also includes the power supply 190 (such as battery) that powers to all parts, it is preferred that power supply can lead to Cross power-supply management system logically contiguous with processor 180, so as to by power-supply management system realize management charge, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or alternating current power supply, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, mobile terminal 1 200 can also include photographic head, bluetooth module etc., will not be described here.Specifically In the present embodiment, the display unit of mobile terminal is touch-screen display, and mobile terminal also includes memorizer, and one Or more than one program, one of them or more than one program storage in memorizer, and be configured to by one or More than one computing device of person states one or more than one program bag contains the instruction for carrying out following operation:
The blacklist list of setting process, the blacklist list includes one or more abnormal process that specifies;
When the enumerator time-out of house dog is detected, closed according to the blacklist list and cause the exception of time-out to enter Journey, and the enumerator that resets.
Assume above-mentioned for the first possible embodiment, then provide based on the first possible embodiment Second possible embodiment in, in the memorizer of the mobile terminal, also include for executing the instruction of following operation:
Described when detect house dog enumerator time-out when, according to the blacklist list close cause time-out exception Process, and the enumerator that resets includes:
When the enumerator time-out of house dog is detected, the process state of the house dog is obtained;
If the process state is that hello Canis familiaris L. task dispatching is pending, obtain hello the corresponding CPU of Canis familiaris L. task works as advance Journey and process title;
Judge in the blacklist list, whether to include the process title;
If the blacklist list includes the process title, confirm that current process is the abnormal process that specifies, close Close the abnormal process, and the enumerator that resets.
In the third the possible embodiment for providing based on the first or second possible embodiment, In the memorizer of the mobile terminal, also include the instruction for executing following operation:
After the enumerator that resets, if detecting the enumerator time-out when next cycle is reached again, produce Raw reset signal is to the CPU to restart system.
In the 4th kind of possible embodiment for providing based on second or the third possible embodiment, In the memorizer of the mobile terminal, also include the instruction for executing following operation:
If the process state is carrying out for feeding Canis familiaris L. task, reset signal is produced to the CPU to restart system.
In the 5th kind of possible embodiment for providing based on second or the third possible embodiment, In the memorizer of the mobile terminal, also include the instruction for executing following operation:
If do not include the process title in the blacklist list, reset signal is produced to the CPU to restart System.
The embodiment of the present invention includes one or many by pre-setting the blacklist list of process, the blacklist list The individual abnormal process that specifies;When the enumerator time-out of house dog is detected, then caused according to blacklist list closing super When abnormal process, and the enumerator that resets;It is achieved thereby that the fault-tolerant processing to single abnormal process, single by closing Abnormal process is attempting recovery system, it is to avoid cost higher whole machine resets and restarts, and effectively simplifies house dog to exception The fault-tolerant recovery process of process, shortens the time of fault-tolerant processing.
Those of ordinary skill in the art are it is to be appreciated that the list of each example for describing with reference to the embodiments described herein Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Executed with hardware or software mode, the application-specific depending on technical scheme and design constraint.Professional and technical personnel Each specific application can be used different methods to described function is realized, but this realization is it is not considered that exceed The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the module of foregoing description With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, be will not be described here.
In several embodiments provided herein, it should be understood that disclosed method and mobile terminal, Ke Yitong Cross other modes to realize.For example, embodiments described above is only schematically, for example module, the drawing of unit Point, only a kind of division of logic function, can have other dividing mode when actually realizing, and for example multiple units or component can To combine or be desirably integrated into another system, or some features can be ignored, or not execute.Another, shown or beg for By coupling each other direct-coupling or communication connection can be the INDIRECT COUPLING of module or unit by some interfaces Or communication connection, can be electrical, mechanical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention, module can be integrated in a processing unit, Can be that unit, module are individually physically present, it is also possible to which two or more units, module are integrated in a unit In.
If the function realized using in the form of SFU software functional unit and as independent production marketing or use when, permissible It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual People's computer, server, or network equipment etc.) execute each embodiment methods described of the present invention all or part of step. And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (12)

1. a kind of method of house dog fault-tolerant processing, it is characterised in that methods described includes:
The blacklist list of setting process, the blacklist list includes one or more abnormal process that specifies;
When the enumerator time-out of house dog is detected, the abnormal process for causing time-out is closed according to the blacklist list, and Reset the enumerator.
2. the method for house dog fault-tolerant processing as claimed in claim 1, it is characterised in that described when the meter that detect house dog During number device time-out, the abnormal process for causing time-out is closed according to the blacklist list, and the enumerator that resets includes:
When the enumerator time-out of house dog is detected, the process state of the house dog is obtained;
If the process state for feed Canis familiaris L. task dispatching pending, obtain the current process for feeding the corresponding CPU of Canis familiaris L. task and Process title;
Judge in the blacklist list, whether to include the process title;
If the blacklist list includes the process title, confirm that current process is the abnormal process that specifies, close institute State abnormal process, and the enumerator that resets.
3. the method for house dog fault-tolerant processing as claimed in claim 2, it is characterised in that after the enumerator that resets, Methods described also includes:
If next cycle detects enumerator time-out again when reaching, reset signal is produced to the CPU to restart System.
4. the method for house dog fault-tolerant processing as claimed in claim 2 or claim 3, it is characterised in that methods described also includes:
If the process state is carrying out for feeding Canis familiaris L. task, reset signal is produced to the CPU to restart system.
5. the method for house dog fault-tolerant processing as claimed in claim 2 or claim 3, it is characterised in that methods described also includes:
If do not include the process title in the blacklist list, reset signal is produced to the CPU to restart system.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Setup module, for arranging the blacklist list of process, the blacklist list include one or more specify different Chang Jincheng;
Processing module, for when the enumerator time-out of house dog is detected, closing according to the blacklist list and causing time-out Abnormal process, and the enumerator that resets.
7. mobile terminal as claimed in claim 6, it is characterised in that the processing module includes:
First acquisition unit, for when the enumerator time-out of house dog is detected, obtaining the process state of the house dog;
Second acquisition unit, if be that hello Canis familiaris L. task dispatching is pending for the process state, obtain the Canis familiaris L. task of feeding and corresponds to The current process of CPU and process title;
Judging unit, for judging whether include the process title in the blacklist list;
Closing unit, if including the process title for the blacklist list, confirms that current process is specify different Chang Jincheng, closes the abnormal process, and the enumerator that resets.
8. mobile terminal as claimed in claim 7, it is characterised in that the processing module also includes:
First restarts unit, if detecting enumerator time-out for next cycle when reaching again, produces the letter that resets Number to the CPU to restart system.
9. as claimed in claim 7 or 8 mobile terminal, it is characterised in that the processing module also includes:
Second restarts unit, if be carrying out for feeding Canis familiaris L. task for the process state, produces reset signal to described CPU is to restart system.
10. mobile terminal as claimed in claim 7 or 8, it is characterised in that the processing module also includes:
3rd restarts unit, if during for not including the process title in the blacklist list, produces reset signal extremely The CPU is to restart system.
11. a kind of mobile terminals, it is characterised in that the mobile terminal includes:
Processor, for arranging the blacklist list of process, the blacklist list includes one or more exceptions that specifies Process;When the enumerator time-out of house dog is detected, the abnormal process for causing time-out is closed according to the blacklist list, and Reset the enumerator.
12. mobile terminals as claimed in claim 11, it is characterised in that the processor, detect house dog for working as During enumerator time-out, the process state of the house dog is obtained;If the process state is that hello Canis familiaris L. task dispatching is pending, obtain The current process for feeding the corresponding CPU of Canis familiaris L. task and process title;Judge whether to include in the blacklist list described enter Journey title;If the blacklist list includes the process title, confirm that current process is the abnormal process that specifies, close The abnormal process, and the enumerator that resets.
CN201610888175.XA 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing Active CN106445721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610888175.XA CN106445721B (en) 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610888175.XA CN106445721B (en) 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing

Publications (2)

Publication Number Publication Date
CN106445721A true CN106445721A (en) 2017-02-22
CN106445721B CN106445721B (en) 2019-07-12

Family

ID=58173937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610888175.XA Active CN106445721B (en) 2016-10-11 2016-10-11 The method and mobile terminal of house dog fault-tolerant processing

Country Status (1)

Country Link
CN (1) CN106445721B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333252A (en) * 2017-06-09 2017-11-07 中国联合网络通信集团有限公司 communication abnormality processing method, device and smart card terminal
CN107659983A (en) * 2017-10-12 2018-02-02 上海斐讯数据通信技术有限公司 A kind of user can not connect the processing method and processing device of wireless aps
CN109491301A (en) * 2019-01-23 2019-03-19 东莞固高自动化技术有限公司 Industry internet intelligent controller based on edge calculations architectural framework
CN109891392A (en) * 2017-09-30 2019-06-14 华为技术有限公司 A kind of processing method and processing device of system service time-out
CN112097795A (en) * 2020-09-17 2020-12-18 北京航空航天大学 Method for high-speed diagnosis and low-speed transmission of fault of fiber-optic gyroscope

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748882A (en) * 1992-09-30 1998-05-05 Lucent Technologies Inc. Apparatus and method for fault-tolerant computing
CN101178662A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Monitoring method of embedded LINUX applications progress
CN102253863A (en) * 2011-06-15 2011-11-23 奇智软件(北京)有限公司 Method for closing processes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5748882A (en) * 1992-09-30 1998-05-05 Lucent Technologies Inc. Apparatus and method for fault-tolerant computing
CN101178662A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Monitoring method of embedded LINUX applications progress
CN102253863A (en) * 2011-06-15 2011-11-23 奇智软件(北京)有限公司 Method for closing processes

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333252A (en) * 2017-06-09 2017-11-07 中国联合网络通信集团有限公司 communication abnormality processing method, device and smart card terminal
CN109891392A (en) * 2017-09-30 2019-06-14 华为技术有限公司 A kind of processing method and processing device of system service time-out
CN109891392B (en) * 2017-09-30 2022-01-11 华为技术有限公司 System service timeout processing method and device
US11693701B2 (en) 2017-09-30 2023-07-04 Huawei Technologies Co., Ltd. System service timeout processing method, and apparatus
CN107659983A (en) * 2017-10-12 2018-02-02 上海斐讯数据通信技术有限公司 A kind of user can not connect the processing method and processing device of wireless aps
CN109491301A (en) * 2019-01-23 2019-03-19 东莞固高自动化技术有限公司 Industry internet intelligent controller based on edge calculations architectural framework
CN112097795A (en) * 2020-09-17 2020-12-18 北京航空航天大学 Method for high-speed diagnosis and low-speed transmission of fault of fiber-optic gyroscope
CN112097795B (en) * 2020-09-17 2023-02-24 北京航空航天大学 Method for high-speed diagnosis and low-speed transmission of fault of fiber-optic gyroscope

Also Published As

Publication number Publication date
CN106445721B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN103500002B (en) The method of application program management, device and terminal unit
CN103399633B (en) A kind of wireless remote control method and mobile terminal
CN104618217B (en) Share method, terminal, server and the system of resource
CN106484555A (en) Abnormality detection and the method recovered and mobile terminal
CN107219976A (en) Application display method and related product
CN106453511B (en) A kind of data back up method and equipment
CN106445721A (en) Watchdog fault-tolerant processing method and mobile terminal
CN103455256A (en) Method and terminal for rotating display picture of screen
CN106327166A (en) Information processing method and mobile terminal
CN104978115A (en) Content display method and device
CN106383654A (en) Touch screen parameter adjustment method and mobile terminal
CN103455603A (en) Method and device for caching webpage content and loading webpage and terminal device
CN106055947A (en) Method and apparatus for unlocking mobile terminal through fingerprint, and mobile terminal
CN104301504A (en) Message viewing method and device and mobile terminal
CN106603548A (en) Application program login method and mobile terminal
CN106534550A (en) Text information reading method and mobile terminal
CN106055455A (en) Anti-interference method and device for key
CN107145386A (en) Data migration method, terminal device and computer-readable recording medium
CN110147186A (en) A kind of control method and terminal device of application
CN106326072A (en) Method for processing information and mobile terminal
CN106648460B (en) Step counting data filtering method and intelligent terminal
CN103533139B (en) Data management method and device of multi-card user and mobile terminal
CN103677944B (en) A kind of method for making locking screen interface, device and terminal device
CN107565650A (en) Design of Compatibility method and circuit
CN106817489A (en) The reminding method and mobile terminal of message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523841 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant