A multi-operating system switching running method, a computing device and a storage medium

By reserving memory space in the computing device to store the operating system kernel and loading system snapshots, the problems of long operating system switching time and resource limitations are solved, enabling fast and efficient operating system switching.

CN114691226BActive Publication Date: 2025-11-04UNIONTECH SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210379179.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2025-11-04
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

In existing technologies, switching computer operating systems takes too long and cannot exclusively utilize hardware resources, thus affecting operating efficiency.

Method used

By reserving memory space in the computing device to store the operating system kernel, and modifying the kernel load address and loading a system snapshot when a switching request is received, a fast operating system switching can be achieved.

Benefits of technology

It improves the efficiency of operating system switching and operation, and avoids the resource limitations of virtual machine installation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691226B_ABST
    Figure CN114691226B_ABST
Patent Text Reader

Abstract

The application discloses a multi-operating system switching running method, a computing device and a storage medium, and comprises the following steps: modifying a kernel loading address into a second storage address of a second kernel of a second operating system in an internal storage; loading the second kernel of the second operating system according to the kernel loading address; obtaining a second system snapshot of the second operating system from an external storage; and running the second operating system according to the second kernel and the second system snapshot. In the application, the kernel loading address is modified to switch and run the operating system, and the system snapshot is obtained from the external storage, so that when the kernel loading operating system is obtained, the operating system is restored to the state of the last suspension or end of running. In order to realize the fast switching of the running operating system, a virtual machine is not needed to be constructed to install another operating system, and the switching efficiency of the operating system and the running efficiency of each operating system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of operating system, and particularly relates to a multi-operating system switching running method, a computing device and a storage medium. BACKGROUND

[0002] With the development of computer technology, when people use computers, it is possible to use multiple different operating systems at the same time for processing some more complex tasks. Therefore, when using computers, it is necessary to be able to switch the operating system running in the current computer. When multiple operating systems are installed in the computer, and it is intended to switch from the currently running operating system to another operating system, it is necessary to exit the currently running operating system and enter the BIOS interface to select another operating system to start. But this is very time-consuming, and each switching takes several minutes or even longer.

[0003] In order to quickly switch the running operating system in the prior art, a virtual machine is often installed. A first operating system is installed in the computing device, and a second operating system is installed in the virtual machine, so that quick switching between the first operating system and the second operating system can be achieved. However, in this way, whether the first operating system or the second operating system is running, only part of the hardware resources of the computing device can be used, and all hardware resources cannot be exclusively used, which affects the running efficiency of the two operating systems.

[0004] Therefore, a new multi-operating system switching running method is needed. SUMMARY

[0005] Therefore, the present application provides a multi-operating system switching running method to try to solve or at least alleviate the above problems.

[0006] According to one aspect of the present application, a multi-operating system switching running method is provided, which is suitable for being executed in a computing device including an internal memory and an external memory and running a first operating system, and the method comprises the steps of: when receiving an operating system switching request of switching to a second operating system, modifying a kernel loading address to a second storage address of a second kernel of the second operating system in the internal memory; loading the second kernel according to the kernel loading address; obtaining a second system snapshot of the second operating system from the external memory, and running the second operating system according to the second kernel and the second system snapshot.

[0007] Optionally, in the method according to the present application, before loading the second kernel, a first system snapshot of the first operating system is stored in the external memory; when receiving an operating system switching request of switching to the first operating system, the second storage address of the kernel loading address is modified to the first storage address of the first kernel in the internal memory; a third system snapshot of the second operating system is stored in the external memory; the first kernel is loaded according to the first storage address; the first system snapshot is obtained from the external memory, and the first operating system is run according to the first kernel and the first system snapshot.

[0008] Optionally, in the method according to the present application, when the computing device runs the first operating system, modifying the kernel loading address from the first storage address of the first kernel in the internal memory to the second storage address of the second kernel of the second operating system in the internal memory comprises: modifying the first storage address to the second storage address.

[0009] Optionally, in the method according to the present application, loading the second kernel of the second operating system according to the kernel loading address comprises: when the second kernel is not obtained according to the kernel loading address, obtaining the second kernel from the external memory and loading the second kernel into the internal memory according to the second storage address; and obtaining the second kernel from the internal memory according to the second storage address.

[0010] Optionally, in the method according to the present application, obtaining the second system snapshot of the second operating system from the external memory and running the second operating system according to the second kernel and the second system snapshot comprises: when the second system snapshot is not stored in the external memory, starting the second operating system according to the second kernel.

[0011] Optionally, in the method according to the present application, when a plurality of system snapshots of the second operating system are stored in the external memory, obtaining the system snapshot closest to the current time in time to run the second operating system.

[0012] Optionally, in the method according to the present application, the first storage space for storing the first kernel and the second storage space for storing the second kernel are allocated in the internal memory in advance.

[0013] Optionally, in the method according to the present application, the first storage address is the start address of the first storage space, and the second storage address is the start address of the second storage space.

[0014] According to another aspect of the present application, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs comprise instructions for performing the multi-operating system switching running method according to the present application.

[0015] According to still another aspect of the present application, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the multi-operating system switching running method according to the present application.

[0016] A multi-operating system switching running method is disclosed, which is suitable for being executed in a computing device. The computing device has a first operating system running therein; the method comprises the steps of: when receiving an operating system switching request of switching to a second operating system, modifying a kernel loading address to a second storage address of a second kernel of the second operating system in an internal memory; loading the second kernel of the second operating system according to the kernel loading address; obtaining a second system snapshot of the second operating system from an external memory, and running the second operating system according to the second kernel and the second system snapshot. In the present application, the switching running operating system is realized by modifying the kernel loading address, and the system snapshot is obtained from the external memory, so that when the kernel loading operating system is obtained, the state of the last time of pausing or ending running of the operating system is restored; in order to realize the fast switching of the running operating system, it is not necessary to construct a virtual machine to install another operating system, and the switching efficiency of the operating system and the running efficiency of each operating system are improved. BRIEF DESCRIPTION OF DRAWINGS

[0017] To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings. These aspects are indicative of various ways in which the principles disclosed herein can be practiced and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above- and other advantages of the present application disclosed herein will become more apparent in light of the following detailed description, when taken in conjunction with the accompanying drawings in which:

[0018] Figure 1 A schematic diagram of reserved memory in an internal memory according to an exemplary embodiment of the present application is shown;

[0019] Figure 2 A structural block diagram of a computing device 200 according to an exemplary embodiment of the present application is shown;

[0020] Figure 3 A flow schematic diagram of a multi-operating system switching running method 300 according to an exemplary embodiment of the present application is shown; and

[0021] Figure 4 Fig. 2 shows a schematic diagram of switching the second operating system according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0022] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings; however, they are not limited to the embodiments set forth herein but can be implemented in various forms. The present disclosure will be described herein with reference to exemplary embodiments illustrating preferred embodiments of the application. As those skilled in the art would realize, the described embodiments merely set forth preferred aspects of the present disclosure and do not limit the scope of the application. Many modifications and variations of this application can be effected, all of which fall within the scope of the application as defined in the appended claims. Accordingly, the embodiments of the disclosure described herein are by way of example only and are not intended to limit the application as defined in the appended claims. Understanding that these drawings depict only typical embodiments of the application and are not therefore to be considered to be limiting of its scope, the principles and applications of the present application will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:

[0023] Figure 1 Fig. 3 shows a schematic diagram of reserving memory in the internal memory according to an exemplary embodiment of the present application. The computing device includes an internal memory and an external memory. The internal memory includes a memory area for storing a kernel load address, as shown. The kernel load address is the first address of the memory area occupied by the kernel of the operating system to be run when stored in the internal memory. According to an embodiment of the present application, the computing device is installed with a first operating system and a second operating system. The present application does not limit the number of operating systems installed in the computing device, nor the specific type of each operating system. For example, the first operating system can be implemented as a Linux system, and the second operating system can be implemented as a Windows system. Figure 1

