System operation method, device, electronic device and readable storage medium
By switching to the backup system when the operating system is running abnormally and using the backup system's system data recovery service, the problem of inability to recover when the operating system is running abnormally is solved, and the availability and user experience of the device are improved.
Patent Information
- Application Number
- CN202411802831.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the operating system cannot recover when it runs abnormally, resulting in the user experience being affected.
When an input to the fallback control of the first system is received at time T1 or the first system runs a crash, the second system is run based on the system data of the second system at time T2. Among them, the system data of the second system at time T2 is obtained based on the system data of the first system at time T3, and the time T3 precedes the time T1.
Quickly switch to the second system when the first system fails, reducing service interruption time, ensuring that services can still be provided in the event of a failure, and improving equipment availability.
Smart Images

Figure CN119759622A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information processing, and specifically relates to a system operation method, device, electronic device and readable storage medium. Background Art
[0002] Current operating systems implement their own business logic by installing application packages. In some scenarios, users can edit data in the application interface, edit text data in the mini-programs within the application, and edit text in document applications. This model provides users with rich functions and a convenient operating experience.
[0003] However, when the terminal is running the operating system, abnormal situations may sometimes occur, and the content operated by the user before the abnormality cannot be restored, which seriously affects the user experience. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a system operation method, device, electronic device and readable storage medium, which can solve the problem in the prior art that when the operating system runs abnormally, it cannot be recovered.
[0005] In a first aspect, an embodiment of the present application provides a system operation method, which is applied to an electronic device equipped with a first system and a second system, and the method includes:
[0006] When input to the fallback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T2; wherein the system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and time T3 is prior to time T1.
[0007] In a second aspect, an embodiment of the present application provides a system operation device, which is applied to an electronic device installed with a first system and a second system, and the device includes:
[0008] An operation module is used to receive an input of a fallback control of the first system at time T1, or, when the first system crashes at time T1, to operate the second system according to the system data of the second system at time T2; wherein the system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and time T3 is prior to time T1.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0012] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0013] In an embodiment of the present application, when an input to the fallback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T2, and it is possible to quickly switch to the second system when a failure occurs in the first system, thereby reducing the service interruption time. Among them, the system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and time T3 is earlier than time T1. Through the switching mechanism of the backup system, it is ensured that services can still be provided in the event of a failure, thereby improving the availability of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a flow chart of a system operation method provided by an embodiment of the present application;
[0015] Figure 2 is a schematic diagram of a dual system provided in an embodiment of the present application;
[0016] Figure 3 is a schematic diagram of system data of a dual system provided in an embodiment of the present application;
[0017] Figure 4 is a schematic diagram of system data of a dual system provided in an embodiment of the present application;
[0018] Figure 5 is a schematic diagram of a dual system provided in an embodiment of the present application;
[0019] Figure 6 is a schematic diagram of system data synchronization provided by an embodiment of the present application;
[0020] Figure 7 is a schematic diagram of a dual system in a case where an application is unresponsive provided by an embodiment of the present application;
[0021] Figure 8 is a schematic diagram of starting a second system provided by an embodiment of the present application;
[0022] Fig. 9 is a schematic diagram of a second system of a startup part provided in an embodiment of the present application;
[0023] Fig.10 is a schematic diagram of a dual system provided in an embodiment of the present application;
[0024] Fig.11 It is a schematic diagram of a system data transmission based on shared memory provided in an embodiment of the present application;
[0025] Fig.12 It is a schematic diagram of a system data transmission based on shared memory provided in an embodiment of the present application;
[0026] Fig.13 It is a schematic diagram of a system data transmission based on shared memory provided in an embodiment of the present application;
[0027] Fig.14 is a structural diagram of a system operation device provided in an embodiment of the present application;
[0028] Fig.15 It is one of the hardware structure diagrams of the electronic device according to the embodiment of the present application;
[0029] Fig.16 This is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present application belong to the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0032] In response to the problems arising in the related art, the embodiments of the present application provide a system operation method, device, electronic device and storage medium, which can solve the problem in the related art that the operating system cannot be recovered when the operating system runs abnormally.
[0033] The following is a detailed description of the system operation method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0034] Figure 1 A flowchart of a system operation method provided in an embodiment of the present application.
[0035] like Figure 1 As shown, the system operation method may include step 110, which is applied to an electronic device installed with a first system and a second system, and the method is applied to a system operation device, as shown below:
[0036] Step 110, when an input to a rollback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T2;
[0037] The system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and the time T3 is prior to the time T1.
[0038] Fallback control: A user interface element that allows users to return to a previous screen or state. Ensure that the system can recover quickly in the event of a failure and avoid long service interruptions.
[0039] System data: various data generated during system operation, including configuration information, status information, log data, etc. Used to monitor system status, diagnose faults, and restore system operation.
[0040] The first system: the main system running under normal circumstances, responsible for handling the main business logic and data processing tasks. It is used to provide core services and ensure the normal operation of the business.
[0041] Second system: A backup system that takes over tasks when the first system fails. It usually has the same or similar functions as the first system. It is used to provide services when the first system fails to ensure business continuity.
[0042] The scenarios for receiving control input to the fallback control include:
[0043] The first operation is a user's mistake. Figure 2As shown, when the map application is uninstalled by mistake. Misoperation includes any of the following: adding files, deleting files, modifying files, querying files, modifying common system configurations, installing applications, uninstalling applications, and running applications. Running applications; for example: user operations such as releasing skills in games and page jumps.
[0044] The first operation is a system error. Figure 3 As shown, the user enters an editing interface for filling in user information. System errors include any of the following: unknown exceptions in the application causing the application to crash, page timeouts, online configuration causing crashes, and user-triggered application exceptions under the path.
[0045] The system data of the second system at time T2 is obtained according to the system data of the first system at time T3, including the following two situations:
[0046] In one case, time T3 is earlier than time T2, that is, the system data of the second system is delayed compared to the system data of the first system.
[0047] In another case, time T2 is equal to time T3, that is, the system data of the first system and the system data of the second system are synchronized.
[0048] At time T1, if the fallback control of the first system is input or the first system crashes, the fallback operation will be triggered. At time T3, the system data of the first system will be synchronized to the second system. This ensures that when the fallback operation is triggered at time T1, the second system already has the latest system data. After the fallback operation is triggered at time T1, the second system will be run according to the system data of the second system at time T2 to ensure service continuity.
[0049] Through the fallback control and data synchronization mechanism, it is possible to quickly switch to the second system when the first system fails, reducing service interruption time. By synchronizing the system data of the first system to the second system at time T3, it is ensured that the second system has the latest data when taking over the task, avoiding data loss or inconsistency. Through the switching mechanism of the backup system, it is ensured that services can still be provided in the event of a failure, improving the availability of the equipment.
[0050] like Figure 4 As shown, the user enters an editing interface for filling in user information, recording notes, etc. When an unknown exception occurs in the application, causing the application to crash, such as a page timeout or a crash caused by online configuration, that is, when the first system crashes at time T1.
[0051] like Figure 5As shown, when the user thinks that the first operation is an incorrect operation, that is, the user thinks that irreversible operations such as uninstalling the application and deleting files are not necessary at this time, when the application crashes, click the "roll back to the previous operation" button. At this time, the switching command between the foreground and background of the dual system will be triggered. This button is a system-level button and will not disappear when the application crashes, that is, when the input of the rollback control of the first system is received at time T1.
[0052] like Figure 6 As shown, at this time in the second system, the map application is installed and the files are not deleted. At the same time, the first system and the second system will compare the data, and then the second system will immediately synchronize the current status to the first system.
[0053] By displaying the delayed data of the second system, a data backup can be provided to ensure that when problems occur with the data in the first system, users can still view and use older data; when the first system fails or becomes unresponsive, users can switch to the delayed data of the second system through the fallback control, thereby achieving fault recovery and data backup; by detecting and processing delayed data, the system's own stability and reliability can be improved, reducing the risk of system crashes or data corruption caused by data synchronization problems.
[0054] In a possible embodiment, before step 110, the following steps may also be included:
[0055] When the electronic device does not run the second system, obtaining system configuration information of the first system;
[0056] The second system is configured according to the system configuration information of the first system, and the second system is run.
[0057] First system: the currently running system. The system configuration information and system data of the first system are used to drive the display interface.
[0058] Second system: another system whose system configuration information is the same as that of the first system and is used to take over or assist the first system in certain situations.
[0059] System configuration information: detailed information on system settings and configurations, including hardware configuration, software settings, network configuration, etc.
[0060] Before executing step 110, it is first checked whether the second system is already turned on. If the second system is not turned on, the system obtains the system configuration information of the first system. Then, the system runs the second system according to the configuration information to ensure that the second system can be quickly started when needed and its configuration is consistent with the first system.
[0061] Detect whether the second system is already running, and if not, run the second system according to the system configuration information of the first system. Run the second system according to the system configuration information of the first system to make the second system enter the running state from the closed state.
[0062] By pre-acquiring the system configuration information of the first system and starting it when the second system is not turned on, the system can respond quickly when the user needs it, which can reduce waiting time; because the configuration information of the second system is the same as that of the first system, the user will not feel a significant difference when switching to the second system, ensuring the consistency of data and configuration; the startup of the second system can serve as a backup of the first system, ensuring that when the first system fails or requires maintenance, the user can seamlessly switch to the second system to maintain service continuity.
[0063] In addition, you can flexibly choose whether to start the second system according to specific needs, which increases the flexibility and adaptability of the system, and can provide a more stable, fast and reliable interactive experience, ensuring that user needs can be met in various situations.
[0064] In a possible embodiment, before step 110, the following steps may also be included:
[0065] In a case where a first operation on the first system is received, determining an application state of a first application corresponding to the first operation;
[0066] When the application state of the first application is unresponsive, a prompt message and the rollback control are displayed; the prompt message is used to indicate that the first application is unresponsive.
[0067] First application: an application program in the first system, the state of the first application will affect the display and function of the display interface of the first system.
[0068] Application status: The current status of the application, such as normal running status, unresponsive status, crashed status, etc.
[0069] Unresponsive state: The state in which the application cannot respond to user input or system commands, usually due to program errors, insufficient resources, etc.
[0070] Prompt information is used to inform users of the current status or problems.
[0071] When a user performs a first operation on a first interface, the application state of the first application corresponding to the first operation is first determined. If the first application is in an unresponsive state, a prompt message and a backoff control are displayed. The prompt message is used to inform the user that the first application is unresponsive, and the backoff control allows the user to return to the previous interface or state.
[0072] Therefore, by displaying prompt information, users can clearly know the reason why the current first application is unresponsive; by providing a fallback control, users can easily return to the previous interface or state, thereby avoiding operation interruption or data loss caused by unresponsive interface; by providing timely feedback and solutions, the overall user experience can be improved.
[0073] In a possible embodiment, after step 110, the following steps may also be included:
[0074] Controlling the first system to restart the first application;
[0075] The second system is controlled to synchronize system data of the second system with the first system.
[0076] Data synchronization: Update or copy the data of one system to another system to ensure data consistency between the two systems.
[0077] Controlling the first system to restart the first application is to solve the unresponsiveness of the application or other problems and ensure that the application can run normally. Controlling the second system to synchronize system data with the first system: Usually, the second system is controlled to synchronize its latest system data with the first system, which ensures that the first system can obtain the latest data, thereby maintaining data consistency and integrity.
[0078] like Figure 7 As shown, in the scenario of application crash, the first system in the background will restart the application and delay the set time to receive the synchronization data of the second system in the foreground. The two systems will run in parallel again, forming a process of dual system recycling.
[0079] Therefore, by restarting the first application, the unresponsive application or other problems can be solved, ensuring that the application can run normally, thereby restoring the normal function of the system; synchronizing the system data of the second system to the first system can ensure the data consistency between the two systems and avoid problems caused by data asynchrony; timely synchronizing data and restarting the application can improve its own stability and reliability, and reduce the risk of system crash or data corruption caused by data asynchrony or application unresponsiveness.
[0080] In a possible embodiment, the above-mentioned first system crash at time T1 may specifically include:
[0081] The second application of the first system crashes;
[0082] The data generated by the first system running the second application is synchronized to the second system in real time.
[0083] Second application: A specific application running in the first system, responsible for specific business functions. It is used to process specific business logic and generate and process related data.
[0084] Data synchronization: Copy data from one system to another in real time or periodically to ensure data consistency between the two systems. Used to ensure that when the system is switched, the backup system has the latest data to avoid data loss or inconsistency.
[0085] At time T1, the second application in the first system crashes, causing the application to be unable to continue processing business logic and data. During the operation of the second application, the data it generates will be synchronized to the second system in real time. This synchronization mechanism ensures that when the second application crashes, the second system already has the latest data.
[0086] After the second application crashes, the system will trigger a rollback operation and switch the task to the second system. Since the second system already has the latest data, it can seamlessly take over the task and ensure business continuity.
[0087] Through the real-time data synchronization mechanism, the system can quickly switch to the second system when the second application crashes, reducing service interruption time. Real-time data synchronization ensures that the second system has the latest data when taking over the task, avoiding data loss or inconsistency. Through the switching mechanism of the backup system, it ensures that the system can still provide services in the event of a failure, improving the availability of the equipment.
[0088] In a possible embodiment, the first system includes a first display unit and a first processing unit, the second system includes a second display unit and a second processing unit, and the method further includes:
[0089] When an input to a rollback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T1; the system data of the second system includes the data in the second processing unit; the data in the first display unit is transmitted to the second processing unit in real time through the shared memory;
[0090] When an input to a rollback control of the second system is received at time T4, or when the second system crashes at time T4, the first system is run according to the system data of the first system at time T4; the system data of the first system includes the data in the first processing unit; the data in the second display unit is transmitted to the first processing unit in real time through the shared memory;
[0091] The time T1 and the time T4 are different.
[0092] First system: the currently running system, including the first display unit and the first processing unit.
[0093] First display unit: a hardware or software component in the first system that is responsible for displaying the interface.
[0094] First processing unit: The hardware or software component in the first system responsible for processing data and logic.
[0095] Second system: another system including a second display unit and a second processing unit, and its system configuration information is the same as that of the first system.
[0096] Second display unit: a hardware or software component in the second system that is responsible for displaying the interface.
[0097] Secondary processing unit: A hardware or software component in the secondary system that is responsible for processing data and logic.
[0098] Shared memory: A memory management technique that allows multiple processing units or systems to share the same area of memory for rapid data transfer.
[0099] When the user performs the first operation on the first interface, the data in the first display unit is transmitted to the second processing unit through the shared memory. At the same time, a rollback control is displayed. The system data of the first system includes the data in the first display unit.
[0100] When receiving the user's input to the rollback control, the second interface will be displayed according to the data in the second processing unit. The system data of the second system includes the data in the second processing unit, and these data are synchronized with the data of the first system.
[0101] At time T1, if an input to the rollback control of the first system is received, or the first system crashes, the system will trigger a rollback operation. The data in the first display unit is transmitted to the second processing unit in real time through the shared memory, ensuring that the second system has the latest display data when taking over the task.
[0102] According to the system data of the second system at time T1 (including the data in the second processing unit), the second system is operated to ensure the continuity of the service. At time T4, if an input to the rollback control of the second system is received, or the second system crashes, the system triggers a rollback operation.
[0103] The data in the second display unit is transmitted to the first processing unit in real time through the shared memory, ensuring that the first system has the latest display data when taking over the task. The first system is operated according to the system data of the first system at time T4 (including the data in the first processing unit) to ensure the continuity of service.
[0104] Through the real-time data transmission and system switching mechanism of shared memory, the system can quickly recover when the first or second system fails, reducing service interruption time. The shared memory mechanism ensures that the backup system has the latest data when the system switches, avoiding data loss or inconsistency. The switching mechanism of the backup system ensures that the system can still provide services when a failure occurs, improving the availability of the equipment.
[0105] Therefore, by using shared memory, the data in the first display unit can be quickly transferred to the second processing unit, reducing the time and overhead of data transmission; by transferring the data in the first display unit to the second processing unit, the data consistency between the two systems can be ensured, avoiding problems caused by data asynchrony; by timely synchronizing data and displaying fallback controls, the stability and reliability of the system can be improved, reducing the risk of system crash or data corruption caused by data asynchrony or unresponsive interface.
[0106] like Figure 8 As shown, the first system is turned on, and the user starts to start the application. At this time, the first system starts the application A part is the application interface part. There are the first system application interface (A) and the first system application storage calculation (B), the second system application interface (A) and the system application storage calculation (B). The following is described as main application A, main application B, sub-application A, and sub-application B.
[0107] The first display unit is the main application A; the first processing unit is the main application B;
[0108] The second display unit is sub-application A; the second processing unit is sub-application B;
[0109] like Fig. 9 As shown, after the main application A is started, it will detect the startup status of the second system. If the second system is not started, a system startup signal is sent to the shared memory in the main second system. If the second system has been started, it will be ignored. Then the second system application B is started, and the application B plays a role in data storage and calculation. Fig.10 As shown, when the first system application part A is editing, the data of the page will be transferred to the second system application part B through the shared memory, and the second system application part B implements data storage.
[0110] like Fig.11 As shown, when part A of the foreground first system application crashes abnormally and the page freezes, the foreground first system sends abnormal information to the background system, and the background second system starts application B. The two parts of the application are merged into the second system for operation.
[0111] like Fig.12As shown, when the application is completely merged into the second system for execution, the switch between the first system and the second system is triggered, and the second system switches to the foreground for execution.
[0112] like Fig.13 As shown, after the switching is completed, application separation is achieved, and the operating logic of part B of the second system is transferred to the background first system to run, realizing a logical closed loop.
[0113] In a possible embodiment, the method further includes:
[0114] When a second operation on the second interface is received, data in the second display unit is transmitted to the first processing unit through the shared memory, and the data in the second display unit includes page data corresponding to the second operation.
[0115] When the user performs a second operation on the second interface, the system transmits the data in the second display unit to the first processing unit through the shared memory. The data in the second display unit includes page data corresponding to the second operation, which will be transmitted to the first processing unit for further processing or display.
[0116] Therefore, by transmitting data back to the first processing unit when operating the second interface, the system realizes bidirectional data transmission, ensuring data consistency and synchronization between the two systems; by using shared memory, the system can quickly transfer data in the second display unit to the first processing unit, reducing the time and overhead of data transmission; through bidirectional data transmission, data can be flexibly switched and shared between the two systems, increasing the flexibility and adaptability of the system.
[0117] In an embodiment of the present application, by displaying a fallback control when receiving a first operation on the first interface, the first interface is associated with the system data of the first system; the system configuration information of the first system is the same as the system configuration information of the second system; by providing a fallback control, the user can easily return to the previous interface or state, thereby enhancing the usability and fluency of the user interface. Since the system configuration information of the first system and the second system is the same, the user will not feel the difference when switching interfaces, thereby ensuring the consistency of data and the stability of the system; receiving a control input to the fallback control; in response to the control input, displaying a second interface according to the system data of the second system; wherein the system data of the second system is delayed by a preset time length of the system data of the first system; or, the system data of the second system is synchronized with the system data of the first system. If there is a problem with the data of the first system, the user can switch to the data of the second system through the fallback control, thereby realizing fault recovery and data backup.
[0118] The system operation method provided in the embodiment of the present application can be executed by a system operation device. In the embodiment of the present application, the system operation device provided in the embodiment of the present application is described by taking the system operation method executed by the system operation device as an example.
[0119] Fig.14 1400 is a block diagram of a system operation device provided in an embodiment of the present application, which is applied to an electronic device equipped with a first system and a second system. The device 1400 includes:
[0120] The running module 1410 is configured to, when receiving an input of a rollback control of the first system at time T1, or, when the first system crashes at time T1, run the second system according to the system data of the second system at time T2;
[0121] The system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and the time T3 is prior to the time T1.
[0122] In a possible embodiment, the device 1400 further includes:
[0123] an acquisition module, configured to acquire system configuration information of the first system when the electronic device is not running the second system;
[0124] The running module 1410 is further used to configure the second system according to the system configuration information of the first system, and run the second system.
[0125] In a possible embodiment, the device 1400 further includes:
[0126] a determination module, configured to, upon receiving a first operation on the first system, determine an application state of a first application corresponding to the first operation;
[0127] The display module is used to display the prompt information and the fallback control when the application state of the first application is an unresponsive state; the prompt information is used to indicate that the first application is unresponsive.
[0128] In a possible embodiment, the device 1400 further includes:
[0129] A control module, used for controlling the first system to restart the first application;
[0130] The control module is further used to control the second system to synchronize system data of the second system to the first system.
[0131] In a possible embodiment, the first system crashing at time T1 includes:
[0132] The second application of the first system crashes; wherein the data generated by the first system running the second application is synchronized to the second system in real time.
[0133] In an embodiment of the present application, when an input to the fallback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T2, and it is possible to quickly switch to the second system when a failure occurs in the first system, thereby reducing the service interruption time. Among them, the system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and time T3 is earlier than time T1. Through the switching mechanism of the backup system, it is ensured that services can still be provided in the event of a failure, thereby improving the availability of the equipment.
[0134] The system operation device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0135] The system operation device of the embodiment of the present application may be a device having an action system. The action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.
[0136] The system operation device provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be repeated here.
[0137] Alternatively, if Fig.15As shown, an embodiment of the present application also provides an electronic device 1510, including a processor 1511, a memory 1512, and a program or instruction stored in the memory 1512 and executable on the processor 1511. When the program or instruction is executed by the processor 1511, each step of any of the above-mentioned system operation method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0138] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0139] Fig.16 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0140] The electronic device 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, and a processor 1610 and other components.
[0141] Those skilled in the art will appreciate that the electronic device 1600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0142] The processor 1610 is configured to receive an input of a rollback control of the first system at time T1, or, in the case where the first system crashes at time T1, run the second system according to the system data of the second system at time T2;
[0143] The system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and the time T3 is prior to the time T1.
[0144] Optionally, the processor 1610 is further configured to obtain system configuration information of the first system when the electronic device does not run the second system;
[0145] The processor 1610 is further configured to configure the second system according to the system configuration information of the first system, and run the second system.
[0146] Optionally, the processor 1610 is further configured to, upon receiving a first operation on the first system, determine an application state of a first application corresponding to the first operation;
[0147] The display unit 1606 is used to display prompt information and the fallback control when the application state of the first application is an unresponsive state; the prompt information is used to indicate that the first application is unresponsive.
[0148] Optionally, the processor 1610 is further configured to control the first system to restart the first application;
[0149] The processor 1610 is further configured to control the second system to synchronize system data of the second system to the first system.
[0150] Optionally, the first system crashing at time T1 includes:
[0151] The second application of the first system crashes; wherein the data generated by the first system running the second application is synchronized to the second system in real time.
[0152] In an embodiment of the present application, when an input to the fallback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T2, and it is possible to quickly switch to the second system when a failure occurs in the first system, thereby reducing the service interruption time. Among them, the system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and time T3 is earlier than time T1. Through the switching mechanism of the backup system, it is ensured that services can still be provided in the event of a failure, thereby improving the availability of the equipment.
[0153] It should be understood that in the embodiment of the present application, the input unit 1604 may include a graphics processor (Graphics Processing Unit, GPU) 16041 and a microphone 16042, and the graphics processor 16041 processes the image data of the static picture or video image obtained by the image capture device (such as a camera) in the video image capture mode or the image capture mode. The display unit 1606 may include a display panel 16061, and the display panel 16061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1607 includes a touch panel 16071 and at least one of other input devices 16072. The touch panel 16071 is also called a touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and an action rod, which will not be repeated here. The memory 1609 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 1610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1610.
[0154] The memory 1609 can be used to store software programs and various data. The memory 1609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1609 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0155] The processor 1610 may include one or more processing units; optionally, the processor 1610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1610.
[0156] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned system operation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0157] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0158] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned system operation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0159] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0160] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned system operation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0161] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0163] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A system operation method, characterized in that: Applied to an electronic device equipped with a first system and a second system, the method includes: When an input of a rollback control of the first system is received at time T1, or when the first system crashes at time T1, the second system is run according to the system data of the second system at time T2; The system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and the time T3 is prior to the time T1.
2. The method according to claim 1, characterized in that When receiving an input to the rollback control of the first system at time T1, or when the first system crashes at time T1, before running the second system according to the system data of the second system at time T2, the method further includes: When the electronic device does not run the second system, obtaining system configuration information of the first system; The second system is configured according to the system configuration information of the first system, and the second system is run.
3. The method according to claim 1, characterized in that When receiving an input to the rollback control of the first system at time T1, or when the first system crashes at time T1, before running the second system according to the system data of the second system at time T2, the method further includes: In a case where a first operation on the first system is received, determining an application state of a first application corresponding to the first operation; When the application state of the first application is unresponsive, a prompt message and the rollback control are displayed; the prompt message is used to indicate that the first application is unresponsive.
4. The method according to claim 3, characterized in that After running the second system according to the system data of the second system at time T2, the method further includes: Controlling the first system to restart the first application; The second system is controlled to synchronize system data of the second system with the first system.
5. The method according to claim 1, characterized in that At the time T1, the first system crashes, including: The second application of the first system crashes; The data generated by the first system running the second application is synchronized to the second system in real time.
6. A system operation device, characterized in that: Applicable to an electronic device equipped with a first system and a second system, the device comprises: An operation module, configured to receive an input of a rollback control of the first system at time T1, or, in the case where the first system crashes at time T1, operate the second system according to the system data of the second system at time T2; The system data of the second system at time T2 is obtained according to the system data of the first system at time T3, and the time T3 is prior to the time T1.
7. The device according to claim 6, characterized in that The device also includes: an acquisition module, configured to acquire system configuration information of the first system when the electronic device is not running the second system; The running module is further used to configure the second system according to the system configuration information of the first system, and run the second system.
8. The device according to claim 6, characterized in that The device also includes: a determination module, configured to, upon receiving a first operation on the first system, determine an application state of a first application corresponding to the first operation; The display module is used to display the prompt information and the fallback control when the application state of the first application is an unresponsive state; the prompt information is used to indicate that the first application is unresponsive.
9. The device according to claim 8, characterized in that The device also includes: A control module, used for controlling the first system to restart the first application; The control module is further used to control the second system to synchronize system data of the second system to the first system.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 5 are implemented.