CN102360300A - Starting method and device of operation system - Google Patents

Starting method and device of operation system Download PDF

Info

Publication number
CN102360300A
CN102360300A CN2011102964224A CN201110296422A CN102360300A CN 102360300 A CN102360300 A CN 102360300A CN 2011102964224 A CN2011102964224 A CN 2011102964224A CN 201110296422 A CN201110296422 A CN 201110296422A CN 102360300 A CN102360300 A CN 102360300A
Authority
CN
China
Prior art keywords
status data
operating system
data
starting
register
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
CN2011102964224A
Other languages
Chinese (zh)
Other versions
CN102360300B (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.)
Wuxi Tianyun Data Center Technology Co. Ltd.
Original Assignee
BEIJING CLOUD-FRAME 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 BEIJING CLOUD-FRAME TECHNOLOGY Co Ltd filed Critical BEIJING CLOUD-FRAME TECHNOLOGY Co Ltd
Priority to CN201110296422.4A priority Critical patent/CN102360300B/en
Publication of CN102360300A publication Critical patent/CN102360300A/en
Application granted granted Critical
Publication of CN102360300B publication Critical patent/CN102360300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a starting method and device of an operation system. The method comprises the following steps of: receiving an starting instruction from a user; judging whether system start status data exists in the operation system or not according to the starting instruction; if the system start status data exists in the operation system, directly loading the system start status data to the operation system to start the operation system; and if the system start status data does not exist in the operation system, starting the operation system and taking the data after starting the operation system as the system start status data to save. According to the invention, the initialization time for starting the system each time is shortened through directly loading the saved system start status data and the experience sense of the user is improved; and the data amount is small and the storage space is saved, because only the status data when the system just completes starting is saved. In addition, the saved system start status data is in a pure and errorless status so that the consistency and the stability of starting the operation system each time are guaranteed.

Description

The startup method and the device of operating system
Technical field
The present invention relates to field of computer technology, particularly a kind of startup method and device of operating system.
Background technology
The time that existing operating system needs when starting is generally longer, and for example the linux system start-up course probably needs about 1 minute.
In order to address the above problem, increased sleep mode in the operating systems such as Windows, promptly preserve all current states; Revert to the preceding state of shutdown in the time of system start-up; Rather than start again, thereby avoided the complex operations process of starting shooting required again, reduced start-up time.
The shortcoming that prior art exists is that the state before the shutdown that sleep mode is preserved has comprised the error condition before the shutdown etc., if mistake appears in system, still need restart.In addition, sleep mode has been preserved too much data, needs the loaded data amount big when causing system start-up, and is consuming time still more, and start is quickened not obvious.
Summary of the invention
The object of the invention is intended to solve at least one of above-mentioned technological deficiency.
For achieving the above object, one aspect of the present invention proposes a kind of startup method of operating system, may further comprise the steps: receive user's enabled instruction; According to said enabled instruction, whether there has been the system start-up status data in the decision operation system; If there has been said system start-up status data, then directly said system start-up status data is loaded on said operating system to start said operating system; And if do not have said system start-up status data, then start said operating system, and the data behind the said os starting preserved as the system start-up status data.
Startup method according to the operating system of the embodiment of the invention; Status data when just having started completion through saved system; And when each os starting, directly load the system state data of keeping; Avoided when os starting, going again the complex operations of the status data loading before the preceding status data of inquiry system shutdown also will shut down, thus the initialization time of the each startup of minimizing system, the sense of lifting user experience.And because a saved system has just started the status data when accomplishing, data volume is little, saves storage space.In addition, just having started the state when accomplishing because the system start-up status data of preserving is a system, is pure faultless state, thereby has guaranteed each consistance and the stability that starts of operating system.
The present invention also proposes a kind of starter gear of operating system on the other hand, comprising: receiver module is used to receive user's enabled instruction; First judge module is used for whether having existed in the decision operation system system start-up status data; Load-on module is used for when having had said system start-up status data in the said operating system, said system start-up status data being loaded on said operating system to start said operating system; Start module, be used for when not having said system start-up status data in the said operating system, starting said operating system; And register, be used for when not having said system start-up status data in the said operating system, write down data behind the said os starting as the system start-up status data.
Starter gear according to the operating system of the embodiment of the invention; Status data when just having started completion through saved system; And when each os starting, directly load the system state data of keeping; Avoided when os starting, going again the complex operations of the status data loading before the preceding status data of inquiry system shutdown also will shut down, thus the initialization time of the each startup of minimizing system, the sense of lifting user experience.And because a saved system has just started the status data when accomplishing, data volume is little, saves storage space.In addition, just having started the state when accomplishing because the system start-up status data of preserving is a system, is pure faultless state, thereby has guaranteed each consistance and the stability that starts of operating system.
Aspect that the present invention adds and advantage part in the following description provide, and part will become obviously from the following description, or recognize through practice of the present invention.
Description of drawings
Above-mentioned and/or additional aspect of the present invention and advantage are from obviously with easily understanding becoming the description of embodiment below in conjunction with accompanying drawing, wherein:
Fig. 1 is the process flow diagram of startup method of the operating system of one embodiment of the invention;
Fig. 2 is the process flow diagram of startup method of the operating system of another embodiment of the present invention;
Fig. 3 is the structural representation of starter gear of the operating system of one embodiment of the invention; And
Fig. 4 is the structural representation of the starter gear of another embodiment of the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of said embodiment is shown in the drawings, and wherein identical from start to finish or similar label is represented identical or similar elements or the element with identical or similar functions.Be exemplary through the embodiment that is described with reference to the drawings below, only be used to explain the present invention, and can not be interpreted as limitation of the present invention.
Fig. 1 is the process flow diagram of startup method of the operating system of one embodiment of the invention.As shown in Figure 1, this method may further comprise the steps:
Step S101 receives user's enabled instruction.
Whether step S102 according to the enabled instruction that receives, has existed the system start-up status data in the decision operation system.
Step S103 if there has been the system start-up status data, then directly is loaded on operating system to start the operating system with the system start-up status data.
Step S104 if there is not the system start-up status data, then starts the operating system, and the data behind the os starting are preserved as the system start-up status data.
Startup method according to the operating system of the embodiment of the invention; Status data when just having started completion through saved system; And when each the startup, directly load the system state data of keeping, the initialization time when the minimizing system starts at every turn, promote the user experience sense.And because a saved system has just started the status data when accomplishing, data volume is little, saves storage space.In addition, just having started the state when accomplishing because the system start-up status data of preserving is a system, is pure faultless state, thereby has guaranteed each consistance and the stability that starts of operating system.
Describe the startup method of the operating system of the embodiment of the invention in detail below in conjunction with Fig. 2.
Fig. 2 is the process flow diagram of startup method of the operating system of another embodiment of the present invention.In this embodiment, operating system can be linux system, also can be other operating systems such as Windows.As shown in Figure 2, this method may further comprise the steps:
Step S201 receives user's enabled instruction.
For example, the user can send enabled instruction through pushing the startup button that is arranged on the main frame.
Whether step S202 according to the enabled instruction that receives, has existed the system start-up status data in the decision operation system.
When operating system starts for the first time, can note the initialized result of system start-up, that is, the status data that operating system has just been started completion is noted as the system start-up status data.Thereby, when operating system starts later at every turn, can at first judge whether there is the system start-up status data in the system, can directly load to reduce initialization time if exist.
In one embodiment of the invention, the system start-up status data can comprise peripheral hardware register data and the used internal storage data of system start-up of all current register datas of CPU, initialization etc.
Step S203 if there has been the system start-up status data, then directly is loaded on operating system to start the operating system with this system start-up status data.
For example, the register data that can at first load peripheral hardware is used for the initialization peripheral hardware, the state when making peripheral hardware be operated in system boot; The internal storage data that next loading system start is used is in Installed System Memory; The register data that loads CPU (Central Processing Unit, central processing unit) at last recovers CPU state, wherein PC (the program counter in the CPU register data; Programmable counter) register data loads at last, and promptly the PC register recovers at last.System has just switched to the state of system start-up after recovering the PC register.
Step S204 if there is not the system start-up status data, then starts the operating system, and execution in step S205.
Particularly, can start the operating system, repeat no more at this according to existing operating system startup method.
Step S205, whether the decision operation system starts finishes.
Step S206, if os starting finishes, then the data after the recording operation system start-up are as the system start-up status data and preserve.
In case decision operation system start-up finishes, promptly the data behind the os starting are preserved with as the system start-up status data.For example, can be in the last executive logging program of the start-up routine of operating system.Like this, when system starts next time, can direct loading system starting state data.
Do not finish if operating system starts, then do not carry out record, after os starting finishes, just write down and preserve, with the accuracy and the integrality of the system start-up status data that guarantees to be write down.
Startup method according to the operating system of the embodiment of the invention; Status data when just having started completion through saved system; And when each os starting, directly load the system state data of keeping; Avoided when os starting, going again the complex operations of the status data loading before the preceding status data of inquiry system shutdown also will shut down, thus the initialization time of the each startup of minimizing system, the sense of lifting user experience.And because a saved system has just started the status data when accomplishing, data volume is little, saves storage space.In addition, just having started the state when accomplishing because the system start-up status data of preserving is a system, is pure faultless state, thereby has guaranteed each consistance and the stability that starts of operating system.
For realizing the foregoing description, the present invention also proposes a kind of starter gear of operating system.
Fig. 3 is the synoptic diagram of starter gear of the operating system of one embodiment of the invention.As shown in Figure 3, this system comprises: receiver module 100, first judge module 200, load-on module 300, start module 400 and register 500.
Wherein, receiver module 100 is used to receive user's enabled instruction.First judge module 200 is connected with receiver module 100, is used for whether having existed in the decision operation system system start-up status data.Load-on module 300 is connected with first judge module 200, is used for directly the system start-up status data being loaded on operating system to start the operating system when first judge module, 200 decision operation Installed System Memories during at the system start-up status data.Start module 400 and be connected, be used for when not having the system start-up status data in first judge module, the 200 decision operation systems, starting the operating system with first judge module 200.Register 500 with start module 400 and be connected, be used for status data after the recording operation system start-up as the system start-up status data.
In one embodiment of the invention, the system start-up status data can comprise the peripheral hardware register data of all current register datas of CPU, initialization and the internal storage data that system start-up is used etc.Load-on module 300 is when loading; The register data that can at first load peripheral hardware comes the initialization peripheral hardware, the state when making peripheral hardware be operated in system boot, and the internal storage data that next loading system startup is used is in Installed System Memory; The register data that loads CPU at last recovers the CPU state; Wherein the PC register data in the register data of CPU loads at last, promptly recovers the PC register at last, and system has just switched to the state of system start-up after recovering the PC register.
Fig. 4 is the synoptic diagram of starter gear of the operating system of another embodiment of the present invention.As shown in Figure 4, on basis embodiment illustrated in fig. 3, this system also can comprise: memory module 600.Memory module 600 is connected with load-on module 300 with register 500, first judge module 200 respectively, is used for the storage system status data.Like this; Can the system start-up status data of register 500 records be stored to memory module 600; First judge module 200 can directly judge whether store the system start-up status data in the memory module 600, and load-on module 300 can directly be loaded on operating system with the system start-up status data of storing in the memory module 600.
In an example of the present invention, this memory module 600 can be flash (a kind of storage chip), and perhaps this memory module also can be internal memory etc.To its not restriction,, can storage system starting state data get final product in the present invention as long as its capacity is enough big.
In one embodiment of the invention, this system also can comprise: second judge module 700.Whether second judge module 700 is connected and starts between module 400 and the register 500, be used for the decision operation system and start and finish.If os starting finishes, the status data after the recording operation system start-up and preserving then.Do not finish if operating system starts, then do not carry out record, finish until system start-up and just write down accuracy and integrality with the status data that guarantees to be write down.
The description of concrete deterministic process and loading procedure and said method embodiment is similar, here for simplicity, repeats no more.
Should be understood that in embodiments of the present invention operating system can be linux system, also can be other operating systems such as Windows system.Operating system also can be installed on the terminal of any kind, for example computing machine etc.The operating system of development also should be included within protection scope of the present invention equally, in the future.
Starter gear according to the operating system of the embodiment of the invention has following beneficial effect at least:
1, through direct loading system starting state data; The complex operations of the status data loading of having avoided when os starting, removing again the preceding status data of inquiry system shutdown and will having shut down preceding; Thereby can reduce the initialization time of the each startup of system, promote the user experience sense.
2, because a saved system has just started the status data when accomplishing, and data volume is little, save storage space.
3, just having started the state when accomplishing because the system start-up status data of preserving is a system, is pure faultless state, thereby has guaranteed each consistance and the stability that starts of operating system.
Those skilled in the art are appreciated that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; This program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics in each unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If said integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means the concrete characteristic, structure, material or the characteristics that combine this embodiment or example to describe and is contained at least one embodiment of the present invention or the example.In this manual, the schematic statement to above-mentioned term not necessarily refers to identical embodiment or example.And concrete characteristic, structure, material or the characteristics of description can combine with suitable manner in any one or more embodiment or example.
Although illustrated and described embodiments of the invention; For those of ordinary skill in the art; Be appreciated that under the situation that does not break away from principle of the present invention and spirit and can carry out multiple variation, modification, replacement and modification that scope of the present invention is accompanying claims and be equal to and limit to these embodiment.

Claims (10)

1. the startup method of an operating system is characterized in that, comprising:
S1: receive user's enabled instruction;
S2:, whether had the system start-up status data in the decision operation system according to said enabled instruction;
S3:, then directly said system start-up status data is loaded on said operating system to start said operating system if there has been said system start-up status data; And
S4: if there is not said system start-up status data, then start said operating system, and the data behind the said os starting are preserved as the system start-up status data.
2. the startup method of operating system according to claim 1 is characterized in that, said system start-up status data comprises: all register datas of CPU, peripheral hardware register data and the required internal storage data of system start-up.
3. the startup method of operating system according to claim 2 is characterized in that, said step S3 further comprises:
Load said peripheral hardware register data;
The internal storage data that said system start-up is required is loaded in the internal memory of said operating system;
All register datas that load said CPU are to recover the CPU state.
4. the startup method of operating system according to claim 3 is characterized in that, loads the PC register data in all register datas of said CPU at last.
5. the startup method of operating system according to claim 1 is characterized in that, said step S4 further comprises:
If do not have said system start-up status data, then start said operating system;
Judging whether said operating system starts finishes; And
If said os starting finishes, then the data behind the said os starting are preserved as the system start-up status data.
6. the starter gear of an operating system is characterized in that, comprising:
Receiver module is used to receive user's enabled instruction;
First judge module is used for whether having existed in the decision operation system system start-up status data;
Load-on module is used for when having had said system start-up status data in the said operating system, said system start-up status data being loaded on said operating system to start said operating system;
Start module, be used for when not having said system start-up status data in the said operating system, starting said operating system; With
Register is used for when not having said system start-up status data in the said operating system, writes down data behind the said os starting as the system start-up status data.
7. the starter gear of operating system according to claim 6 is characterized in that, also comprises:
Memory module is used to store said system start-up status data.
8. the starter gear of operating system according to claim 7 is characterized in that, said memory module is flash.
9. the starter gear of operating system according to claim 5 is characterized in that, said system start-up status data comprises: all register datas of CPU, peripheral hardware register data and the required internal storage data of system start-up.
10. the starter gear of operating system according to claim 9 is characterized in that, also comprises:
Second judge module is connected between said startup module and the said register, is used to judge whether said operating system starts finishes.
CN201110296422.4A 2011-09-27 2011-09-27 Starting method and device of operation system Active CN102360300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110296422.4A CN102360300B (en) 2011-09-27 2011-09-27 Starting method and device of operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110296422.4A CN102360300B (en) 2011-09-27 2011-09-27 Starting method and device of operation system

Publications (2)

Publication Number Publication Date
CN102360300A true CN102360300A (en) 2012-02-22
CN102360300B CN102360300B (en) 2014-05-28

Family

ID=45585633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110296422.4A Active CN102360300B (en) 2011-09-27 2011-09-27 Starting method and device of operation system

Country Status (1)

Country Link
CN (1) CN102360300B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488514A (en) * 2013-09-30 2014-01-01 华为技术有限公司 Starting method and central processing unit (CPU)
CN107577501A (en) * 2016-07-04 2018-01-12 深圳中电长城信息安全系统有限公司 A kind of starting-up method and system
CN108595212A (en) * 2018-03-30 2018-09-28 上海康斐信息技术有限公司 A kind of method and wireless router of quick startup wireless router
CN108958812A (en) * 2018-06-06 2018-12-07 联想(北京)有限公司 A kind of starting method and electronic equipment
CN109353224A (en) * 2018-09-30 2019-02-19 潍柴动力股份有限公司 A kind of Control of Electric Vehicles method and vehicle control unit of electric vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467625A (en) * 2002-07-08 2004-01-14 尹启凤 Quick starting computer system
US20050055591A1 (en) * 2003-09-08 2005-03-10 Samsung Electronic Co., Ltd. Computer system and a control method thereof
CN1886729A (en) * 2003-09-24 2006-12-27 T1科技有限公司 Method and device for starting a computer system
CN101620539A (en) * 2008-07-01 2010-01-06 联想(北京)有限公司 Method for start-up and shutdown and computer
CN101882085A (en) * 2010-06-23 2010-11-10 迈普通信技术股份有限公司 System starting method and embedded equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467625A (en) * 2002-07-08 2004-01-14 尹启凤 Quick starting computer system
US20050055591A1 (en) * 2003-09-08 2005-03-10 Samsung Electronic Co., Ltd. Computer system and a control method thereof
CN1886729A (en) * 2003-09-24 2006-12-27 T1科技有限公司 Method and device for starting a computer system
CN101620539A (en) * 2008-07-01 2010-01-06 联想(北京)有限公司 Method for start-up and shutdown and computer
CN101882085A (en) * 2010-06-23 2010-11-10 迈普通信技术股份有限公司 System starting method and embedded equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488514A (en) * 2013-09-30 2014-01-01 华为技术有限公司 Starting method and central processing unit (CPU)
CN107577501A (en) * 2016-07-04 2018-01-12 深圳中电长城信息安全系统有限公司 A kind of starting-up method and system
CN108595212A (en) * 2018-03-30 2018-09-28 上海康斐信息技术有限公司 A kind of method and wireless router of quick startup wireless router
CN108958812A (en) * 2018-06-06 2018-12-07 联想(北京)有限公司 A kind of starting method and electronic equipment
CN109353224A (en) * 2018-09-30 2019-02-19 潍柴动力股份有限公司 A kind of Control of Electric Vehicles method and vehicle control unit of electric vehicle

Also Published As

Publication number Publication date
CN102360300B (en) 2014-05-28

Similar Documents

Publication Publication Date Title
US10896099B2 (en) Memory module with non-volatile backup storage
US8769256B2 (en) Fast switching between multiple operating systems using standby state
TWI514408B (en) Handling errors during device bootup from a non-volatile memory
EP2771785B1 (en) Load boot data
US9424022B2 (en) Method for updating firmware of an electronic device within a computer
US20080005462A1 (en) Method of configuring non-volatile memory for a hybrid disk drive
US8799631B2 (en) Dynamically select operating system (OS) to boot based on hardware states
CN105389122B (en) Method of operating a data storage device
CN102360300B (en) Starting method and device of operation system
CN101593120A (en) Be with outer upgrade method and system
US20100064036A1 (en) Peripheral device operation method, peripheral device and host
US10747287B2 (en) Backup power supply based configuration data application
CN102314354A (en) Embedded system starting method and embedded device
JP2010198252A (en) Non-volatile memory device, write-in method for nonvolatile memory, and nonvolatile memory write-in program
CN103514014A (en) Method for designing boot system of embedded terminal equipment
CN107111575B (en) Method and storage management device for transmitting data in computer system, storage system and computer system
US20170249247A1 (en) Memory system
US10467020B2 (en) Memory device, and information-processing device
US10467018B2 (en) System and method for booting a host device from a mobile device
CN102075710A (en) Starting operation method for television and television
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
US20160179626A1 (en) Computer system, adaptable hibernation control module and control method thereof
CN201869296U (en) Television
CN102855162B (en) A kind of data-updating method, data update system and memorizer
US8074018B2 (en) Disk array apparatus, and control method and control program recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160513

Address after: 214135 Jiangsu province Wuxi city Wuxi District Taihu international science and Technology Park Linghu Road No. 200 China Sensor Network International Innovation Park Room D2-622

Patentee after: Wuxi Tianyun Data Center Technology Co. Ltd.

Address before: 100176, room six, building 18, building 1, North Street, No. 606, Sheng Bei street, Beijing economic and Technological Development Zone, Beijing

Patentee before: Beijing Cloud-frame Technology Co., Ltd.