CN112486713A - Screen freezing processing method and electronic equipment - Google Patents
Screen freezing processing method and electronic equipment Download PDFInfo
- Publication number
- CN112486713A CN112486713A CN201910859591.0A CN201910859591A CN112486713A CN 112486713 A CN112486713 A CN 112486713A CN 201910859591 A CN201910859591 A CN 201910859591A CN 112486713 A CN112486713 A CN 112486713A
- Authority
- CN
- China
- Prior art keywords
- state
- time period
- key process
- key
- switched
- 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
Links
Images
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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- 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/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
-
- 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/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1461—Backup scheduling policy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Abstract
The embodiment of the application discloses a frozen screen processing method and electronic equipment, wherein the method comprises the following steps: monitoring a key process in the electronic equipment, determining that the key process is in an abnormal state, creating a backup process corresponding to the key process, determining that the key process is in a non-response state, and replacing the key process with the backup process. When the key process enters the abnormal state, the electronic equipment is very likely to enter the frozen screen state, and the backup process corresponding to the key process is created in advance by the electronic equipment, so that the preparation work is done before the electronic equipment enters the frozen screen state. When the key process enters the non-response state, the electronic equipment is indicated to enter the screen freezing state, and the backup process is used by the electronic equipment to replace the key process, so that the quick recovery of the screen freezing state is realized.
Description
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a screen freezing processing method and electronic equipment.
Background
With the popularization and development of electronic devices, electronic devices with touch screens gradually enter people's lives, and the fluency of the pictures of the electronic devices is also regarded as important.
During the operation of the electronic equipment, sometimes the electronic equipment is frozen. The screen freezing refers to that the touch screen of the electronic equipment only displays a fixed interface and the electronic equipment is in a non-response state, and the interface displayed by the touch screen cannot be changed by any operation on the electronic equipment.
At present, the conventional freeze-shielding treatment method comprises the following steps: the electronic equipment monitors whether the electronic equipment is in the frozen screen state, and if so, after the electronic equipment is in the frozen screen state for more than a certain time, the electronic equipment is restarted, so that the electronic equipment is in an available state.
Although the conventional screen freezing processing method can recover the electronic device in the screen freezing state, the restart of the electronic device may cause all services to be interrupted; moreover, it takes a certain time for the electronic device to restart to enable the electronic device to be in a usable state, so that the conventional freeze-screen processing method cannot realize quick recovery of the freeze-screen state.
Disclosure of Invention
The embodiment of the application provides a screen freezing processing method and electronic equipment, so that the screen freezing state can be quickly recovered.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a screen freezing processing method, where the method is applied in an electronic device, and the method includes: monitoring a key process in the electronic equipment, determining that the key process is in an abnormal state, wherein the abnormal state is that the key process is not in an operating state within a first time period, creating a backup process corresponding to the key process, determining that the key process is in a non-response state, wherein the non-response state is that the key process is not in an operating state within a second time period, and the second time period is longer than the first time period, and replacing the key process by using the backup process.
In the first aspect, when the critical process enters the abnormal state, it is indicated that the electronic device is likely to enter the frozen screen state, and the electronic device creates a backup process corresponding to the critical process in advance, so that a preparation work is performed before the electronic device enters the frozen screen state. When the key process enters the non-response state, the electronic equipment is indicated to enter the screen freezing state, and the backup process is used by the electronic equipment to replace the key process, so that the quick recovery of the screen freezing state is realized.
In one possible implementation, replacing the critical process with the backup process includes: and determining the working information of the key process as the working information of the backup process, running the backup process, and destroying the key process.
In one possible implementation, the work information includes process identification and process description information.
In one possible implementation manner, after creating the backup process corresponding to the key process, before determining that the first key process is in the no-response state, the method further includes: and determining the context information of the key process as the context information of the backup process.
In one possible implementation, after replacing the critical process with the backup process, the method further includes: and determining the context information of the key process as the context information of the backup process.
In one possible implementation, the exception state is that the critical process is in an interruptible sleep state for a first period of time. Or the abnormal state is that the key process is in an uninterrupted sleep state in the first time period. Or the abnormal state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the first time period.
In one possible implementation, the no-response state is that the critical process is in a dead state for the second period of time. Alternatively, the no-response state is that the critical process is in an interruptible sleep state for a second period of time. Or the non-response state is that the key process is in an uninterrupted sleep state in the second time period. Or the non-response state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the second time period.
In a second aspect, an embodiment of the present application provides an electronic device, including: and the monitoring module is used for monitoring a key process in the electronic equipment. And the processing module is used for determining that the key process is in an abnormal state, wherein the abnormal state is that the key process is not in an operating state in a first time period. And creating a backup process corresponding to the key process. And determining that the key process is in a non-response state, wherein the non-response state is that the key process is not in a running state within a second time period, and the second time period is longer than the first time period. The backup process is used to replace the critical process.
In a possible implementation manner, the processing module is specifically configured to determine that the work information of the key process is the work information of the backup process. And running the backup process and destroying the key process.
In one possible implementation, the work information includes process identification and process description information.
In a possible implementation manner, the processing module is further configured to determine that the context information of the critical process is the context information of the backup process.
In one possible implementation, the exception state is that the critical process is in an interruptible sleep state for a first period of time. Or the abnormal state is that the key process is in an uninterrupted sleep state in the first time period. Or the abnormal state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the first time period. Or the abnormal state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the first time period.
In one possible implementation, the no-response state is that the critical process is in a dead state for the second period of time. Alternatively, the no-response state is that the critical process is in an interruptible sleep state for a second period of time. Or the non-response state is that the key process is in an uninterrupted sleep state in the second time period. Or the non-response state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the second time period. Or the non-response state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the second time period.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. Wherein the processor is adapted to read the software code stored in the memory and to perform the method according to the first aspect as such or according to any of the possible implementations of the first aspect.
Drawings
FIG. 1 is a flow chart illustrating a freeze screen processing method according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic view of another electronic device provided in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a screen freezing processing method and electronic equipment, which can solve the problems existing in the background technology and can realize quick recovery of a screen freezing state.
Referring to fig. 1, fig. 1 is a flowchart illustrating a screen freezing processing method according to an embodiment of the present application. The method for processing the frozen screen shown in fig. 1 can be applied to an electronic device, and the electronic device can be a terminal device or a server, and the method shown in fig. 1 includes the following steps.
And step S11, the electronic equipment monitors the key process in the electronic equipment.
When the operating system of the electronic device is in the running state, the electronic device monitors whether the critical process is in the abnormal state. When the operating system of the electronic device is in a standby state or a sleep state, the electronic device does not need to monitor whether the critical process is in an abnormal state.
The critical process may be a process of an operating system or a process of application software. It should be noted that, a skilled person may use terms such as process or thread to describe a critical process in an operating system, and the terms such as process or thread are used only for different descriptions, and other terms such as thread are also applicable instead of descriptions related to processes in the embodiments of the present application.
In step S11, the key processes to be monitored may be listed in a key process table in advance, so that the electronic device may monitor the key processes in the key process table.
Please refer to table 1, where table 1 shows a key process table. In table 1, the first column is the process sequence number of the critical process, and the second column is the process identifier of the critical process.
TABLE 1
Step S12, the electronic device determines that the critical process is in an abnormal state.
The abnormal state is that the key process is not in the running state in the first time period. The abnormal state includes one of the following possibilities, but of course, the abnormal state may be other cases, and is not limited to the case mentioned herein.
In the first case: the exception state is when the critical process is in an interruptible sleep state for a first period of time. For example, if the critical process is in an interruptible sleep state within 3 seconds, the electronic device determines that the critical process is in an abnormal state.
In the second case: the abnormal state is that the key process is in an uninterrupted sleep state in the first time period. For example, if the critical process is in an uninterrupted sleep state within 3 seconds, the electronic device determines that the critical process is in an abnormal state.
In the third case: the abnormal state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the first time period. For example, if the critical process is in the process of switching from the interruptible sleep state to the uninterrupted sleep state and the switching is not successful for more than 3 seconds, the electronic device determines that the critical process is in the abnormal state.
In a fourth case: the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the first time period. For example, if the critical process is in the process of switching from the uninterrupted sleep state to the interruptible sleep state and the switching is not successful for more than 3 seconds, the electronic device determines that the critical process is in the abnormal state.
In the fifth case: the abnormal state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the first time period. For example, if the critical process is in the process of switching from the interruptible sleep state to the running state and the switching is not successful for more than 3 seconds, the electronic device determines that the critical process is in the abnormal state.
In the sixth case: the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the first time period. For example, if the key process is not successfully switched for more than 3 seconds during the process of switching from the uninterrupted sleep state to the running state, the electronic device determines that the key process is in an abnormal state.
In the seventh case: the abnormal state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over a first time period. For example, if the key process is in the process of switching from the running state to the interruptible sleep state and the switching is not successful for more than 3 seconds, the electronic device determines that the key process is in the abnormal state.
In the eighth case: the abnormal state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the first time period. For example, if the key process is not successfully switched for more than 3 seconds during the process of switching from the running state to the uninterrupted sleep state, the electronic device determines that the key process is in the abnormal state.
And step S13, the electronic equipment creates a backup process corresponding to the key process.
After the electronic device determines that the key process is in the abnormal state, it is indicated that the electronic device is likely to enter the frozen screen state, and the electronic device creates a backup process corresponding to the key process in advance, so that preparation work for replacing the key process is well done before the electronic device enters the frozen screen state.
In step S13, the electronic device may start a new process as a backup process. For example, a new backup process is hatched by a process hatching mechanism using a critical process as a parent process. The new backup process will share or inherit the resources of the critical process, such as memory space and stacks.
Step S14, the electronic device determines that the critical process is in a no-response state.
The non-response state is that the key process is not in the running state in a second time period, and the second time period is longer than the first time period. The non-responsive state includes one of the following possibilities, but of course, the non-responsive state may be other cases, and is not limited to the case mentioned herein.
In the first case: the no-response state is that the critical process is in a dead state for a second period of time. For example, if the critical process is in a dead state within 10 seconds, the electronic device determines that the critical process is in a non-responsive state.
In the second case: the no-response state is that the critical process is in an interruptible sleep state for a second period of time. For example, if the critical process is in an interruptible sleep state within 10 seconds, the electronic device determines that the critical process is in a non-responsive state.
In the third case: the no-response state is that the key process is in an uninterrupted sleep state in the second time period. For example, if the critical process is in an uninterrupted sleep state within 10 seconds, the electronic device determines that the critical process is in a non-responsive state.
In a fourth case: the non-response state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the second time period. For example, if the critical process is in the process of switching from the interruptible sleep state to the uninterrupted sleep state and the switching is not successful for more than 10 archs seconds, the electronic device determines that the critical process is in the no-response state.
In the fifth case: the non-response state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the second time period. For example, if the critical process is in the process of switching from the uninterrupted sleep state to the interruptible sleep state and the switching is not successful for more than 10 seconds, the electronic device determines that the critical process is in the non-responsive state.
In the sixth case: the non-response state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the second time period. For example, if the critical process is in the process of switching from the interruptible sleep state to the run state and the switching is not successful for more than 10 seconds, the electronic device determines that the critical process is in the no-response state.
In the seventh case: the non-response state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the second time period. For example, if the critical process is not successfully switched for more than 10 seconds during the switching from the uninterrupted sleep state to the run state, the electronic device determines that the critical process is in the no-response state.
In the eighth case: the non-response state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the second time period. For example, if the critical process is in the process of switching from the running state to the interruptible sleep state and the switching is not successful for more than 10 seconds, the electronic device determines that the critical process is in the non-responsive state.
The ninth case: the non-response state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the second time period. For example, if the key process is not successfully switched for more than 10 seconds during the switching from the running state to the uninterrupted sleep state, the electronic device determines that the key process is in the non-responsive state.
And step S15, the electronic equipment replaces the key process with the backup process.
When the key process enters the non-response state, the electronic equipment is indicated to enter the screen freezing state, and the backup process is used by the electronic equipment to replace the key process, so that the quick recovery of the screen freezing state is realized.
In step S15, the "electronic device replaces the critical process with the backup process" may specifically include the following steps: the electronic equipment determines that the work information of the key process is the work information of the backup process, runs the backup process and destroys the key process. The work information may include information such as process identification and process description information.
In the embodiment shown in fig. 1, when the critical process enters the abnormal state, it is indicated that the electronic device is likely to enter the frozen screen state, and the electronic device creates a backup process corresponding to the critical process in advance, so that a preparation work is performed before the electronic device enters the frozen screen state. When the key process enters the non-response state, the electronic equipment is indicated to enter the screen freezing state, and the backup process is used by the electronic equipment to replace the key process, so that the quick recovery of the screen freezing state is realized.
In the embodiment shown in fig. 1, after step S13 and before step S14, the freeze-screen processing method provided by the embodiment of the present application may further include the following steps: and determining the context information of the key process as the context information of the backup process.
After the key process is started, the key process creates information such as memory file nodes, memory areas, data and the like, and the information such as the memory file nodes, the memory areas, the data and the like is context information of the key process. Of course, the context information of the critical process may also include file information, database information, or network connection information stored on the storage device.
After step S13 and before step S14, the electronic device determines that the context information of the critical process is the context information of the backup process, which may reduce the recovery time of the frozen state, thereby ensuring that the user does not perceive that the frozen state occurs in the electronic device.
In the embodiment shown in fig. 1, after step S15, the freeze-screen processing method provided by the embodiment of the present application may further include the following steps: and determining the context information of the key process as the context information of the backup process.
After step S15, the electronic device determines that the context information of the critical process is the context information of the backup process, which may consume less processing resources of the electronic device.
Referring to fig. 2, fig. 2 is a schematic view of an electronic device according to an embodiment of the present disclosure. The electronic device shown in fig. 2 comprises the following modules:
and the monitoring module 11 is used for monitoring a critical process in the electronic equipment. For a specific implementation of the monitoring module 11, please refer to the detailed description of step S11 in the embodiment of the method shown in fig. 1.
The processing module 12 is configured to determine that the key process is in an abnormal state, where the abnormal state is that the key process is not in an operating state within a first time period, create a backup process corresponding to the key process, and determine that the key process is in a non-response state, where the non-response state is that the key process is not in an operating state within a second time period, and the second time period is longer than the first time period, and replace the key process with the backup process. For a specific implementation manner of the processing module 12, please refer to the detailed description of step S12 to step S15 in the embodiment of the method shown in fig. 1.
In the embodiment shown in fig. 2, the processing module 12 is specifically configured to determine that the work information of the key process is the work information of the backup process; and running the backup process and destroying the key process. The work information comprises process identification and process description information.
In the embodiment shown in fig. 2, the processing module 12 is further configured to determine that the context information of the critical process is the context information of the backup process.
Referring to fig. 3, fig. 3 is a schematic view of another electronic device according to an embodiment of the present disclosure. The electronic device shown in fig. 3 comprises a processor 21, a memory 22, a bus 23 and an input/output device interface 24.
In the embodiment shown in fig. 3, information may be obtained by an input/output device interface 24 of the electronic device, and the bus 23 may transfer the information obtained by the input/output device interface 24 to the memory 22. The processor 21 may monitor a critical process in the electronic device, and create a backup process corresponding to the critical process when it is determined that the critical process is in an abnormal state. Replacing the critical process with the backup process upon determining that the critical process is in a non-responsive state.
In the embodiment shown in fig. 3, the electronic device shown in fig. 3 is identical to the electronic device described in fig. 1 and the electronic device of fig. 2. For the electronic device in fig. 3, reference may be made to the detailed description of the electronic device in the corresponding embodiments of fig. 1 and fig. 2.
It should be noted that when the above-mentioned embodiments relate to software-implemented functions, the relevant software or modules in the software may be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limiting: computer-readable media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
Furthermore, the above embodiments are only intended to illustrate the technical solutions of the present application and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: modifications of the technical solutions described in the embodiments or equivalent replacements of some technical features may still be made.
Claims (14)
1. A screen freezing processing method is applied to an electronic device, and comprises the following steps:
monitoring a critical process in the electronic device;
determining that the key process is in an abnormal state, wherein the abnormal state is that the key process is not in an operating state in a first time period;
creating a backup process corresponding to the key process;
determining that the key process is in a non-response state, wherein the non-response state is that the key process is not in an operating state within a second time period, and the second time period is longer than the first time period;
replacing the critical process with the backup process.
2. The screen freeze processing method of claim 1, wherein replacing the critical process with the backup process comprises:
determining the working information of the key process as the working information of the backup process;
and operating the backup process and destroying the key process.
3. The freeze screen processing method of claim 2, wherein the work information includes process identification and process description information.
4. The screen freezing method according to claim 1, wherein after creating the backup process corresponding to the key process, before determining that the first key process is in the non-response state, the method further comprises:
and determining the context information of the key process as the context information of the backup process.
5. The screen freeze processing method of claim 1, wherein after replacing the critical process with the backup process, the method further comprises:
and determining the context information of the key process as the context information of the backup process.
6. The freeze-screen processing method according to any one of claims 1 to 5, wherein:
the abnormal state is that the key process is in an interruptible sleep state in the first time period; alternatively, the first and second electrodes may be,
the abnormal state is that the key process is in an uninterrupted sleep state in the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the first time period.
7. The freeze-screen processing method according to any one of claims 1 to 5, wherein:
the non-response state is that the key process is in a dead state in the second time period; alternatively, the first and second electrodes may be,
the non-response state is that the key process is in an interruptible sleep state in the second time period; alternatively, the first and second electrodes may be,
the non-response state is that the key process is in an uninterrupted sleep state in the second time period; alternatively, the first and second electrodes may be,
the non-response state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not switched successfully after the second time period; alternatively, the first and second electrodes may be,
the non-response state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not switched successfully after the second time period; alternatively, the first and second electrodes may be,
the non-response state is in the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the second time period; alternatively, the first and second electrodes may be,
the non-response state is in the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the second time period; alternatively, the first and second electrodes may be,
the non-response state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the second time period; alternatively, the first and second electrodes may be,
the non-response state is in the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the second time period.
8. An electronic device, comprising:
the monitoring module is used for monitoring a key process in the electronic equipment;
the processing module is used for determining that the key process is in an abnormal state, wherein the abnormal state is that the key process is not in a running state in a first time period; creating a backup process corresponding to the key process; determining that the key process is in a non-response state, wherein the non-response state is that the key process is not in an operating state within a second time period, and the second time period is longer than the first time period; replacing the critical process with the backup process.
9. The electronic device of claim 8, wherein:
the processing module is specifically configured to determine that the work information of the key process is the work information of the backup process; and operating the backup process and destroying the key process.
10. The electronic device of claim 9, wherein the work information includes process identification and process description information.
11. The electronic device of claim 8, wherein:
the processing module is further configured to determine that the context information of the key process is the context information of the backup process.
12. The electronic device of any of claims 8-11, wherein:
the abnormal state is that the key process is in an interruptible sleep state in the first time period; alternatively, the first and second electrodes may be,
the abnormal state is that the key process is in an uninterrupted sleep state in the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the first time period; alternatively, the first and second electrodes may be,
the abnormal state is the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the first time period.
13. The electronic device of any of claims 8-11, wherein:
the non-response state is that the key process is in a dead state in the second time period; alternatively, the first and second electrodes may be,
the non-response state is that the key process is in an interruptible sleep state in the second time period; alternatively, the first and second electrodes may be,
the non-response state is that the key process is in an uninterrupted sleep state in the second time period; alternatively, the first and second electrodes may be,
the non-response state is the process that the key process is switched from the interruptible sleep state to the uninterrupted sleep state and is not switched successfully after the second time period; alternatively, the first and second electrodes may be,
the non-response state is the process that the key process is switched from the uninterrupted sleep state to the interruptible sleep state and is not switched successfully after the second time period; alternatively, the first and second electrodes may be,
the non-response state is in the process that the key process is switched from the interruptible sleep state to the running state and is not successfully switched over the second time period; alternatively, the first and second electrodes may be,
the non-response state is in the process that the key process is switched from the uninterrupted sleep state to the running state and is not successfully switched over the second time period; alternatively, the first and second electrodes may be,
the non-response state is the process that the key process is switched from the running state to the interruptible sleep state and is not successfully switched over the second time period; alternatively, the first and second electrodes may be,
the non-response state is in the process that the key process is switched from the running state to the uninterrupted sleep state and is not successfully switched over the second time period.
14. An electronic device comprising a processor and a memory;
wherein the processor is configured to read the software code stored in the memory and to perform the method according to any of the claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910859591.0A CN112486713B (en) | 2019-09-11 | 2019-09-11 | Frozen screen processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910859591.0A CN112486713B (en) | 2019-09-11 | 2019-09-11 | Frozen screen processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112486713A true CN112486713A (en) | 2021-03-12 |
CN112486713B CN112486713B (en) | 2023-07-18 |
Family
ID=74919872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910859591.0A Active CN112486713B (en) | 2019-09-11 | 2019-09-11 | Frozen screen processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112486713B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756355A (en) * | 2022-06-14 | 2022-07-15 | 之江实验室 | Method and device for automatically and quickly recovering process of computer operating system |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050033931A1 (en) * | 2003-06-02 | 2005-02-10 | Hewlett-Packard Development Company, L.P. | Data processing system and method |
CN1801096A (en) * | 2005-01-05 | 2006-07-12 | 国际商业机器公司 | Method and system for implementing thread sleep in computer system |
US20100037094A1 (en) * | 2008-08-06 | 2010-02-11 | International Business Machines Corporation | Application Failure Recovery |
CN102012836A (en) * | 2009-09-07 | 2011-04-13 | 中国移动通信集团公司 | Process survival control method and device |
US20110296127A1 (en) * | 2010-05-25 | 2011-12-01 | International Business Machines Corporation | Multiple cascaded backup process |
TW201214201A (en) * | 2010-09-28 | 2012-04-01 | Pegatron Corp | Method of keyboard simulation and module for simulated keyboard |
US20130034229A1 (en) * | 2011-08-05 | 2013-02-07 | Apple Inc. | System and method for wireless data protection |
CN102945193A (en) * | 2012-10-24 | 2013-02-27 | 广州市动景计算机科技有限公司 | Recovery method of running data, and electronic device |
CN103870351A (en) * | 2012-12-17 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Program exception processing system and method |
CN103927240A (en) * | 2014-05-06 | 2014-07-16 | 成都西加云杉科技有限公司 | Information dumping method and device answering to software breakdown |
US20170168870A1 (en) * | 2015-12-11 | 2017-06-15 | International Business Machines Corporation | Task status tracking and update system |
CN107590057A (en) * | 2017-09-28 | 2018-01-16 | 努比亚技术有限公司 | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium |
CN109891392A (en) * | 2017-09-30 | 2019-06-14 | 华为技术有限公司 | A kind of processing method and processing device of system service time-out |
-
2019
- 2019-09-11 CN CN201910859591.0A patent/CN112486713B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050033931A1 (en) * | 2003-06-02 | 2005-02-10 | Hewlett-Packard Development Company, L.P. | Data processing system and method |
CN1801096A (en) * | 2005-01-05 | 2006-07-12 | 国际商业机器公司 | Method and system for implementing thread sleep in computer system |
US20100037094A1 (en) * | 2008-08-06 | 2010-02-11 | International Business Machines Corporation | Application Failure Recovery |
CN102012836A (en) * | 2009-09-07 | 2011-04-13 | 中国移动通信集团公司 | Process survival control method and device |
US20110296127A1 (en) * | 2010-05-25 | 2011-12-01 | International Business Machines Corporation | Multiple cascaded backup process |
TW201214201A (en) * | 2010-09-28 | 2012-04-01 | Pegatron Corp | Method of keyboard simulation and module for simulated keyboard |
US20130034229A1 (en) * | 2011-08-05 | 2013-02-07 | Apple Inc. | System and method for wireless data protection |
CN102945193A (en) * | 2012-10-24 | 2013-02-27 | 广州市动景计算机科技有限公司 | Recovery method of running data, and electronic device |
CN103870351A (en) * | 2012-12-17 | 2014-06-18 | 鸿富锦精密工业(深圳)有限公司 | Program exception processing system and method |
CN103927240A (en) * | 2014-05-06 | 2014-07-16 | 成都西加云杉科技有限公司 | Information dumping method and device answering to software breakdown |
US20170168870A1 (en) * | 2015-12-11 | 2017-06-15 | International Business Machines Corporation | Task status tracking and update system |
CN107590057A (en) * | 2017-09-28 | 2018-01-16 | 努比亚技术有限公司 | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium |
CN109891392A (en) * | 2017-09-30 | 2019-06-14 | 华为技术有限公司 | A kind of processing method and processing device of system service time-out |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114756355A (en) * | 2022-06-14 | 2022-07-15 | 之江实验室 | Method and device for automatically and quickly recovering process of computer operating system |
Also Published As
Publication number | Publication date |
---|---|
CN112486713B (en) | 2023-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100388218C (en) | Method for realizing backup between servers | |
CN111831485B (en) | Data recovery method, device, electronic equipment and medium | |
CN102591747A (en) | Data backup method and device | |
CN112579356B (en) | Fault processing method and server | |
CN106940671B (en) | Method, device and system for monitoring running of task threads in cluster | |
CN112486713A (en) | Screen freezing processing method and electronic equipment | |
CN108173665B (en) | Data backup method and device | |
CN110427296B (en) | Hardware WDT-based monitoring method, hardware WDT-based monitoring equipment and readable medium | |
CN110704281A (en) | Method for monitoring system operation | |
CN109257396B (en) | Distributed lock scheduling method and device | |
CN111371642B (en) | Network card fault detection method, device, equipment and storage medium | |
CN112099990A (en) | Disaster recovery backup method, device, equipment and machine readable storage medium | |
CN111290859B (en) | Method for synchronizing initialization attribute of dual-system terminal and terminal | |
CN110968456B (en) | Method and device for processing fault disk in distributed storage system | |
CN110990213B (en) | Method and device for monitoring user logs of cluster environment in real time | |
CN110990165B (en) | Method for simultaneously working multiple users in multi-channel concurrent transmission system and transmission server | |
CN110839068B (en) | Service request processing method and device, electronic equipment and readable storage medium | |
CN113037871A (en) | Conference call recovery method, device, system, electronic equipment and readable storage medium | |
CN107659919B (en) | Communication connection method and electronic equipment | |
CN112153215A (en) | Call processing method and device, related equipment and storage medium | |
CN109901970B (en) | Method and device for monitoring video network terminal | |
CN117234698B (en) | Program exception handling method, electronic equipment and storage medium | |
EP4333469A1 (en) | User data disaster tolerance method and apparatus, network element device, and storage medium | |
CN112202622B (en) | Connection processing method and device | |
CN115904516A (en) | Trust root based baseboard management controller starting method and related components 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |