CN102360300B - Starting method and device of operation system - Google Patents
Starting method and device of operation system Download PDFInfo
- Publication number
- CN102360300B CN102360300B CN201110296422.4A CN201110296422A CN102360300B CN 102360300 B CN102360300 B CN 102360300B CN 201110296422 A CN201110296422 A CN 201110296422A CN 102360300 B CN102360300 B CN 102360300B
- Authority
- CN
- China
- Prior art keywords
- operating system
- data
- starting
- state data
- starting state
- 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.)
- Active
Links
Images
Landscapes
- Stored Programmes (AREA)
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
Technical field
The present invention relates to field of computer technology, particularly a kind of starting method of operating system and device.
Background technology
The time that existing operating system needs in the time starting is generally longer, and for example linux system start-up course probably needs about 1 minute.
In order to address the above problem, in the operating systems such as Windows, increase sleep mode, current all states are preserved, system reverts to the state before shutdown when startup, rather than start again, thereby avoid the complex operations process of again starting shooting required, reduce 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 shutdown etc., if mistake appears in system, still needs to restart.In addition, sleep mode has been preserved too much data, and the data volume that need to load while causing system to start is large, consuming time still more, and start is accelerated not obvious.
Summary of the invention
Object of the present invention is intended at least solve one of above-mentioned technological deficiency.
For achieving the above object, one aspect of the present invention proposes a kind of starting method of operating system, comprises the following steps: receive user's enabled instruction; According to described enabled instruction, system starting state data in decision operation system, whether are there are; If there are described system starting state data, directly described system starting state data are loaded on to described operating system to start described operating system; And if there are not described system starting state data, start described operating system, and the data after described os starting preserved as system starting state data.
According to the starting method of the operating system of the embodiment of the present invention, status data while just startup by saved system, and the system state data that directly loading is kept in the time of each os starting, the status data before the new inquiry system shutdown of in the time of os starting duplicate removal the complex operations that the status data before shutdown is loaded are avoided, thereby each initialization time starting of minimizing system, promote user's experience sense.And, the status data while just startup due to a saved system, data volume is little, saves storage space.In addition,, because the system starting state data of preserving are the state of system while just having started, be pure faultless state, thereby guaranteed consistance and the stability of the each startup of operating system.
The present invention also proposes a kind of starter gear of operating system on the other hand, comprising: receiver module, for receiving user's enabled instruction; Whether the first judge module, for having there are system starting state data in decision operation system; Load-on module, in the time having there are described system starting state data in described operating system, is loaded on described operating system to start described operating system by described system starting state data; Start module, in the time there are not described system starting state data in described operating system, start described operating system; And register, in the time there are not described system starting state data in described operating system, record data after described os starting as system starting state data.
According to the starter gear of the operating system of the embodiment of the present invention, status data while just startup by saved system, and the system state data that directly loading is kept in the time of each os starting, the status data before the new inquiry system shutdown of in the time of os starting duplicate removal the complex operations that the status data before shutdown is loaded are avoided, thereby each initialization time starting of minimizing system, promote user's experience sense.And, the status data while just startup due to a saved system, data volume is little, saves storage space.In addition,, because the system starting state data of preserving are the state of system while just having started, be pure faultless state, thereby guaranteed consistance and the stability of the each startup of operating system.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments obviously and easily and understand, wherein:
Fig. 1 is the process flow diagram of the starting method of the operating system of one embodiment of the invention;
Fig. 2 is the process flow diagram of the starting method of the operating system of another embodiment of the present invention;
Fig. 3 is the structural representation of the 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 described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
Fig. 1 is the process flow diagram of the starting method of the operating system of one embodiment of the invention.As shown in Figure 1, the method comprises the following steps:
Step S101, receives user's enabled instruction.
Whether step S102, according to the enabled instruction receiving, there are system starting state data in decision operation system.
Step S103, if there are system starting state data, is directly loaded on operating system to start the operating system by system starting state data.
Step S104, if there are not system starting state data, starts the operating system, and the data after os starting are preserved as system starting state data.
According to the starting method of the operating system of the embodiment of the present invention, status data while just startup by saved system, and directly load the system state data of keeping in the time of each startup, initialization time when minimizing system starts at every turn, promote user's experience sense.And, the status data while just startup due to a saved system, data volume is little, saves storage space.In addition,, because the system starting state data of preserving are the state of system while just having started, be pure faultless state, thereby guaranteed consistance and the stability of the each startup of operating system.
Describe the starting method of the operating system of the embodiment of the present invention in detail below in conjunction with Fig. 2.
Fig. 2 is the process flow diagram of the starting method of the operating system of another embodiment of the present invention.In this embodiment, operating system can be linux system, can be also other operating systems such as Windows.As shown in Figure 2, the method comprises the following steps:
Step S201, receives user's enabled instruction.
For example, user can send enabled instruction by pressing the startup button being arranged on main frame.
Whether step S202, according to the enabled instruction receiving, there are system starting state data in decision operation system.
In the time that operating system starts for the first time, the system of can recording starts initialized result, that is, the status data that operating system has just been started is recorded as system starting state data.Thereby, when operating system each startup later, can first judge in system whether have system starting state data, can directly load to reduce initialization time if existed.
In one embodiment of the invention, system starting state data can comprise that peripheral hardware register data and the system of the current all register datas of CPU, initialization start internal storage data used etc.
Step S203, if there are system starting state data, is directly loaded on operating system to start the operating system by these system starting state data.
For example, the register data that can first load peripheral hardware is used for initialization peripheral hardware, state when making peripheral hardware be operated in system boot, secondly loading system is started shooting the internal storage data used in Installed System Memory, the register data that finally loads CPU (Central Processing Unit, central processing unit) recovers CPU state, wherein PC (the program counter in CPU register data, programmable counter) register data finally loads, and PC register finally recovers.Just be switched to the state of system startup when recovering system after PC register.
Step S204, if there are not system starting state data, starts the operating system, and performs step S205.
Particularly, can start the operating system according to existing os starting method, not repeat them here.
Step S205, it is complete whether decision operation system starts.
Step S206, if os starting is complete, records data after os starting as system starting state data and preserves.
Once it is complete that decision operation system starts, the data after os starting are preserved using as system starting state 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.
If operating system does not start complete, do not carry out record, until just record after os starting and preserve, accuracy and the integrality of the system starting state data that recorded to guarantee.
According to the starting method of the operating system of the embodiment of the present invention, status data while just startup by saved system, and the system state data that directly loading is kept in the time of each os starting, the status data before the new inquiry system shutdown of in the time of os starting duplicate removal the complex operations that the status data before shutdown is loaded are avoided, thereby each initialization time starting of minimizing system, promote user's experience sense.And, the status data while just startup due to a saved system, data volume is little, saves storage space.In addition,, because the system starting state data of preserving are the state of system while just having started, be pure faultless state, thereby guaranteed consistance and the stability of the each startup of operating system.
For realizing above-described embodiment, the present invention also proposes a kind of starter gear of operating system.
Fig. 3 is the schematic diagram of the starter gear of the operating system of one embodiment of the invention.As shown in Figure 3, this system comprises: receiver module 100, the first judge module 200, load-on module 300, startup module 400 and register 500.
Wherein, receiver module 100 is for receiving user's enabled instruction.The first judge module 200 is connected with receiver module 100, for whether having there are system starting state data in decision operation system.Load-on module 300 is connected with the first judge module 200, for when the first judge module 200 decision operation Installed System Memories are during in system starting state data, directly system starting state data is loaded on to operating system to start the operating system.Start module 400 and be connected with the first judge module 200, in the time there are not system starting state data in the first judge module 200 decision operation systems, start the operating system.Register 500 with start module 400 and be connected, for recording status data after os starting as system starting state data.
In one embodiment of the invention, system starting state data can comprise that the peripheral hardware register data of the current all register datas of CPU, initialization and system start internal storage data of using etc.Load-on module 300 is in the time loading, the register data that can first load peripheral hardware carrys out initialization peripheral hardware, state when making peripheral hardware be operated in system boot, secondly loading system starts the internal storage data of using in Installed System Memory, the register data that finally loads CPU recovers CPU state, wherein the PC register data in the register data of CPU finally loads, and finally recovers PC register, has just been switched to the state of system startup when recovering system after PC register.
Fig. 4 is the schematic diagram of the 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 register 500, the first judge module 200 and load-on module 300 respectively, for storage system status data.Like this, the system starting state data that register 500 can be recorded are stored to memory module 600, the first judge module 200 can directly judge in memory module 600 whether store system starting state data, and load-on module 300 can directly be loaded on operating system by the system starting state data of storage in memory module 600.
In an example of the present invention, this memory module 600 can be flash (a kind of storage chip), or this memory module also can be internal memory etc.In the present invention it is not limited, as long as its capacity is enough large, can storage system starting state data.
In one embodiment of the invention, this system also can comprise: the second judge module 700.Whether the second judge module 700 is connected to and starts between module 400 and register 500, start complete for decision operation system.If os starting is complete, records the status data after os starting and preserve.If operating system does not start complete, do not carry out record, until system starts complete accuracy and the integrality that just records to guarantee recorded status data.
The description of concrete deterministic process and loading procedure and said method embodiment is similar, herein for simplicity, repeats no more.
Should be understood that in embodiments of the present invention, operating system can be linux system, can be also other operating systems such as Windows system.Operating system also can be arranged in the terminal of any type, such as computing machine etc.Within the operating system of development also should be included in protection scope of the present invention equally, in the future.
According to the starter gear of the operating system of the embodiment of the present invention, at least there is following beneficial effect:
1, by direct loading system starting state data, the status data before the new inquiry system shutdown of in the time of os starting duplicate removal the complex operations that the status data before shutdown is loaded are avoided, thereby can reduce each initialization time starting of system, promote user's experience sense.
2, the status data while just startup due to a saved system, data volume is little, saves storage space.
3, because the system starting state data of preserving are the state of system while just having started, be pure faultless state, thereby guaranteed consistance and the stability of the each startup of operating system.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be 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 to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.
Claims (6)
1. a starting method for operating system, is characterized in that, comprising:
S1: receive user's enabled instruction;
S2: according to described enabled instruction, whether had system starting state data in decision operation system, wherein, described system starting state data comprise that all register datas, peripheral hardware register data and the system of CPU start required internal storage data;
S3: if there are described system starting state data, directly described system starting state data are loaded on to described operating system to start described operating system; And
S4: if there are not described system starting state data, start described operating system, and the data after described os starting are preserved as system starting state data, wherein,
If there are not described system starting state data, start described operating system;
Judge whether described operating system starts complete; And
If described os starting is complete, the data after described os starting are preserved as system starting state data.
2. the starting method of operating system according to claim 1, is characterized in that, described step S3 further comprises:
Load described peripheral hardware register data;
Described system is started in the internal memory that required internal storage data is loaded into described operating system;
Load all register datas of described CPU to recover CPU state.
3. the starting method of operating system according to claim 2, is characterized in that, finally loads the PC register data in all register datas of described CPU.
4. a starter gear for operating system, is characterized in that, comprising:
Receiver module, for receiving user's enabled instruction;
The first judge module, for whether having there are system starting state data in decision operation system, wherein, described system starting state data comprise that all register datas, peripheral hardware register data and the system of CPU start required internal storage data;
Load-on module, in the time having there are described system starting state data in described operating system, is loaded on described operating system to start described operating system by described system starting state data;
Start module, in the time there are not described system starting state data in described operating system, start described operating system;
The second judge module, is connected between described startup module and register, complete for judging whether described operating system starts; With
Described register, in the time there are not described system starting state data in described operating system, records data after described os starting as system starting state data.
5. the starter gear of operating system according to claim 4, is characterized in that, also comprises:
Memory module, for storing described system starting state data.
6. the starter gear of operating system according to claim 5, is characterized in that, described memory module is flash.
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 CN102360300A (en) | 2012-02-22 |
CN102360300B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488514A (en) * | 2013-09-30 | 2014-01-01 | 华为技术有限公司 | Starting method and central processing unit (CPU) |
CN107577501B (en) * | 2016-07-04 | 2021-02-23 | 深圳中电长城信息安全系统有限公司 | Starting 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 |
CN109353224B (en) * | 2018-09-30 | 2020-10-30 | 潍柴动力股份有限公司 | Electric automobile control method and whole electric automobile controller |
Citations (4)
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 |
CN101882085A (en) * | 2010-06-23 | 2010-11-10 | 迈普通信技术股份有限公司 | System starting method and embedded equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101620539B (en) * | 2008-07-01 | 2013-12-25 | 联想(北京)有限公司 | Method for start-up and shutdown and computer |
-
2011
- 2011-09-27 CN CN201110296422.4A patent/CN102360300B/en active Active
Patent Citations (4)
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 |
CN101882085A (en) * | 2010-06-23 | 2010-11-10 | 迈普通信技术股份有限公司 | System starting method and embedded equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102360300A (en) | 2012-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20080005462A1 (en) | Method of configuring non-volatile memory for a hybrid disk drive | |
US8086841B2 (en) | BIOS switching system and a method thereof | |
CN102360300B (en) | Starting method and device of operation system | |
US9424022B2 (en) | Method for updating firmware of an electronic device within a computer | |
EP2771785B1 (en) | Load boot data | |
KR102114109B1 (en) | Data storage device | |
US20070101191A1 (en) | Memory dump method, computer system, and memory dump program | |
US8402204B2 (en) | Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same | |
CN105389122B (en) | Method of operating a data storage device | |
TWI397007B (en) | System support storage and computer system | |
US9460004B2 (en) | Memory erasing method, memory controller, and memory storage apparatus | |
CN101916201A (en) | Android-based mobile terminal cold-boot method and device | |
WO2018045922A1 (en) | Backup power method and apparatus | |
GB2463809A (en) | Peripheral device operation method, peripheral device and host | |
US20140129759A1 (en) | Low power write journaling storage system | |
JP2010198252A (en) | Non-volatile memory device, write-in method for nonvolatile memory, and nonvolatile memory write-in program | |
US10747287B2 (en) | Backup power supply based configuration data application | |
CN102279757A (en) | Method and device for starting system program | |
CN201869296U (en) | Television | |
CN108228387B (en) | A kind of starting control method, electronic equipment and computer readable storage medium | |
US20140122854A1 (en) | Information processing apparatus and activation method therefor | |
CN106575224A (en) | Computing device with first and second operating systems | |
CN110297605B (en) | Method and device for effectively improving solid state disk firmware loading speed | |
CN114020308A (en) | Camera equipment upgrading method, device, equipment and medium | |
CN107436783A (en) | A kind of difference upgrade method, storage medium and mobile terminal for mobile terminal |
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. |