CN103150210A - Electronic device and operating system switching method thereof - Google Patents

Electronic device and operating system switching method thereof Download PDF

Info

Publication number
CN103150210A
CN103150210A CN2011104043411A CN201110404341A CN103150210A CN 103150210 A CN103150210 A CN 103150210A CN 2011104043411 A CN2011104043411 A CN 2011104043411A CN 201110404341 A CN201110404341 A CN 201110404341A CN 103150210 A CN103150210 A CN 103150210A
Authority
CN
China
Prior art keywords
operating system
electronic installation
processor
state
trigger event
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.)
Pending
Application number
CN2011104043411A
Other languages
Chinese (zh)
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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN2011104043411A priority Critical patent/CN103150210A/en
Publication of CN103150210A publication Critical patent/CN103150210A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an electronic device and an operating system switching method thereof. The method comprises the following steps of: executing a first operating system, and sensing a triggering event; when the triggering event is sensed, executing a dormant program of the first operating system; when a second operating system specified by the triggering event is executed for the first time, executing a starting program of the second operating system; and when the second operating system is not executed for the first time, executing a recovery program of the second operating system. According to the electronic device and the operating system switching method, the electronic device is not needed to be restarted when the operating systems are switched, so that the time for switching the operating systems can be greatly shortened.

Description

Electronic installation and its operating system switching method
Affiliated technical field
The present invention relates to a kind of electronic installation operating systems a plurality of with it (operating system), be specifically related to a kind of electronic installation and its operating system switching method.
Background technology
Under the development of numerous open platform operating systems now, each operating system all has different fans, also fully brings the user different experience.Each family's platform also all tries to integrate out the advantage that is different from outside own platform, tries to show one's talent among the competitive environment of open platform.
In these epoch of letting a hundred schools contend, can all have overwhelming superiority at any applied environment without any an operating system, the user has the idea that a plurality of operating systems are installed unavoidably on single electronic installation.But with present technology, if plural operating system installation is arranged on single electronic installation, when switching operating system, after all needing the operating system that is operating is at present closed, then use another starting operating system.Starting operating system is all very slow each time, waits for a few minutes possibly, and then causes the wish of user's switching operating system to descend.
Summary of the invention
The invention provides a kind of electronic installation and its operating system switching method, to shorten the switching time of operating system.
The present invention proposes a kind of operating system switching method, comprises the following steps: to carry out the first operating system, and detects a trigger event; When detecting trigger event, carry out dormancy (hibernation) program of the first operating system; Second operating system specified when trigger event is to carry out for the first time, carries out start (boot) program of the second operating system; When the second operating system is not to carry out for the first time, carry out recovery (resumption) program of the second operating system.
A kind of electronic installation of the another proposition of the present invention comprises detecting module and processor.Detecting module detecting trigger event.Processor connects detecting module, and carries out the first operating system.When detecting module detected trigger event, processor was carried out the dormancy program of the first operating system.Second operating system specified when trigger event is to carry out for the first time, and processor is carried out the boot program of the second operating system.When the second operating system is not to carry out for the first time, processor is carried out the recovery routine of the second operating system.
But the state of above-mentioned dormancy program store operation system, this state comprise electronic installation and carry out all internal memories that this operating system uses and the content of buffer.The state that above-mentioned recovery routine can last time store operating system writes back electronic installation, the running of the system of recovery operation rapidly that just do not need again to start shooting.
Electronic installation of the present invention and its operating system switching method, but its dormancy program store operation system state when switching, recovery routine can write back the state that operating system stores fast when last time switching, do not need tediously long boot program again, just can enter rapidly next operating system.Again started shooting required several minutes when switching with respect to traditional operating system, the present invention can foreshorten to the switching time of operating system the several seconds.Therefore the present invention can significantly shorten the switching time of operating system, promotes the convenience that uses, and improves the wish that the user uses a plurality of operating systems simultaneously.
Description of drawings
Fig. 1 is the schematic diagram according to a kind of electronic installation of one embodiment of the invention.
Fig. 2 to Fig. 4 is the process flow diagram according to a kind of operating system switching method of one embodiment of the invention.
Fig. 5 is the schematic diagram according to a kind of electronic installation of one embodiment of the invention.
The primary clustering symbol description:
100: electronic installation
110: processor
120: detecting module
130: storage device
210~270,320,340,420,440: process step
500: extended base
Embodiment
Below by embodiment also by reference to the accompanying drawings, the present invention will be further described.
Fig. 1 is the schematic diagram according to a kind of electronic installation 100 of one embodiment of the invention.Electronic installation 100 can be any upper electronic installation of table or electronic apparatus, for example PC, notebook computer, panel computer or smart mobile phone that executive operating system is installed.Electronic installation 100 comprises processor (processor) 110, detecting module 120 and storage device 130.Processor 110 connects detecting module 120 and storage device 130.Detecting module 120 is used for the detecting trigger event.Storage device 130 can be any non-volatile data memory device of hard disk or embedded Multi Media Card (embedded multimedia card) and so on.
Fig. 2 is the process flow diagram according to a kind of operating system switching method of one embodiment of the invention.The method of Fig. 2 can be carried out by the processor 110 of electronic installation 100.Electronic installation 100 is equipped with a plurality of different operating systems, wherein has an operating system to preset.Open the power supply of electronic installation 100 as the user, processor 110 is carried out the boot program (step 210) of preset operating system.Then processor 110 is carried out present operating system (be exactly preset operating system this moment), simultaneously by detecting module 120 detecting trigger events (step 220).Then, processor 110 checks whether detecting module 120 detects trigger event (step 230) occurs.If the triggerless event occurs, flow process is returned to step 220, continues to carry out present operating system, continues the detecting trigger event.
If have trigger event to occur in step 230, the necessary switching operating system of expression, processor 110 is carried out the dormancy program (step 240) of present operating system.The dormancy program of each operating system as shown in Figure 3.At first, processor 110 suspends all runnings (step 320) of present operating system, and then the state with present operating system writes storage device 130, to store the state (step 340) of present operating system.The dormancy program is so far completed.
For each operating system, its state comprises that electronic installation 100 carries out all internal memories that these operating systems use and the content of buffer.Above-mentioned buffer contents comprises all buffer contents of processor 110 and other relevant control device.The state of each operating system respectively has exclusive storage area among storage device 130, respectively independent the storage.If the space of storage device 130 is inadequate, or has and need to save the storage area, processor 110 can be first the state of squeeze operation system, then write storage device 130.
The next operating system that above-mentioned trigger event can specify electronic installation 100 to be about to switch to.Next, processor 110 checks whether the specified next operating system of trigger event carries out (step 250) for the first time.If next operating system is to carry out for the first time, processor 110 is carried out the boot program of next operating system, namely traditional starting operating system program (step 260).
Get back to step 250, if next operating system is not to carry out for the first time, processor 110 is carried out the recovery routine (step 270) of next operating system.The recovery routine of each operating system as shown in Figure 4.Because be not to carry out for the first time, next operating system last time carry out be switched at last the time, its dormancy program can write its state storage device 130.Therefore in recovery routine, the state that processor 110 self-storing mechanisms 130 last time stored next operating system writes back (step 420) among the internal memory of electronic installation 100 and buffer.If processor 110 ever compressed in dormancy program is last time crossed the state of next operating system, processor 110 can be read the state of next operating system by self-storing mechanism 130, writes back electronic installation 100 through decompressing again.Then processor 110 recovers the running of next operating systems, and the instruction of carrying out when last time switching continues to carry out next operating system (step 440).
Because the state of each operating system comprises all buffer contents of the processor 110 when switching, during comprising switching, processor 110 is carried out the instruction address that arrives, so write back the state of this operating system in recovery routine after, processor 110 can recover from above-mentioned instruction address the running of this operating system.
After step 260 or step 270, next operating system becomes present operating system, and then flow process is returned to step 220, carries out present operating system, detects simultaneously trigger event.
Next, the user can continue operating electronic devices 100, causes that trigger event is with switching operating system.As described in above flow process, as long as the operating system that switches to was carried out in front, leave among storage device 130 with regard to having last time the state of carrying out, can rapidly the state that last time stored be write back electronic installation 100, do not need again to carry out numerous and diverse boot program slowly, the running that can recover soon next operating system.Therefore, the electronic installation of the present embodiment and operating system switching method can significantly shorten the switching time of operating system.
The dormancy program of Fig. 3 and the recovery routine of Fig. 4 can be included among a firmware (firmware) of electronic installation 100, for example the Basic Input or Output System (BIOS) of electronic installation 100 (BIOS:basic input/output system).Processor 110 can be carried out above-mentioned dormancy program and recovery routine by carrying out above-mentioned firmware.Detecting module 120 can be hardware, can be also software, if software can be an above-mentioned firmware part wherein.
Processor 110 can be the processor of multi-core (multi-core), can above-mentioned dormancy program and the recovery routine of parallel processing, and with the switch speed of speeding up operation system.For example an available core is carried out the dormancy program of present operating system, carries out simultaneously the recovery routine of next operating system with another core.The parallel processing of exceeding core must be noted that to avoid conflict.For example step 420 must could be carried out after step 340 is completed, otherwise at present the state of operating system not yet stores completely just by the state coverage of next operating system, and the state that causes present operating system to store is incorrect.
But the switching of above-mentioned trigger event trigger action system, and specify the next operating system that will switch to.For example, electronic installation 100 extended base 500 of can arranging in pairs or groups, as shown in Figure 5.Extended base 500 comprises the input interfaces such as keyboard and contact panel.Above-mentioned trigger event can be that electronic installation 100 connects extended base 500, and this moment, electronic installation 100 became notebook computer, can switch to the operating system that is fit to notebook computer.Above-mentioned trigger event can be also that electronic installation 100 separates with extended base 500, and this moment, electronic installation 100 became panel computer, can switch to the operating system that is fit to mobile device.Can to be also the user carry out predetermined registration operation to some hardware interfaces (for example button or contact panel) of electronic installation 100 to above-mentioned trigger event, for example presses default button.Can to be also the user carry out the following Dutch of predetermined registration operation to a software interface of present operating system to above-mentioned trigger event changes order.If 100 of electronic installations are installed two operating systems, available same predetermined registration operation is switched between two operating system back and forth.If the operating system that electronic installation 100 is installed more than three can correspond to each operating system different predetermined registration operation, allow the user specify the next operating system that will switch to by the predetermined registration operation of correspondence.
If need the retouching operation system to adapt to above-mentioned electronic installation and operating system switching method, can use (SuSE) Linux OS.Because open all source codes of (SuSE) Linux OS are revised than being easier to.
In sum, but the state of dormancy program store operation system when switching of above embodiment, recovery routine can write back the state that operating system stores fast when last time switching, do not need tediously long boot program again, just can enter rapidly next operating system.Again started shooting required several minutes when switching with respect to traditional operating system, the present invention can foreshorten to the switching time of operating system the several seconds.Therefore the present invention can significantly shorten the switching time of operating system, promotes the convenience that uses, and improves the wish that the user uses a plurality of operating systems simultaneously.
Above-described embodiment is only for principle of the present invention and effect thereof are described, but not is used for limiting the scope of the invention.Those skilled in the art can under know-why of the present invention and spirit, make an amendment and change embodiment.The scope of the present invention should be as claimed in claim.

Claims (10)

1. operating system switching method comprises:
Carry out one first operating system, and detect a trigger event;
When detecting this trigger event, carry out the dormancy program of this first operating system;
One second operating system specified when this trigger event is to carry out for the first time, carries out the boot program of this second operating system; And
When this second operating system is not when carrying out for the first time, carry out the recovery routine of this second operating system.
2. the method for claim 1, also comprised before carrying out this first operating system: the boot program of carrying out this first operating system.
3. the method for claim 1, wherein this first operating system and this second operating system are carried out by an electronic installation, and this trigger event is for this electronic installation connection one extended base, this electronic installation separate with this extended base, a user carries out one first predetermined registration operation or this user to a hardware interface of this electronic installation one software interface of this first operating system is carried out one second predetermined registration operation.
4. the method for claim 1, wherein this dormancy program comprises:
Suspend all runnings of this first operating system; And
Store the state of this first operating system;
Wherein this first operating system is carried out by an electronic installation, and the state of this first operating system comprises that this electronic installation carries out all internal memories that this first operating system uses and the content of buffer.
5. the method for claim 1, wherein this recovery routine comprises:
Write back the state that this second operating system last time stored; And
Recover the running of this second operating system;
Wherein this second operating system is carried out by an electronic installation, the state of this second operating system comprises that this electronic installation carries out all internal memories that this second operating system uses and the content of buffer, and the step that writes back the state that this second operating system last time stored comprises:
The state that this second operating system was last time stored writes back this electronic installation.
6. electronic installation comprises:
One detecting module, detecting one trigger event; And
One processor connects this detecting module, carries out one first operating system; When this detecting module detected this trigger event, this processor was carried out the dormancy program of this first operating system; One second operating system specified when this trigger event is to carry out for the first time, and this processor is carried out the boot program of this second operating system; When this second operating system is not to carry out for the first time, this processor is carried out the recovery routine of this second operating system.
7. electronic installation as claimed in claim 6, wherein this trigger event separates with this extended base for this electronic installation connects an extended base, this electronic installation, a user carries out one first predetermined registration operation or this user to a hardware interface of this electronic installation one software interface of this first operating system is carried out one second predetermined registration operation.
8. electronic installation as claimed in claim 6, wherein this electronic installation also comprises:
One storage device connects this processor, and wherein, in this dormancy program, this processor suspends all runnings of this first operating system, and then the state with this first operating system writes this storage device;
Wherein the state of this first operating system comprises that this electronic installation carries out all internal memories that this first operating system uses and the content of buffer.
9. electronic installation as claimed in claim 6, wherein this electronic installation also comprises:
One storage device connects this processor, wherein, in this recovery routine, this processor writes back this electronic installation from this storage device with the state that this second operating system last time stored, and then recovers the running of this second operating system, to continue to carry out this second operating system;
Wherein the state of this second operating system comprises that this electronic installation carries out all internal memories that this second operating system uses and the content of buffer.
10. electronic installation as claimed in claim 6, wherein this dormancy program and this recovery routine are included in a firmware of this electronic installation, and this processor is carried out this dormancy program and this recovery routine by carrying out this firmware.
CN2011104043411A 2011-12-07 2011-12-07 Electronic device and operating system switching method thereof Pending CN103150210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104043411A CN103150210A (en) 2011-12-07 2011-12-07 Electronic device and operating system switching method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104043411A CN103150210A (en) 2011-12-07 2011-12-07 Electronic device and operating system switching method thereof

Publications (1)

Publication Number Publication Date
CN103150210A true CN103150210A (en) 2013-06-12

Family

ID=48548308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104043411A Pending CN103150210A (en) 2011-12-07 2011-12-07 Electronic device and operating system switching method thereof

Country Status (1)

Country Link
CN (1) CN103150210A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224399A (en) * 2014-05-26 2016-01-06 宏碁股份有限公司 The method of electronic installation and switching operating system thereof
CN106792012A (en) * 2016-11-17 2017-05-31 广州视源电子科技股份有限公司 Intelligent interaction panel internal channel switching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700175A (en) * 2004-05-21 2005-11-23 三星电子株式会社 Computer system, method and medium for switching operation system
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
US20100262853A1 (en) * 2009-04-14 2010-10-14 Canon Kabushiki Kaisha Information processing apparatus, method for controlling information processing apparatus, and recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700175A (en) * 2004-05-21 2005-11-23 三星电子株式会社 Computer system, method and medium for switching operation system
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
US20100262853A1 (en) * 2009-04-14 2010-10-14 Canon Kabushiki Kaisha Information processing apparatus, method for controlling information processing apparatus, and recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224399A (en) * 2014-05-26 2016-01-06 宏碁股份有限公司 The method of electronic installation and switching operating system thereof
CN106792012A (en) * 2016-11-17 2017-05-31 广州视源电子科技股份有限公司 Intelligent interaction panel internal channel switching method and device
WO2018090735A1 (en) * 2016-11-17 2018-05-24 广州视源电子科技股份有限公司 Method and apparatus for switching channels in smart interaction tablet
US10944934B2 (en) * 2016-11-17 2021-03-09 Guangzhou Shiyuan Electronics Co., Ltd. Method and apparatus for channel switching in interactive smartboard

Similar Documents

Publication Publication Date Title
CN102207881B (en) Quick operation system start-up method based on Android
KR101035473B1 (en) Direct boot arrangement using a nand flash memory
KR101574403B1 (en) Combined virtual graphics device
CN100359434C (en) Information processor, starting method thereof
CN104102506A (en) ARM (Advanced RISC Machine) platform based Android startup acceleration method
US9563437B2 (en) Technologies for pre-memory phase initialization of a computing device
US8935458B2 (en) Drive assisted system checkpointing via system restore points
CN103593269A (en) Automatic cyclic test method of restart pressure of multiple PCIe devices
CN113703799B (en) Computing device and BIOS updating method and medium thereof
CN101021797A (en) Repairing and staging method for software of embedded system
US20130054843A1 (en) Mobile Device and Method of Running Two Platform Systems or Applications Thereon
CN101526901A (en) Method and device for viewing files in computer
CN105874428A (en) Technologies for operating system transitions in multiple-operating-system environments
WO2015074526A1 (en) Method and apparatus for injecting java by tecode into target process
CN103677885A (en) ARM FLASH simple program programming method
JP2010262621A (en) Computer system with power supply control, and power supply control method
CN103984572A (en) Method and equipment for realizing computer installation and operating system switch without CD driver
CN101118494A (en) System and method for starting up and operating system from external connected electronic card with built-in equipment
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
CN104866397A (en) Computer System And Control Method
CN113656076A (en) BIOS starting method and device based on hardware multiplexing channel
CN103150210A (en) Electronic device and operating system switching method thereof
CN101281485B (en) Computer testing method without hard disc
CN102622242A (en) Method accelerating starting-up speed of electronic device and electronic device
KR101260934B1 (en) Method and system for application synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130612