CN115640058A - Operating system switching method, electronic device and storage medium - Google Patents

Operating system switching method, electronic device and storage medium Download PDF

Info

Publication number
CN115640058A
CN115640058A CN202211592345.1A CN202211592345A CN115640058A CN 115640058 A CN115640058 A CN 115640058A CN 202211592345 A CN202211592345 A CN 202211592345A CN 115640058 A CN115640058 A CN 115640058A
Authority
CN
China
Prior art keywords
operating system
storage space
processing core
memory
internal memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211592345.1A
Other languages
Chinese (zh)
Other versions
CN115640058B (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Moore Thread Intelligent Technology Chengdu Co ltd
Moore Threads Technology Co Ltd
Original Assignee
Moore Thread Intelligent Technology Chengdu Co ltd
Moore Threads Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Moore Thread Intelligent Technology Chengdu Co ltd, Moore Threads Technology Co Ltd filed Critical Moore Thread Intelligent Technology Chengdu Co ltd
Priority to CN202211592345.1A priority Critical patent/CN115640058B/en
Publication of CN115640058A publication Critical patent/CN115640058A/en
Application granted granted Critical
Publication of CN115640058B publication Critical patent/CN115640058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present disclosure relates to the field of information processing technologies, and in particular, to a switching method of an operating system, an electronic device, and a storage medium, where the switching method includes: when a first operating system of the at least two operating systems is loaded into a first storage space of the internal memory and the to-be-processed data corresponding to the first operating system is processed through the processing core, under the condition that a switching instruction corresponding to a second operating system of the at least two operating systems is received, saving a current working parameter of the processing core as a first parameter to the internal memory and resetting the processing core; allocating a second storage space in the internal memory for the second operating system; and loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core. The embodiment of the disclosure can simplify the switching process of the operating system.

Description

Operating system switching method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a switching method of an operating system, an electronic device, and a storage medium.
Background
An Operating System (or OS for short) is a set of System software programs that hosts and controls the operation, application, and running of hardware of an electronic device, and different Operating systems can be applied to different use environments. Users also start to gradually need to switch between different operating systems, so how to better switch the operating systems is a technical problem that developers need to solve urgently.
Disclosure of Invention
The present disclosure provides a switching technical scheme of an operating system.
According to an aspect of the present disclosure, there is provided a switching method applied to an electronic device, the electronic device including an external memory, an internal memory, and a processing core, the external memory storing at least two operating systems therein, the switching method including: during the period that a first operating system in the at least two operating systems is loaded to a first storage space in the internal memory and the to-be-processed data corresponding to the first operating system is processed through the processing core, under the condition that a switching instruction corresponding to a second operating system in the at least two operating systems is received, saving the current working parameter of the processing core as a first parameter to the internal memory and resetting the processing core; allocating a second storage space in the internal memory for the second operating system; wherein the storage addresses of the first storage space and the second storage space are not overlapped; and loading a second operating system in the external memory to the second storage space, and processing the data to be processed corresponding to the second operating system through the processing core.
In a possible implementation, the handover method further includes: after the electronic equipment is powered on, determining one operating system in the at least two operating systems; allocating storage space in the internal memory for the determined operating system; and loading the determined operating system in the external memory to the storage space, and processing the data to be processed corresponding to the determined operating system through the processing core.
In a possible implementation, the handover method further includes: determining the size of the storage space allocated by each operating system in the internal memory according to the total number of the operating systems in the external memory and/or the system type of each operating system; wherein the system class is used to represent a purpose of the operating system.
In a possible implementation, the handover method further includes: receiving a shutdown instruction aiming at a third operating system in the at least two operating systems; and deleting data stored in a corresponding third storage space in the internal memory by the third operating system, and allocating the third storage space to other operating systems except the third operating system in the at least two operating systems.
In one possible embodiment, the switching instruction includes: any one of a preset key instruction, a preset combination of key instructions, and a preset voice instruction.
According to an aspect of the present disclosure, there is provided an electronic apparatus including: an external memory, an internal memory, a processing core, the external memory having at least two operating systems stored therein, the processing core configured to: during the period that a first operating system in the at least two operating systems is loaded to a first storage space in the internal memory and the to-be-processed data corresponding to the first operating system is processed through the processing core, under the condition that a switching instruction corresponding to a second operating system in the at least two operating systems is received, saving the current working parameter of the processing core as a first parameter to the internal memory and resetting the processing core; allocating a second storage space in the internal memory for the second operating system; wherein the storage addresses of the first storage space and the second storage space are not coincident; and loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core.
In one possible implementation, the processing core is further configured to: after the electronic equipment is powered on, determining one operating system in the at least two operating systems; allocating storage space in the internal memory for the determined operating system; and loading the determined operating system in the external memory to the memory space, and processing the data to be processed corresponding to the determined operating system through the processing core.
In one possible implementation, the processing core is further configured to: determining the size of the storage space allocated by each operating system in the internal memory according to the total number of the operating systems in the external memory and/or the system type of each operating system; wherein the system class is used to represent a purpose of the operating system.
In one possible implementation, the processing core is further configured to: receiving a shutdown instruction for a third operating system in the at least two operating systems; and deleting data stored in a corresponding third storage space in the internal memory by the third operating system, and allocating the third storage space to other operating systems except the third operating system in the at least two operating systems.
In one possible embodiment, the switching instruction comprises: any one of a preset key instruction, a preset combination of key instructions, and a preset voice instruction.
According to an aspect of the present disclosure, there is provided an electronic device including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
According to an aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
In this embodiment of the disclosure, during the period when a first operating system of the at least two operating systems is loaded into a first storage space in the internal memory and processes to-be-processed data corresponding to the first operating system through the processing core, and when a switch instruction corresponding to a second operating system of the at least two operating systems is received, a current working parameter of the processing core is saved as a first parameter in the internal memory and the processing core is reset. And then allocating a second storage space in the internal memory for the second operating system. And finally, loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core. According to the switching method provided by the embodiment of the disclosure, the operating system can be switched in one key mode through the switching instruction corresponding to the operating system, and the switching process of the operating system can be simplified. In addition, the embodiment of the disclosure can realize dormancy and reloading of the operating systems during switching by storing the current working parameters of the processing cores, which is beneficial to realizing multiple switching among the operating systems.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of a switching method of an operating system according to an embodiment of the present disclosure.
Fig. 2 shows a block diagram of an electronic device provided according to an embodiment of the present disclosure.
Fig. 3 shows a block diagram of an electronic device provided according to an embodiment of the disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of a, B, and C, and may mean including any one or more elements selected from the group consisting of a, B, and C.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the related art, the switching process of the operating system in the same electronic device is too complex. In view of this, an embodiment of the present disclosure provides an operating system switching method, which may store, when a first operating system of the at least two operating systems is loaded into a first storage space in the internal memory and processes to-be-processed data corresponding to the first operating system through the processing core, a current working parameter of the processing core as a first parameter in the internal memory and reset the processing core when a switching instruction corresponding to a second operating system of the at least two operating systems is received. And then allocating a second storage space in the internal memory for the second operating system. And finally, loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core. According to the switching method provided by the embodiment of the disclosure, the operating system can be switched in one key mode through the switching instruction corresponding to the operating system, and the switching process of the operating system can be simplified. In addition, the embodiment of the disclosure can realize dormancy and reload of the operating systems during switching by storing the current working parameters of the processing cores, which is beneficial to realizing multiple switching among the operating systems.
Referring to fig. 1, fig. 1 is a flowchart illustrating a switching method of operating systems according to an embodiment of the present disclosure, as shown in fig. 1, the switching method is applied to an electronic device, the electronic device includes an external memory, an internal memory, and a processing core, the external memory stores at least two operating systems, and the switching method includes: step S100, during the period when a first operating system of the at least two operating systems is loaded into a first storage space in the internal memory and processes to-be-processed data corresponding to the first operating system through the processing core, and when a switching instruction corresponding to a second operating system of the at least two operating systems is received, saving a current working parameter of the processing core as a first parameter in the internal memory, and resetting the processing core. For example, the external memory may be partitioned, for example, into a C disk, a D disk, and the like, and then each operating system may be stored in a different partition, respectively, to implement isolation of the operating systems. Different operating systems may also be saved directly to different external memories in one example. The type of the operating system is not limited in this disclosure, and the operating system may be called by an electronic device, for example: if the electronic device is a computer, the operating system may include: linux, windows, UNIX, apple, etc., and if the electronic device is a mobile terminal, the operating system may include Windows, android, apple, hong meng, etc. It should be understood that the above-mentioned switching of the operating systems may also be switching of different versions for the same kind of operating systems, for example: from Windows7 to Windows10. The switching instruction may be any instruction recognizable by the electronic device, and in one example, each switching instruction may correspond to a unique operating system, so that the electronic device can know the operating system to be switched by the user. In another example, if two operating systems are shared, the operating systems can be switched by using the same key, and the embodiment of the present disclosure is not limited herein, and a developer can set the operating systems according to actual situations. In a possible implementation, the switching instruction may include: any one of a preset key instruction, a preset combination of key instructions, and a preset voice instruction. Illustratively, the key instruction may be a key instruction in a keyboard, a mouse, a virtual keyboard, or a combination thereof. The voice instruction may be acquired through a microphone in the electronic device, and then the voice instruction is recognized through a voice recognition technology in the related technology and is matched with the preset voice instruction, and in the case of successful matching, the current operating system may be switched to the operating system corresponding to the preset voice instruction. Illustratively, the above data to be processed may be represented as: based on data used by applications run by the operating system or data related to the running of the operating system, etc. The internal memory (or internal memory) may be used to temporarily store instructions and data being used by a Central Processing Unit (CPU), and has a faster access speed than the external memory, and does not store information after power-off, for example: caching, shipping, etc. The external memory (or called external memory) is used to store information that is not needed to be used immediately, has a larger capacity than the internal memory, and can still store information after power off, and is a "nonvolatile" memory, for example: hard disks, floppy disks, optical disks, etc. For example, the current operating parameters of the processing core may be represented as values held in registers in the processing core, and resetting the processing core may be represented as resetting registers in the processing core.
Step S200, allocating a second storage space in the internal memory to the second operating system. Wherein the storage addresses of the first storage space and the second storage space are not overlapped. The embodiment of the present disclosure does not limit the allocation manner of the second storage space, and the second operating system may be loaded to the second storage space. In one example, each operating system may be allocated a fixed memory space, i.e., the memory addresses that each operating system may occupy in the internal memory after each power-down, power-up are the same. In another example, each operating system may also be allocated a fixed size of a storage space, that is, the maximum space that each operating system may occupy in the internal memory after powering down and powering up is the same, and storage addresses may be different, which is not limited herein.
Step S300, loading a second operating system in the external memory to the second storage space, and processing the to-be-processed data corresponding to the second operating system through the processing core.
In a possible implementation, the handover method further includes: after the electronic device is powered on, one of the at least two operating systems is determined. For example, the operating system may be an operating system that is started by default after the electronic device is powered on, and may be set by a developer in a factory, or may be set by a user on a user interface in the electronic device after the operating system is started, which is not limited herein. The memory space in the internal memory is then allocated for the determined operating system. And finally, loading the determined operating system in the external memory to the storage space, and processing the data to be processed corresponding to the determined operating system through the processing core.
In a possible implementation, the handover method further includes: and determining the size of the storage space allocated by each operating system in the internal storage according to the total number of the operating systems in the external storage and/or the system type of each operating system. Wherein the system category is used to represent usage of the operating system. For example, a developer or a user may store the total number of operating systems and/or the system class of each operating system in the external memory, and then equally or weighted allocate the storage space in the internal memory according to the total number. In one example, each operating system may correspond to a system class that may be set by a user for a primary purpose for each system, such as: the system type of the Linux system can be set to work, the system type of the Windows system can be set to entertainment, in an actual application scene, the internal storage space occupied by the entertainment application program is generally larger, and in this case, a larger internal storage space can be allocated to the entertainment operating system for the system type. In one example, the system category may be set by a user to meet the actual needs of the user. For example, the step of allocating the storage space may be performed each time the electronic device is powered on, or may be performed when the total number of the operating systems changes and/or the system types of the operating systems change, and the embodiments of the present disclosure are not limited herein.
In a possible implementation, the handover method further includes: a shutdown instruction for a third operating system of the at least two operating systems is received. Illustratively, the shutdown instruction is used to indicate that the third operating system is no longer used in the working process of the electronic device. In an example, the third operating system may be any one of the at least two operating systems, or may be the first operating system and the second operating system, and embodiments of the present disclosure are not limited herein. And then deleting the data stored in the corresponding third storage space in the internal memory by the third operating system, and allocating the third storage space to other operating systems except the third operating system in the at least two operating systems. For example, the third storage space may be equally divided into other operating systems, or assigned with a weight according to a system type corresponding to each operating system in the other operating systems, and the embodiment of the present disclosure is not limited herein. The embodiment of the disclosure can save the storage space of the internal memory by releasing the currently unnecessary operating system, and is beneficial to supporting other operating systems to run the application programs which need to occupy larger storage space. In an example, a user may also have a need to use the third operating system, so the embodiment of the present disclosure allows the user to perform self-setting on this need, and the electronic device may not allocate the storage space of the internal memory to the third operating system in the boot stage even when the third operating system is not needed. It should be understood that this step may occur during an initial stage of powering on the electronic device, and may also occur during an operating stage of the electronic device, and the embodiments of the present disclosure are not limited thereto.
In combination with the actual application scenario, the electronic device may be represented as a computer in the related art, and a Windows system and a Linux system may be respectively stored in different hard disks of the computer. On the partition of the physical memory, half of the physical memory is allocated to the Windows System, and the other half of the physical memory is allocated to the Linux System (which may be implemented by a BIOS or a Basic Input Output System), and a special physical memory may be reserved for caching the context of the Windows System and the Linux System (for example, the current operating parameters of the CPU). Then the electronic device enters the desktop of Windows, when the user needs to switch the operating system, a specific keyboard combination key can be input (the electronic device can obtain the CPU authority of the whole operating system through the highest level interruption, then jump to the related switching function to realize the switching of the operating system), the drive is informed, the started hard disk is modified through the BIOS, the power is stored in the DDR (Double Data Rate), the CPU context (or called current working parameter) is stored, and then the CPU is reset. The BIOS is guided into the Linux system through the hard disk of the Linux system, and the other half of the physical address is reported to the Linux system for use. The Linux system enters the desktop, and under the condition that a user needs to switch the operating system, a specific keyboard combination key can be input again to switch to the Windows system, the page table of the memory and the context of the CPU are switched, the Windows awakening process is entered, and the Windows restores the desktop.
It is understood that the above-mentioned method embodiments of the present disclosure can be combined with each other to form a combined embodiment without departing from the logic of the principle, which is limited by the space, and the detailed description of the present disclosure is omitted. Those skilled in the art will appreciate that in the above methods of the specific embodiments, the specific order of execution of the steps should be determined by their function and possibly their inherent logic.
In addition, the present disclosure also provides an electronic device, a computer-readable storage medium, and a program, which can be used to implement any one of the methods for switching an operating system provided by the present disclosure, and the corresponding technical solutions and descriptions and corresponding descriptions in the methods section are omitted for brevity.
Referring to fig. 2, fig. 2 is a block diagram of an electronic device according to an embodiment of the present disclosure, and in conjunction with fig. 2, the electronic device 100 includes: an external memory 110, an internal memory 120, a processing core 130, the external memory having at least two operating systems stored therein, the processing core configured to: when a first operating system of the at least two operating systems is loaded into a first storage space of the internal memory and the to-be-processed data corresponding to the first operating system is processed through the processing core, under the condition that a switching instruction corresponding to a second operating system of the at least two operating systems is received, saving a current working parameter of the processing core as a first parameter to the internal memory and resetting the processing core; allocating a second memory space in the internal memory for the second operating system; wherein the storage addresses of the first storage space and the second storage space are not overlapped; and loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core.
In one possible implementation, the processing core is further configured to: after the electronic equipment is powered on, determining one operating system in the at least two operating systems; allocating storage space in the internal memory for the determined operating system; and loading the determined operating system in the external memory to the memory space, and processing the data to be processed corresponding to the determined operating system through the processing core.
In one possible implementation, the processing core is further configured to: determining the size of the storage space allocated by each operating system in the internal memory according to the total number of the operating systems in the external memory and/or the system type of each operating system; wherein the system class is used to represent a purpose of the operating system.
In one possible implementation, the processing core is further configured to: receiving a shutdown instruction for a third operating system in the at least two operating systems; and deleting data stored in a corresponding third storage space in the internal memory by the third operating system, and allocating the third storage space to other operating systems except the third operating system in the at least two operating systems.
In one possible embodiment, the switching instruction includes: any one of a preset key instruction, a preset combination of key instructions, and a preset voice instruction.
The method has specific technical relevance with the internal structure of the computer system, and can solve the technical problems of how to improve the hardware operation efficiency or the execution effect (including reducing data storage capacity, reducing data transmission capacity, improving hardware processing speed and the like), thereby obtaining the technical effect of improving the internal performance of the computer system according with the natural law.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the above-mentioned method. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium.
An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the memory-stored instructions to perform the above-described method.
Embodiments of the present disclosure also provide a computer program product, which includes computer readable code or a non-volatile computer readable storage medium carrying computer readable code, when the computer readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
The electronic device may be provided as a terminal device, a server, or other modality device.
Referring to fig. 3, fig. 3 is a block diagram of an electronic device 1900 provided according to an embodiment of the disclosure. For example, the electronic device 1900 may be provided as a server or terminal device. Referring to fig. 3, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may further include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output interface 1958. The electronic device 1900 may operate based on an operating system, such as a Microsoft Server operating system (Windows Server), stored in the memory 1932 TM ) Apple Inc. of a graphical user interface based operating system (Mac OS X) TM ) Multi-user, multi-process computer operating system (Unix) TM ) Free and open native code Unix-like operating System (Linux) TM ) Open native code Unix-like operating System (FreeBSD) TM ) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the electronic device 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK) or the like.
The foregoing description of the various embodiments is intended to highlight different aspects of the various embodiments that are the same or similar, which can be referenced with one another and therefore are not repeated herein for brevity.
It will be understood by those of skill in the art that in the above method of the present embodiment, the order of writing the steps does not imply a strict order of execution and does not impose any limitations on the implementation, as the order of execution of the steps should be determined by their function and possibly inherent logic.
If the technical scheme of the application relates to personal information, a product applying the technical scheme of the application clearly informs personal information processing rules before processing the personal information, and obtains personal independent consent. If the technical scheme of the application relates to sensitive personal information, before the sensitive personal information is processed, a product applying the technical scheme of the application obtains individual consent and simultaneously meets the requirement of 'explicit consent'. For example, at a personal information collection device such as a camera, a clear and significant identifier is set to inform that the personal information collection range is entered, the personal information is collected, and if the person voluntarily enters the collection range, the person is regarded as agreeing to collect the personal information; or on the device for processing the personal information, under the condition of informing the personal information processing rule by using obvious identification/information, obtaining personal authorization in the modes of pop-up window information or asking the person to upload personal information thereof and the like; the personal information processing rule may include information such as a personal information processor, a personal information processing purpose, a processing method, and a type of personal information to be processed.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (12)

1. The switching method of the operating systems is applied to an electronic device, the electronic device comprises an external memory, an internal memory and a processing core, wherein at least two operating systems are stored in the external memory, and the switching method comprises the following steps:
during the period that a first operating system in the at least two operating systems is loaded to a first storage space in the internal memory and the to-be-processed data corresponding to the first operating system is processed through the processing core, under the condition that a switching instruction corresponding to a second operating system in the at least two operating systems is received, saving the current working parameter of the processing core as a first parameter to the internal memory and resetting the processing core;
allocating a second storage space in the internal memory for the second operating system; wherein the storage addresses of the first storage space and the second storage space are not overlapped;
and loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core.
2. The handover method of claim 1, wherein the handover method further comprises:
after the electronic equipment is powered on, determining one operating system in the at least two operating systems;
allocating storage space in the internal memory for the determined operating system;
and loading the determined operating system in the external memory to the memory space, and processing the data to be processed corresponding to the determined operating system through the processing core.
3. The handover method according to claim 1 or 2, wherein the handover method further comprises:
determining the size of the storage space allocated by each operating system in the internal memory according to the total number of the operating systems in the external memory and/or the system type of each operating system; wherein the system class is used to represent a purpose of the operating system.
4. The handover method of claim 1, wherein the handover method further comprises:
receiving a shutdown instruction for a third operating system in the at least two operating systems;
and deleting data stored in a corresponding third storage space in the internal memory by the third operating system, and allocating the third storage space to other operating systems except the third operating system in the at least two operating systems.
5. The handover method of claim 1, wherein the handover instruction comprises: any one of a preset key instruction, a preset combination of key instructions, and a preset voice instruction.
6. An electronic device, comprising an external memory, an internal memory, a processing core, at least two operating systems stored in the external memory, the processing core configured to:
when a first operating system of the at least two operating systems is loaded into a first storage space of the internal memory and the to-be-processed data corresponding to the first operating system is processed through the processing core, under the condition that a switching instruction corresponding to a second operating system of the at least two operating systems is received, saving a current working parameter of the processing core as a first parameter to the internal memory and resetting the processing core;
allocating a second storage space in the internal memory for the second operating system; wherein the storage addresses of the first storage space and the second storage space are not overlapped;
and loading a second operating system in the external memory to the second memory space, and processing the data to be processed corresponding to the second operating system through the processing core.
7. The electronic device of claim 6, wherein the processing core is further configured to:
after the electronic equipment is powered on, determining one operating system in the at least two operating systems;
allocating storage space in the internal memory for the determined operating system;
and loading the determined operating system in the external memory to the memory space, and processing the data to be processed corresponding to the determined operating system through the processing core.
8. The electronic device of claim 6 or 7, wherein the processing core is further configured to:
determining the size of the storage space allocated by each operating system in the internal memory according to the total number of the operating systems in the external memory and/or the system type of each operating system; wherein the system class is used to represent a purpose of the operating system.
9. The electronic device of claim 6, wherein the processing core is further configured to:
receiving a shutdown instruction for a third operating system in the at least two operating systems;
and deleting data stored in a corresponding third storage space in the internal memory by the third operating system, and allocating the third storage space to other operating systems except the third operating system in the at least two operating systems.
10. The electronic device of claim 6, wherein the switching instruction comprises: any one of a preset key instruction, a preset combination of key instructions, and a preset voice instruction.
11. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to invoke the memory-stored instructions to perform the operating system switching method of any of claims 1 to 5.
12. A computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the switching method of the operating system of any one of claims 1 to 5.
CN202211592345.1A 2022-12-13 2022-12-13 Operating system switching method, electronic device and storage medium Active CN115640058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211592345.1A CN115640058B (en) 2022-12-13 2022-12-13 Operating system switching method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211592345.1A CN115640058B (en) 2022-12-13 2022-12-13 Operating system switching method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN115640058A true CN115640058A (en) 2023-01-24
CN115640058B CN115640058B (en) 2024-01-26

Family

ID=84949473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211592345.1A Active CN115640058B (en) 2022-12-13 2022-12-13 Operating system switching method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115640058B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022147A1 (en) * 2005-06-30 2007-01-25 Seagate Technology Llc Context-free data transactions between dual operating systems embedded within a data storage subsystem
US20140101411A1 (en) * 2012-10-04 2014-04-10 Premanand Sakarda Dynamically Switching A Workload Between Heterogeneous Cores Of A Processor
CN110851239A (en) * 2019-11-15 2020-02-28 湖南智领通信科技有限公司 TYPE-I TYPE hard real-time high-reliability full virtualization method
CN112363752A (en) * 2020-11-11 2021-02-12 海光信息技术股份有限公司 Chip verification method and equipment based on configurable operating system
CN114691226A (en) * 2022-04-12 2022-07-01 统信软件技术有限公司 Multi-operating-system switching operation method, computing device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022147A1 (en) * 2005-06-30 2007-01-25 Seagate Technology Llc Context-free data transactions between dual operating systems embedded within a data storage subsystem
US20140101411A1 (en) * 2012-10-04 2014-04-10 Premanand Sakarda Dynamically Switching A Workload Between Heterogeneous Cores Of A Processor
CN110851239A (en) * 2019-11-15 2020-02-28 湖南智领通信科技有限公司 TYPE-I TYPE hard real-time high-reliability full virtualization method
CN112363752A (en) * 2020-11-11 2021-02-12 海光信息技术股份有限公司 Chip verification method and equipment based on configurable operating system
CN114691226A (en) * 2022-04-12 2022-07-01 统信软件技术有限公司 Multi-operating-system switching operation method, computing device and storage medium

Also Published As

Publication number Publication date
CN115640058B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN110704155B (en) Container network construction method and device, physical host and data transmission method
US9495269B1 (en) Mobility validation by trial boot using snap shot
US9003174B2 (en) Method for boosting an electronic device with multiple processing units, and electronic device for implementing the same
US10942789B2 (en) Performance-based reallocating of logical processing units to sockets of a computer system
CN115988218B (en) Virtualized video encoding and decoding system, electronic equipment and storage medium
CN115988217A (en) Virtualized video coding and decoding system, electronic equipment and storage medium
EP3746888B1 (en) System and method for preserving entity identifiers for virtual machines
CN116582438B (en) Virtualized video encoding and decoding system and method, electronic equipment and storage medium
CN116320469B (en) Virtualized video encoding and decoding system and method, electronic equipment and storage medium
CN114691300A (en) Hot migration method of virtual machine instance
CN111209080A (en) Transparent transmission method for graphic processor
CN105389190A (en) Operating system starting method, apparatus and system
CN109213591B (en) Method and device for distributing coroutine running stack
CN115640058A (en) Operating system switching method, electronic device and storage medium
CN113849277B (en) Network card testing method and device, computer equipment and computer readable storage medium
JP5391152B2 (en) Server system and method for selecting virtual server migration method
CN114371911A (en) Virtual machine scheduling method and device, electronic equipment and readable storage medium
WO2023287407A1 (en) Hardware component initialization
CN114090090A (en) Terminal firmware starting method and device, electronic equipment and storage medium
US8799616B2 (en) Method and system for preferred CPU binding on virtual partitions
US10977071B2 (en) System and method for VM cloning in a software defined storage environment
US10671432B2 (en) Intelligent memory management through peer learning
CN114726719A (en) Network element operating system deployment method, device, electronic equipment and storage medium
CN117785296A (en) Method for booting a computing device, computing device and program product
CN117608906A (en) Method, device and storage medium for detecting and analyzing crash

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant