System restarting reason detection method, device and terminal equipment

A system restart and cause technology, applied in the computer field, can solve the problems of frequent system restarts, irregular programming, low efficiency, etc.

Active Publication Date: 2014-07-23
XIAOMI INC
View PDF2 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the lack of understanding of the system of the smart terminal by the system developers, the programming is not standardized, which makes the system resource allocation strategy improper, resulting in a process (or thread) deadlock phenomenon due to competition for re

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System restarting reason detection method, device and terminal equipment
  • System restarting reason detection method, device and terminal equipment
  • System restarting reason detection method, device and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] The present disclosure provides a system restart reason detection method, device and terminal equipment. After the intelligent terminal is restarted, the system restart reason detection method first needs to obtain the system log file, and then check whether the system log file contains the forced end of the system process. When the process message contains the process message of forcibly ending the system process, obtain the relevant thread stack data, and obtain the cause of the system deadlock according to the thread stack data; when the cause of the system deadlock is due to interlocking between threads When the interlocking thread is determined; when the cause of the system deadlock is that the thread holding time exceeds the preset time, determine the thread holding the lock time exceeding the preset time. Therefore, after the smart terminal restarts, it can quickly detect whether the restart is caused by a system deadlock. If the restart is caused by a system dead...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a system restarting reason detection method, device and terminal equipment. The system restarting reason detection method includes the steps that after an intelligent terminal is restarted, firstly, a system journal file needs to be obtained, then whether the system journal file contains process information for ending a system process compulsively or not is found out, when the process information for ending the system process compulsively is contained, related thread stack data are obtained, and the reason for system deadlock is obtained according to the thread stack data; when the reason for system deadlock is interlocking between threads, the interlocked threads are determined; when the reason for system deadlock is that the lock time of the threads exceeds a preset time, the threads with the lock time exceeding the preset time are determined. Consequently, after the intelligent terminal is restarted, whether restarting is caused by system deadlock or not can be detected rapidly, if restarting is caused by system deadlock, deadlock threads can be determined rapidly, research personnel do not need to analyze system messages one by one, and therefore the speed is high, and the efficiency is high.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular to a method, device and terminal equipment for detecting the cause of system restart. Background technique [0002] With the widespread application of smart terminals, manufacturers of smart terminal devices usually deeply customize their own systems (for example, Android systems) for their own smart terminal devices in order to launch products with their own characteristics. Due to the lack of understanding of the system of the smart terminal by the system developers, the program is not standardized, which makes the system resource allocation strategy improper, resulting in a process (or thread) deadlock phenomenon due to competition for resources, which in turn leads to frequent restarts of the system. However, when the smart terminal restarts, system developers need to analyze system messages one by one to determine whether the smart terminal restarts due to deadlock, ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/07G06F9/46
Inventor 李明浩袁军梁金祥闫昊
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products