[0024] When the computing device is installed with the first operating system and the second operating system, a first memory space for storing a first kernel and a second memory space for storing a second kernel are pre-allocated in the internal memory. The first kernel is the kernel of the first operating system, and the second kernel is the kernel of the second operating system. The first memory space and the second memory space are separate reserved memory in the internal memory, and are used only for storing the kernel of the operating system, so as to facilitate switching between the operating systems by loading the kernel of the operating system.

[0025] The part of the internal memory other than the reserved memory can be used by the currently running operating system as system memory.

[0026] According to an embodiment of the present application, when the computing device is installed with more than two operating systems, such as a third operating system, a fourth operating system, etc., the reserved memory is also adjusted according to the number of operating systems installed in the computing device, and a third memory space for storing a third kernel of the third operating system, etc. is set. The present application does not limit the number and type of kernels stored in the reserved memory, so as to facilitate switching between more operating systems.

[0027] ​Figure 2 A structural block diagram of a computing device 200 in accordance with one exemplary embodiment of the present application is shown. As shown, in a basic configuration 202, the computing device 200 typically includes at least one processing unit 204 and system memory 206. A memory bus 208 can be used for communicating between the processing unit 204 and the system memory 206. Figure 2

[0028] Depending on the desired configuration, the processing unit 204 can be of any type, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof. The processing unit 204 can include one more levels of caching, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. The example processor core 214 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP Core), or any combination thereof. An memory controller 218 can also be used with the processing unit 204, or in some implementations, the memory controller 218 can be an internal part of the processing unit 204.

[0029] Depending on the desired configuration, the system memory 206 can be of any type, including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.) or any combination thereof. The system memory 206 can include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the programs 222 can include instructions 223 for implementing the method 300 according to the present application, which can be executed by the one or more processors 204 using the program data 228.

[0030] The computing device 200 can also include a storage interface bus 234. The storage interface bus 234 enables communication between the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) and the basic configuration 202 via the bus / interface controller 230. The operating system 220, the one or more programs 222, and the program data 224 can be stored in the removable storage 236 and / or the non-removable storage 238 as described above. These elements can be loaded into the system memory 206 and executed by the one or more processors 204 as described above, using the operating system 220, the one or more programs 222, and the program data 224 stored in the removable storage 236 and / or the non-removable storage 238 as described above.

[0031] ​The computing device 200 can also include an interface bus 240 for facilitating communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus / interface controller 230. Example output devices 242 include a graphics processing unit 248 and an audio processing unit 250, which can be configured to facilitate communication to various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 include a serial interface controller 254 or a parallel interface controller 256, which can be configured to facilitate communication to various external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripheral devices (e.g., printer, scanner) via one or more I / O ports 258. An example communication device 246 can include a network controller 260, which can be arranged to facilitate communications with one or more other computing devices 200 over a network communication link via one or more communication ports 264.

[0032] The network communication link can be one example of a communication media. Communication media can typically be embodied by computer readable instructions, data structures, program modules, and / or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. A "modulated data signal" can be a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), microwave, infrared (IR) and other wireless media. The term computer readable media as used herein can include both storage media and communication media.

[0033] In the device 200 according to the present application, the programs 222 include a plurality of program instructions of the multi-operating system switching running method 300, which can instruct the processor 204 to execute part of the steps in the multi-operating system switching running method 300 running in the computing device 200 of the present application, so that the parts in the computing device 200 switch the operating system by executing the multi-operating system switching running method 300 of the present application.

[0034] The computing device 200 can be implemented as a server, e.g., a file server, a database server, an application server, etc., electronic devices such as a personal digital assistant (PDA), a wireless web appliance, an application-specific device, or a hybrid device that can include any of the above functions. It can be implemented as a personal computer including desktop and notebook configurations, and in some embodiments, the computing device 200 is configured to the multi-operating system switching running method 300.

[0035] Figure 3 A flowchart of a multi-operating system switching running method 300 according to an exemplary embodiment of the present application is shown. As shown, first, step S310 is performed, and when an operating system switching request to switch to a second operating system is received, a kernel loading address is modified to a second storage address of a second kernel of the second operating system in an internal memory. Figure 3

[0036] According to an embodiment of the present application, before receiving an operating system switching request to switch to a second operating system, a first operating system is running in the computing device. The present application does not limit the number and type of operating systems installed in the computing device, and the computing device can also run third and fourth operating systems, and then switch to the first operating system by performing the method of the present application.

[0037] When the computing device is running the first operating system, the kernel loading address is a first storage address of a first kernel of the first operating system in an internal memory, and modifying the kernel loading address to a second storage address of a second kernel of the second operating system in the internal memory includes the step of modifying the first storage address to the second storage address.

[0038] When the first operating system is switched or started, the first storage address is stored to the kernel loading address, so that the first kernel is loaded according to the first storage address, and the first operating system is run. At this time, if it is desired to switch to the second operating system, the first storage address of the kernel loading address needs to be modified to the second storage address.

[0039] According to an embodiment of the present application, a first storage space for storing the first kernel and a second storage space for storing the second kernel are allocated in the internal memory in advance; wherein a first address of the first storage space is the first storage address, and a first address of the second storage space is the second storage address. When the first operating system is switched or started, if it is the first time to start the first operating system, the first kernel of the first operating system needs to be loaded from an external memory to the first storage space in the internal memory, and then the kernel loading address is modified to the first storage address.

[0040] The operating system switching request includes a target operating system that is desired to be switched. According to an embodiment of the present application, the operating system switching request can be realized by triggering a hot key or clicking a specific button, and the present application does not limit the specific triggering mode of the operating system switching request.

[0041] ​Subsequently, step S320 is performed to load a second kernel of the second operating system according to the kernel loading address; specifically, when the second kernel is not acquired according to the kernel loading address, the second kernel of the second operating system is acquired from the external storage and loaded into the internal storage according to the second storage address.

[0042] If the second kernel is not stored in the second storage space, the second kernel cannot be acquired according to the kernel loading address. If the second kernel is stored in the second storage address, the second operating system has not been started, and the second kernel needs to be acquired from the external storage and stored in the second storage space to load the second kernel and start the second operating system.

[0043] If the second storage space stores the second kernel, it indicates that the second operating system is not run for the first time after the computing device is powered on, and the second kernel can be directly loaded according to the kernel loading address.

[0044] Subsequently, step S330 is performed to acquire a second system snapshot of the second operating system from the external storage, and run the second operating system according to the second kernel and the second system snapshot; specifically, when the second system snapshot is not stored in the external storage, the second operating system is started according to the second kernel. The system snapshot refers to various data records of a system in a certain state in a file, and the file is the system snapshot. Running the second operating system according to the second kernel and the second system snapshot refers to running the second operating system through the second kernel and rolling back to the system state recorded in the second system snapshot to start running.

[0045] When the second system snapshot is not stored in the external storage, it indicates that the second operating system has never been run, or the snapshot of the second operating system has never been saved or has been completely deleted, and there is no system state to be rolled back, and the second operating system can be directly run.

[0046] When the external storage stores a plurality of system snapshots of the second operating system, the system snapshot with the saving time closest to the current time is acquired to run the second operating system. Each system snapshot includes a corresponding saving time, and the system snapshot with the saving time closest to the current time is the last state of the last running of the operating system and is the latest backup of the running state of the second operating system. The system snapshot with the saving time closest to the current time is acquired to reproduce the running state of the last running of the second operating system.

[0047] The present application can quickly roll back the running state of the operating system by saving the system snapshot, reproduce the running state of the last running of the operating system, and enable the user to quickly start operating the second operating system from the last working position when switching to another operating system.

[0048] According to one embodiment of the present application, during switching the second operating system, a first system snapshot of the first operating system is stored in the external memory before loading the second kernel, so as to switch the first operating system to run. When receiving an operating system switching request of switching to the first operating system, the second storage address of the kernel loading address is modified to a first storage address of the first kernel of the first operating system in the internal memory, a third system snapshot of the second operating system is stored in the external memory, so as to switch the second operating system to run, and the first kernel of the first operating system is loaded according to the first storage address; the first system snapshot is obtained from the external memory, and the first operating system is run according to the first kernel and the first system snapshot. The third system snapshot is stored later than the second system snapshot, and the system state stored by the third system snapshot is newer than the system state stored by the second system snapshot. When switching the second operating system again subsequently, the third system snapshot is loaded to run the second operating system.

[0049] Figure 4 A schematic diagram of switching the second operating system according to one exemplary embodiment of the present application is shown. As shown in the figure, when the user clicks the switching button to trigger an operating system switching request of switching to the second operating system, it is determined whether the second operating system is installed in the computing device; if the second operating system is not installed, the process is exited, and the switching to the second operating system is cancelled. Figure 4

[0050] If the second operating system is installed in the computing device, it is determined whether the second kernel is stored in the second storage space of the reserved memory; if not, the second operating system has not been run since the computing device is powered on this time, and the second kernel is loaded from the external memory to the reserved memory; specifically, the second kernel is loaded into the second storage space.

[0051] Subsequently, the kernel loading address is modified from the first storage address to a second storage address of the second kernel of the second operating system in the internal memory. The first storage address is the address of the first kernel of the first operating system stored in the internal memory.

[0052] Subsequently, a first system snapshot of the first operating system is stored in the external memory, so as to switch back to the first operating system to run.

[0053] Then, the second kernel of the second operating system is loaded according to the kernel loading address, so that the processor is executed from the kernel loading address, so as to run the second operating system.

[0054] ​Then it is judged whether the second system snapshot of the second operating system is stored in the external storage, if yes, the second system snapshot of the second operating system is acquired from the external storage, and the second operating system is run according to the second kernel and the second system snapshot, so as to present the running state of the last running of the second operating system. If not, the second operating system is directly run.

[0055] The application discloses a multi-operating system switching running method, which is suitable for being executed in a computing device. The computing device has a first operating system running therein; the method comprises the following steps: when receiving an operating system switching request of switching to a second operating system, modifying a kernel loading address into a second storage address of a second kernel of the second operating system in an internal storage; loading the second kernel of the second operating system according to the kernel loading address; acquiring a second system snapshot of the second operating system from an external storage, and running the second operating system according to the second kernel and the second system snapshot. In the application, the switching running operating system is realized by modifying the kernel loading address, and the system snapshot is acquired from the external storage, so that when the kernel loading operating system is acquired, the state of the last suspension or end running of the operating system is recovered; in order to realize the fast switching of the running operating system, no virtual machine is constructed to install another operating system, and the switching efficiency of the operating system and the running efficiency of each operating system are improved.

[0056] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order to not obscure the understanding of this description.

[0057] Similarly, it is to be understood that the features of the present application that are of a conventional nature can be implemented to form an embodiment of the present application and that sometimes such conventional features will be described in the description of one or more of the example embodiments of the application herein to aid in the understanding of one or more of the various aspects of the present application.

[0058] Those skilled in the art will understand that the modules or units or groups of the devices in the examples disclosed herein can be arranged in a device as described in the examples, or alternatively can be located in one or more devices different from the devices in the examples. The modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.

[0059] Those skilled in the art will appreciate that the modules in the apparatuses in the embodiments can be adapted and placed in one or more apparatuses other than the embodiments. The modules or units or inter-group combinations in the embodiments can be combined into one module or unit or inter-group, and further can be divided into a plurality of sub-modules or sub-units or sub-groups. Any combination of all the features disclosed in the specification and any method or device disclosed in the specification can be adopted unless at least some of such features and / or processes or units are mutually exclusive. Unless explicitly stated otherwise, each feature disclosed in the specification can be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0060] Furthermore, those skilled in the art will appreciate that different embodiments of the application have different features and thus not all embodiments will exhibit all of the features described herewith, or some embodiments will exhibit and / or will not exhibit a number of the features described herewith. It is, therefore, anticipated that various embodiments of the application will exhibit different combinations of the features described herewith and / or will exhibit a number of its own unique features, and such features, in their entirety, do not

[0061] Furthermore, some of the embodiments described herein are of a machine implemented method or process, articles of manufacture, and / or apparatus. The machine implemented steps or processes described herein can be implemented using standard knowledge of those with skill in the art, such that these embodiments are not to be understood with reference to sources of the machine implemented steps or processes other than those that are cited above.

[0062] The various techniques described herein can be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatus of the application, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the subject application.

[0063] Where a technology described herein is implemented in connection with a program code embodied on a machine-readable medium, the program code is executed by a processing apparatus, which can include any suitable processing element, such as a computer, a processor, or a processor core. Program code segments can be stored in, without limitation, a storage medium, a computer-readable medium, or memory, such as one or more volatile or non-volatile memory devices.

[0064] By way of example, and not limitation, computer-readable media include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer readable media modulated data signals carry computer readable program code in a carrier wave or other transport mechanism and includes any information delivery media. Combinations of the any of the above are also included within the scope of computer readable media.

[0065] As used herein, unless otherwise indicated, the use of the ordinal adjectives such as "first", "second", "third", etc., merely to distinguish different instances of an object and does not imply a time, spatial, ranking, or any other ordering of the objects.

[0066] Although the application has been described in terms of particular embodiments and illustrative figures, those of ordinary skill in the art will understand that various modifications and changes can be made thereto without departing from the scope of the present application, which is to be defined by the appended claims in accordance with the full breadth to be afforded by the law. Additionally, the language used in the specification is expressly intended to be illustrative only and not to limit the scope of the claims. Therefore, it is to be understood that modifications and variations can be effected while remaining within the concepts disclosed herein.

Claims

1. A multi-operating system switching running method, adapted to be executed in a computing device, the computing device comprising an internal memory and an external memory, and running a first operating system, the method comprising the steps of: pre-allocating a first storage space for storing a first kernel and a second storage space for storing a second kernel in the internal memory, a first storage address being a first address of the first storage space, and a second storage address being a first address of the second storage space, the first storage space and the second storage space being separately set in the internal memory as reserved memories for storing only kernels of operating systems, facilitating switching of a running operating system by loading a kernel of an operating system, and the reserved memories being determined according to a number of operating systems installed in the computing device; when receiving an operating system switching request to switch to a second operating system, modifying a kernel loading address to the second storage address of the second kernel of the second operating system in the internal memory; loading the second kernel according to the kernel loading address; acquiring a second system snapshot of the second operating system from the external memory, and running the second operating system according to the second kernel and the second system snapshot; storing a first system snapshot of the first operating system in the external memory before loading the second kernel; when receiving an operating system switching request to switch to the first operating system, modifying the second storage address of the kernel loading address to the first storage address of the first kernel in the internal memory; storing a third system snapshot of the second operating system in the external memory; loading the first kernel according to the first storage address; acquiring the first system snapshot from the external memory, and running the first operating system according to the first kernel and the first system snapshot; when the computing device is running the first operating system, the kernel loading address being the first storage address of the first kernel in the internal memory, and the modifying of the kernel loading address to the second storage address of the second kernel of the second operating system in the internal memory comprising the step of: modifying the first storage address to the second storage address.

2. The method of claim 1, wherein, the loading of the second kernel of the second operating system according to the kernel loading address comprising the steps of: when the second kernel is not acquired according to the kernel loading address, acquiring the second kernel from the external memory and loading the second kernel into the internal memory according to the second storage address; acquiring the second kernel from the internal memory and loading the second kernel according to the second storage address.

3. The method of claim 2, wherein, the acquiring of the second system snapshot of the second operating system from the external memory and the running of the second operating system according to the second kernel and the second system snapshot comprising the step of: when the second system snapshot is not stored in the external memory, starting the second operating system according to the second kernel.

4. The method of claim 3, wherein, the method further comprising the step of: when a plurality of system snapshots of the second operating system are stored in the external memory, acquiring a system snapshot with a time closest to a current time to run the second operating system. 5.A computing device, comprising: one or more processors; a memory; and ​ one or more devices comprising instructions for performing the method of any of claims 1-4.

6. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-4.

Citation Information

Patent Citations

  • Information processing method and electronic equipment

    CN104252395A

  • Method of fast switching control for different operation systems operated in computer

    US20070055857A1