CN102810071B - Control method, control device and computer - Google Patents

Control method, control device and computer Download PDF

Info

Publication number
CN102810071B
CN102810071B CN201110142364.XA CN201110142364A CN102810071B CN 102810071 B CN102810071 B CN 102810071B CN 201110142364 A CN201110142364 A CN 201110142364A CN 102810071 B CN102810071 B CN 102810071B
Authority
CN
China
Prior art keywords
operating system
data
storage area
storage section
stored
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
Application number
CN201110142364.XA
Other languages
Chinese (zh)
Other versions
CN102810071A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201110142364.XA priority Critical patent/CN102810071B/en
Priority to US14/122,649 priority patent/US20140115308A1/en
Priority to PCT/CN2012/076266 priority patent/WO2012163275A1/en
Publication of CN102810071A publication Critical patent/CN102810071A/en
Application granted granted Critical
Publication of CN102810071B publication Critical patent/CN102810071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention provides a control method and a control device which are applied to a computer and the computer. According to the embodiment of the invention, the computer comprises a system memory comprising a first storage area and a second storage area; the first storage area comprises a first system storage part and a first shared data storage part; the second storage area comprises a second system storage part and a second shared data storage part; and the first and second shared data storage parts are overlapped with each other. The control method comprises the following steps of: loading a first operating system to the system memory; storing the first shared data to the first shared data storage part and storing the first system data of the first operating system to the first system storage part through the first operating system; loading a second operating system to the second system storage part through a second system switching order; and acquiring the first shared data from the second shared data storage part through the second operating system, and executing restoration operation according to the first shared data.

Description

Control method, control device and computing machine
Technical field
The present invention relates to and be applied to computer control method, control device and computing machine.Particularly, the present invention relates to for managing and the control method of the operating system of two in computer for controlling, control device and corresponding computing machine.
Background technology
Along with the development of science and technology, such as the calculation element of personal computer, portable computer, tablet computer and so on is widely used, and user for the requirement of computer installation also thereupon towards diversified trend development.Such as, when carry out frequently data processing time, wish that computing machine can have stronger processing power, to carry out high-speed computation.On the other hand, when not needing to carry out frequent operation, and wish computing machine can long-time standby time, then need computing machine to run in relatively energy-conservation mode.
In order to meet the different demands of user, propose the computing machine with the mutual different operating system of two characteristics.Such as, an operating system can have stronger processing power operating system, and another operating system can be processing power relatively poor, but the resource needed when running is less and power consumption is less operating system.But, when computing machine switches between the two operating systems, owing to needing first to be preserved scene by the operating system of current operation, the data etc. of the application program of such as current operation are stored in the storer of computing machine, restart another operating system, the and manually application program being stored into storer is before recovered by user in another operating system, cause carrying out switching the spent time between the two operating systems longer, and complex operation.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of control method of two operating systems be applied in management and computer for controlling, control device and computing machine accordingly, to solve the problem.
One embodiment of the invention provides a kind of control method, be applied to computing machine, its Computer comprises the Installed System Memory comprising and be divided into two storage areas, wherein, two storage areas are respectively the first storage area and the second storage area, first storage area comprises the first system storage area and first and shares data storage section, second storage area comprises second system storage area and second and shares data storage section, and it is overlapped that the first shared data storage section and second shares data storage section.Described control method comprises: the first operating system is loaded into Installed System Memory; By the first operating system, share data by first and be stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area; According to second system switching command, the second operating system is loaded into second system storage area; And share the shared data of acquisition first data storage section by the second operating system from second, and perform corresponding recovery operation according to the first shared data.
Another embodiment of the present invention provides a kind of control device, be applied to computing machine, its Computer comprises the Installed System Memory comprising and be divided into two storage areas, wherein, two storage areas are respectively the first storage area and the second storage area, first storage area comprises the first system storage area and first and shares data storage section, second storage area comprises second system storage area and second and shares data storage section, it is overlapped that first shared data storage section and second shares data storage section, control device comprises: the first loading unit, first operating system is loaded into Installed System Memory by configuration, first control module, configuration comes by the first operating system, shares data and is stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area by first, second loading unit, configuration comes according to second system switching command, and the second operating system is loaded into second system storage area, and second recovery unit, configuration shares data storage section from second by the second operating system to obtain first and share data, and shares data according to first and perform corresponding recovery operation.
Another embodiment of the present invention provides a kind of computing machine, comprise: Installed System Memory, comprise: the first storage area, comprise the first system storage area and first and share data storage section, second storage area, comprise second system storage area and second share data storage section, wherein first share data storage section and second share data storage section overlapped; Processing unit, comprising: the first load-on module, and the first operating system is loaded into Installed System Memory by configuration; First control module, configuration comes by the first operating system, shares data and is stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area by first; Second load-on module, configuration comes according to second system switching command, and the second operating system is loaded into second system storage area; And second recovers module, configuration shares data storage section from second by the second operating system to obtain first and share data, and shares data according to first and perform corresponding recovery operation.
By the scheme that the invention described above embodiment provides, computing machine can be made effectively to switch between the two operating systems, improve Installed System Memory utilization factor.In addition, by the data shared between the two operating systems are stored in the overlapped part of two storage areas included by internal memory, even if carried out systematic evaluation operation, operating system after shared data also can switch obtains easily, thus achieves data syn-chronization between the two operating systems.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in the description of embodiment below.Accompanying drawing in the following describes is only exemplary embodiment of the present invention.
Fig. 1 shows the exemplary illustrated figure of system for computer internal memory according to an embodiment of the invention.
Fig. 2 depicts the process flow diagram of control method according to an embodiment of the invention.
Fig. 3 is the exemplary block diagram that control device according to an embodiment of the invention is shown.
Fig. 4 is the exemplary block diagram of the control device illustrated according to another embodiment of the invention.
Fig. 5 is the exemplary block diagram that computing machine according to an embodiment of the invention is shown.
Embodiment
Hereinafter, the preferred embodiments of the present invention are described in detail with reference to accompanying drawing.Note, in the present description and drawings, there is substantially the same step and represent with the identical Reference numeral of element, and will be omitted the repetition of explanation of these steps and element.
In following examples of the present invention, terminal device refers to the electronic equipment that can be connected to server by network.The concrete form of terminal device includes but not limited to personal computer, portable computer, tablet computer, smart mobile phone etc.
Fig. 1 shows the exemplary illustrated figure of system for computer internal memory according to an embodiment of the invention.Fig. 2 depicts the process flow diagram of control method 200 according to an embodiment of the invention.Below, with reference to Fig. 1 and Fig. 2, control method according to an embodiment of the invention is described.
As shown in Figure 1, system for computer internal memory 100 comprises the first storage area 110 and the second storage area 120.First storage area 110 comprises the first system storage area 112 and first and shares data storage section.Second storage area 120 comprises second system storage area 122 and second and shares data storage section.First shares data storage section and second shares data storage section overlapped (as shown in the dash area of Fig. 1).
Particularly, in the example depicted in fig. 1, the memory address range of the memory address of system for computer internal memory 100 is 0-w.The memory address range of the memory address of the first storage area 110 is 0-n, the memory address range of the first system storage area 112 that wherein the first storage area comprises is 0-k, and the first memory address range sharing data storage section is (k+1)-n.The memory address range of the memory address of the second storage area 120 is (k+1)-w, wherein the second storage area comprises the memory address range of second system storage area 122 is (n+1)-w, and the second memory address range sharing data storage section is (k+1)-n.That is, it is overlapped that the first shared data storage section and second shares data storage section, and the memory address range of its memory address is (k+1)-n.
Control method 200 shown in Fig. 2 can be used for computing machine as shown in Figure 1.As shown in Figure 2, in step s 201, the first operating system is loaded into Installed System Memory, user is operated computing machine by the first operating system.Then in step S202, by the first operating system, share data by first and be stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area.System file etc. required when the first system data can comprise the first operating system.First shared data can comprise the first operating system and the second operating system operationally all may use data.First shares the data that data can be the generations when the first system runs.Such as, when user uses such as under the first operating system and so on text processing application when document being edited and wishes that the document also can be used or edit under the second operating system, the document can be shared data as first and be stored in first and share in data storage section.
According to an example of the present invention, in step s 201, the memory address range of data storage section can be shared to the first operating system notice the first system storage area and first, and when the first operating system is loaded into Installed System Memory, first operating system can be loaded into the first system storage area, so that carry out data storage operations by the first operating system.Such as in the example depicted in fig. 1, by BIOS when initialization system internal memory, notify the memory address range of the first operating system the first system storage area 112 and the first shared data storage section, and the first operating system is loaded in the first system storage area 112 of the first storage area 110, now, the second storage area 120 can be set to the first operating system invisible.
In step S202, between the first operating system runtime, when data are shared in existence first, according to the memory address range notifying first of the first operating system the shared data storage section in step s 201, data can be shared first and are stored in the first shared data storage section.In addition, according to the memory address range of the first system storage area, the first system data of the first operating system can be stored in described the first system storage area.As the example shown in Fig. 1, the first memory address range sharing data storage section is (k+1)-n, and the first shared data that its run duration can generate by the first operating system are stored in the Installed System Memory that address is (k+1)-n.On the other hand, the memory address range of the first system storage area 112 is 0-k, and it is in the Installed System Memory of 0-k that the first system data can be stored into address by the first operating system.
Alternatively, in step S202, can according to second system switching command, the memory address range of data storage section is shared according to the first system storage area and first, share data by the first operating system by first and be stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area.Particularly, second system switching command can indicate and computing machine is switched to the second operating system from the first operating system.Before receiving second system switching command, by the first operating system, the first system data and first being shared data is all stored in the first system storage area, and when receiving second system switching command, sharing data by the first operating system by stored first and transferring to the first shared data storage section from the first system storage area.
In addition, according to another example of the present invention, in step s 201, the first operating system can be loaded into the optional position in Installed System Memory.In step S202, when the first shared data will be stored by the first operating system, the memory address range of data storage section is shared in inquiry first, and shares the memory address range of data storage section according to first, removes first and shares data storage section.Then share data by the first operating system by first and be stored into the first shared data storage section.
Such as in the example depicted in fig. 1, by BIOS when initialization system internal memory, memory address range to the first operating system notice Installed System Memory 100 is 0-w, namely, Installed System Memory 100 is all visible for the first operating system, and the first operating system is loaded into the optional position in Installed System Memory 100.When the first shared data will be stored by the first operating system, by inquiry, first operating system can know that the first memory address range sharing data storage section is (k+1)-n, first operating system can remove the current data be stored in the Installed System Memory that address is (k+1)-n, such as by being stored in other storage areas to Installed System Memory of the data Replica in the Installed System Memory that address is (k+1)-n by current), and the generated by its run duration first shared data are stored in the Installed System Memory that address is (k+1)-n.
In addition, in step s 201, when first operating system is loaded into optional position in whole system internal memory, in step S202, can according to second system switching command, the memory address range of inquiry second system storage area, and according to the memory address range of second system storage area, remove the data in second system storage area by the first operating system.Then the first system data of the first operating system are stored into the first system storage area.
Next, in step S203, according to second system switching command, the second operating system is loaded into second system storage area.As mentioned above, second system switching command can indicate and computing machine is switched to the second operating system from the first operating system.Particularly, be stored into first and share data storage section and after the first system data of the first operating system are stored into the first system storage area being shared data by first by the first operating system, BIOS event can be triggered to wake BIOS up, and by BIOS, the second operating system is loaded in second system storage area.
Last in step S204, share acquisition first data storage section by the second operating system from second and share data, and perform corresponding recovery operation according to the first shared data.Particularly, can notify that the second operating system second system storage area and second shares the memory address range of data storage section.The memory address range of data storage section can be shared according to second, share acquisition first data storage section by the second operating system from second and share data, and perform corresponding recovery operation according to the first shared data.Such as, in the example depicted in fig. 1, when receiving second system switching command, BIOS notifies that the memory address range of the second system storage area 122 that the second operating system second storage area comprises is (n+1)-w, and the second memory address range sharing data storage section is (k+1)-n.Then the second operating system is loaded in the Installed System Memory that address is (n+1)-w, and obtained the first shared data be stored in the second shared data storage section by the second operating system, and perform corresponding recovery operation according to the first shared data.
In addition, according to another embodiment of the present invention, between the second operating system runtime, control method 200 shown in Fig. 2 also can comprise to be shared data by the second operating system and is stored into second and shares data storage section by second, and the second system data of the second operating system are stored into second system storage area.When receiving instruction and computing machine being switched to the first system switching command of the first operating system from the second operating system, by such as activating BIOS, and BIOS is utilized to call to be kept at the first system data in the first system storage area to start the first operating system.Share acquisition second data storage section by the first operating system from first and share data, and perform corresponding recovery operation according to the second shared data.
By the control method in the present embodiment, computing machine can be made effectively to switch between the two operating systems, improve Installed System Memory utilization factor.In addition, by the data shared between the two operating systems are stored in the overlapped part of two storage areas included by internal memory, even if carried out systematic evaluation operation, operating system after shared data also can switch obtains easily, thus achieves data syn-chronization between the two operating systems.
In addition, according to another embodiment of the present invention, computing machine also can comprise storer.When the first size sharing data is greater than the first shared data storage section, can share data by first is stored in storer, and its memory address being in memory kept at first shares in data storage section, when being switched to the second operating system with box lunch, data storage section is shared, to obtain preservation the first shared data in memory by the second operating system access second.
Alternatively, when the first operating system knows the memory address range of the first shared data storage section, data store timesharing is shared when the first size sharing data is greater than first, the memory address range of second system storage area can be inquired about, and adjust according to the first memory address range of size to the memory address range of first, second shared data storage section and second system storage area sharing data.Particularly, the memory address range of the size reduction second system storage area of data can be shared according to first, and correspondingly increase the memory address range that first shares data storage section and the second shared data storage section, be stored in the shared data storage section of first after adjustment to share data by the first operating system by first.Second system storage area after adjustment and the second memory address range sharing data storage section can be informed to the second operating system, can correctly load the second operating system when control is switched to the second operating system from the first operating system, and obtain the first shared data, to perform recovery operation by the second operating system from the shared data storage section of second after adjustment.
Below, the control device of one embodiment of the present of invention is described with reference to Fig. 3.Fig. 3 is the exemplary block diagram that control device 300 according to an embodiment of the invention is shown.In the present embodiment, control device 300 can be used for comprising the computing machine comprising the Installed System Memory being divided into two storage areas.Particularly, as shown in Figure 1, two storage areas are respectively the first storage area and the second storage area.First storage area can comprise the first system storage area and first and share data storage section.Second storage area comprises second system storage area and second and shares data storage section.It is overlapped that first shared data storage section and second shares data storage section.
As shown in Figure 3, the control device 300 of the present embodiment can comprise the first loading unit 310, first control module 320, second loading unit 330, second recovery unit 340.The unit of server 300 can perform each step/function of the control method in above-mentioned Fig. 2, therefore, succinct in order to describe, and no longer specifically describes.
Such as, the first operating system can be loaded into Installed System Memory by the first loading unit 310, and user is operated computing machine by the first operating system.First control module 320, by the first operating system, is shared data and is stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area by first.As mentioned above, system file etc. required when the first system data can comprise the first operating system.First shared data can comprise the first operating system and the second operating system operationally all may use data.First share data can time when the first system runs generation data.Such as, when user uses such as under the first operating system and so on text processing application when document being edited and wishes that the document also can be used or edit under the second operating system, the document can be shared data as first and be stored in first and share in data storage section.
According to an example of the present invention, the first loading unit 310 can notify the first operating system, and the first system storage area and first shares the memory address range of data storage section, and the first operating system is loaded into the first system storage area.When the first operating system, the first system storage area that first control module 320 can notify according to the first loading unit 310 and first shares the memory address range of data storage section, share data by the first operating system by first and be stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area.
Alternatively, first control module 320 can according to second system switching command, the memory address range of data storage section is shared according to the first system storage area and first, share data by the first operating system by first and be stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area.Particularly, second system switching command can indicate and computing machine is switched to the second operating system from the first operating system.Before receiving second system switching command, the first system data and first are shared data by the first operating system and are all stored in the first system storage area by the first control module 320, and when receiving second system switching command, the first control module 320 is shared data by the first operating system by stored first and is transferred to the first shared data storage section from the first system storage area.
In addition, according to another example of the present invention, the first operating system can be loaded into the optional position in Installed System Memory by the first loading unit 310.First control module 320 can comprise enquiry module, remove module and control store module.Particularly, when storing the first shared data by the first operating system, enquiry module can inquire about the memory address range that first shares data storage section.Remove the memory address range of the first shared data storage section that module can be inquired about according to enquiry module, remove first and share data storage section.After data storage section is shared in removing first, the memory address range of the first shared data storage section that control store module can be inquired about according to enquiry module, shares data by the first operating system by first and is stored into the first shared data storage section.
Such as in the example depicted in fig. 1, first loading unit 310 can be 0-w to the memory address range of the first operating system notice Installed System Memory 100, that is, Installed System Memory 100 is all visible for the first operating system, and the first operating system is loaded in Installed System Memory 100.When storing the first shared data by the first operating system, enquiry module can be inquired about and obtain the first memory address range sharing data storage section is (k+1)-n.Remove module and can remove the current data be stored in the Installed System Memory that address is (k+1)-n, such as, by being stored in other storage areas to Installed System Memory of the data Replica in the Installed System Memory that address is (k+1)-n by current).Remove module shared for first of the first system run duration generation data to be stored in the Installed System Memory that address is (k+1)-n.
In addition, when at the first loading unit 310 first operating system being loaded into the optional position in Installed System Memory, enquiry module also can according to second system switching command, the memory address range of inquiry second system storage area.Remove the memory address range of the second system storage area that module can be inquired about according to enquiry module, removed the data be stored in second system storage area by the first operating system.Control store module is the memory address range of second system storage area inquired about according to enquiry module of cocoa also, and the first system data of the first operating system are stored into the first system storage area.
Second operating system according to second system switching command, can be loaded into second system storage area by the second loading unit 330.As mentioned above, second system switching command can indicate and computing machine is switched to the second operating system from the first operating system.Second recovery unit 340 is shared acquisition first data storage section by the second operating system from second and is shared data, and performs corresponding recovery operation according to the first shared data.
By the control device in the present embodiment, computing machine can be made effectively to switch between the two operating systems, improve Installed System Memory utilization factor.In addition, by the data shared between the two operating systems are stored in the overlapped part of two storage areas included by internal memory, even if carried out systematic evaluation operation, operating system after shared data also can switch obtains easily, thus achieves data syn-chronization between the two operating systems.
Below, the control device of an alternative embodiment of the invention is described with reference to Fig. 4.Fig. 4 is the exemplary block diagram of the control device 400 illustrated according to another embodiment of the invention.In the present embodiment, control device 400 can be used for comprising the computing machine comprising the Installed System Memory being divided into two storage areas.Particularly, as shown in Figure 1, two storage areas are respectively the first storage area and the second storage area.First storage area can comprise the first system storage area and first and share data storage section.Second storage area comprises second system storage area and second and shares data storage section.It is overlapped that first shared data storage section and second shares data storage section.
Similar with the control device 300 shown in Fig. 3, in the diagram, control device 400 can comprise the first loading unit 410, first control module 420, second loading unit 430, second recovery unit 440., the first operating system can be loaded into Installed System Memory by the first loading unit 410, and user is operated computing machine by the first operating system.First control module 420, by the first operating system, is shared data and is stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area by first.Second operating system according to second system switching command, can be loaded into second system storage area by the second loading unit 430.Second recovery unit 440 is shared acquisition first data storage section by the second operating system from second and is shared data, and performs corresponding recovery operation according to the first shared data.
Control device 400 in the present embodiment also comprises the second control module 450 and the first recovery unit 460.Particularly, between the second operating system runtime, second control module 450 is shared data by the second operating system by second and is stored into the second shared data storage section, and the second system data of the second operating system are stored into second system storage area.In the present embodiment, the first loading unit 410 also can according to the first system switching command, and the first system data that operation is kept in the first system storage area are to start the first operating system.The first system switching command can indicate and computing machine is switched to the first operating system from the second operating system.First recovery unit 460 is shared acquisition second data storage section by the first operating system from first and is shared data, and performs corresponding recovery operation according to the second shared data.
By the control device in the present embodiment, computing machine can be made effectively to switch between the two operating systems, improve Installed System Memory utilization factor.In addition, when the first operating system or the second operating system, by the data shared between the two operating systems are stored in the overlapped part of two storage areas included by internal memory, even if carried out systematic evaluation operation, operating system after shared data also can switch obtains easily, thus the data syn-chronization achieved between the two operating systems, and the operating system after switching, by being stored in the shared data of part overlapped in Installed System Memory, can recover the application run in operating system before the handover rapidly.
In addition, according to another embodiment of the present invention, computing machine also can comprise storer.When the first size sharing data is greater than the first shared data storage section, first control module can be shared data by first and be stored in storer, and its memory address being in memory kept at first shares in data storage section, when being switched to the second operating system with box lunch, data storage section is shared, to obtain preservation the first shared data in memory by the second operating system access second.
Alternatively, when the first operating system knows the memory address range of the first shared data storage section, data store timesharing is shared when the first size sharing data is greater than first, first control module can inquire about the memory address range of second system storage area, and adjusts according to the first memory address range of size to the memory address range of first, second shared data storage section and second system storage area sharing data.Particularly, first control module can share the memory address range of the size reduction second system storage area of data according to first, and correspondingly increase the memory address range that first shares data storage section and the second shared data storage section, be stored in the shared data storage section of first after adjustment to share data by the first operating system by first.Second system storage area after adjustment and the second memory address range sharing data storage section can be informed to the second operating system, can correctly load the second operating system when control is switched to the second operating system from the first operating system, and obtain the first shared data, to perform recovery operation by the second operating system from the shared data storage section of second after adjustment.
Below, the computing machine of one embodiment of the present of invention is described with reference to Fig. 5.Fig. 5 is the exemplary block diagram that computing machine 500 according to an embodiment of the invention is shown.As shown in Figure 5, the computing machine 500 of the present embodiment can comprise Installed System Memory 510 and processing unit 520.Installed System Memory 510 can comprise the first storage area 512 and the second storage area 514.First storage area can comprise the first system storage area and first and share data storage section (as shown in unblanketed part in the first storage area 512).Second storage area comprises second system storage area and second and shares data storage section (as shown in unblanketed part in the second storage area 514).First shares data storage section and second shares data storage section overlapped (as shown by the shaded portion).Processing unit 520 can comprise the first load-on module 521, first control module 522, second load-on module 523 and second and recover module 524.The unit of computing machine 500 and/or module can perform each step/function of the control method in above-mentioned Fig. 2, therefore, succinct in order to describe, and no longer specifically describe.
Such as, the first operating system can be loaded into Installed System Memory by the first load-on module 521.First control module 522, by the first operating system, is shared data and is stored into the first shared data storage section, and the first system data of the first operating system are stored into the first system storage area by first.Second operating system according to second system switching command, can be loaded into second system storage area by the second load-on module 523.Second recovers module 524 shares the shared data of acquisition first data storage section by the second operating system from second, and performs corresponding recovery operation according to the first shared data.
By the computing machine in the present embodiment, computing machine can be made effectively to switch between the two operating systems, improve Installed System Memory utilization factor.In addition, when the first operating system or the second operating system, by the data shared between the two operating systems are stored in the overlapped part of two storage areas included by internal memory, even if carried out systematic evaluation operation, operating system after shared data also can switch obtains easily, thus the data syn-chronization achieved between the two operating systems, and the operating system after switching, by being stored in the shared data of part overlapped in Installed System Memory, can recover the application run in operating system before the handover rapidly.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Those skilled in the art can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
It should be appreciated by those skilled in the art that and can be dependent on design requirement and other factors carries out various amendment, combination, incorporating aspects and replacement to the present invention, as long as they are in the scope of appended claims and equivalent thereof.

Claims (17)

1. a control method, be applied to computing machine, wherein said computing machine comprises the Installed System Memory comprising and be divided into two storage areas, wherein, described two storage areas are respectively the first storage area and the second storage area, described first storage area comprises the first system storage area and first and shares data storage section, described second storage area comprises second system storage area and second and shares data storage section, it is overlapped that described first shared data storage section and described second shares data storage section, and described control method comprises:
First operating system is loaded into described Installed System Memory;
By described first operating system, share data by first and be stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area;
According to second system switching command, the second operating system is loaded into described second system storage area; And
From the described second shared data storage section, obtain described first by described second operating system and share data, and perform corresponding recovery operation according to the described first shared data; Afterwards according to the first system switching command, be kept at described the first system data in described the first system storage area before calling to start described first operating system.
2. control method as claimed in claim 1, is wherein saidly loaded into described Installed System Memory by described first operating system and comprises:
Notify that described the first system storage area and described first shares the memory address range of data storage section to described first operating system; And
Described first operating system is loaded into described the first system storage area.
3. control method as claimed in claim 2, wherein saidly to share data by first by described first operating system and be stored into described first and share data storage section, and the first system data of described first operating system are stored into described the first system storage area comprise:
According to described second system switching command, the memory address range of data storage section is shared according to described the first system storage area and described first, share data by described first operating system by first and be stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area.
4. control method as claimed in claim 2, wherein saidly to share data by first by described first operating system and be stored into described first and share data storage section, and the first system data of described first operating system are stored into described the first system storage area comprise:
Between described first operating system runtime, the memory address range of data storage section is shared according to described the first system storage area and described first, share data by described first operating system by first and be stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area.
5. control method as claimed in claim 1, wherein saidly to share data by first by described first operating system and be stored into described first and share data storage section and comprise:
When the described first shared data will be stored by described first operating system, inquire about the memory address range that described first shares data storage section;
Share the memory address range of data storage section according to described first, remove described first and share data storage section; And
Share data by described first operating system by described first and be stored into the described first shared data storage section.
6. control method as claimed in claim 5, the wherein said the first system data by described first operating system are stored into described the first system storage area and comprise:
According to described second system switching command, inquire about the memory address range of described second system storage area;
According to the memory address range of described second system storage area, remove the data in described second system storage area by described first operating system; And
The first system data of described first operating system are stored into described the first system storage area.
7. control method as claimed in claim 5, also comprises:
Share data store timesharing when the described first size sharing data is greater than described first, inquire about the memory address range of described second system storage area;
The memory address range of second system storage area according to the size reduction of the described first shared data, and correspondingly increase the memory address range that described first shares data storage section and the described second shared data storage section;
Sharing data by described first operating system by described first is stored in the shared data storage section of described first after adjustment; And
Described second system storage area after adjustment and the described second memory address range sharing data storage section are informed to described second operating system.
8. control method as claimed in claim 1, also comprises:
Share data by described second operating system by second and be stored into the described second shared data storage section, and the second system data of described second operating system are stored into described second system storage area;
According to the first system switching command, start described first operating system, and
From the described first shared data storage section, obtain described second by described first operating system and share data, and perform corresponding recovery operation according to the described second shared data.
9. control method as claimed in claim 1, wherein said computing machine also comprises storer, and described method also comprises:
When described first shares the size of data and be greater than described first and share data store timesharing, share data by described first and be stored in described storer, and its memory address is in which memory kept at described first shares in data storage section.
10. a control device, be applied to computing machine, wherein said computing machine comprises the Installed System Memory comprising and be divided into two storage areas, wherein, described two storage areas are respectively the first storage area and the second storage area, described first storage area comprises the first system storage area and first and shares data storage section, described second storage area comprises second system storage area and second and shares data storage section, it is overlapped that described first shared data storage section and described second shares data storage section, and described control device comprises:
First loading unit, the first operating system is loaded into described Installed System Memory by configuration, and according to the first system switching command, is kept at described the first system data in described the first system storage area to start described first operating system before operation;
First control module, configuration comes by described first operating system, shares data and is stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area by first;
Second loading unit, configuration comes according to second system switching command, and the second operating system is loaded into described second system storage area; And
Second recovery unit, configures and from the described second shared data storage section, obtains the described first shared data by described second operating system, and performs corresponding recovery operation according to the described first shared data.
11. control device as claimed in claim 10, wherein
To described first operating system, described first loading unit notifies that described the first system storage area and described first shares the memory address range of data storage section, and described first operating system is loaded into described the first system storage area.
12. control device as claimed in claim 11, wherein
Described first control module is according to described second system switching command, the memory address range of data storage section is shared according to described the first system storage area and described first, share data by described first operating system by first and be stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area.
13. control device as claimed in claim 11, wherein
When described first operating system, described first control module shares the memory address range of data storage section according to described the first system storage area and described first, share data by described first operating system by first and be stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area.
14. control device as claimed in claim 10, wherein said first control module comprises:
Enquiry module, configuration, when storing the described first shared data by described first operating system, inquires about the memory address range that described first shares data storage section;
Remove module, configuration carrys out the memory address range sharing data storage section according to described first, removes described first and shares data storage section; And
Control store module, configures, by described first operating system, the described first shared data is stored into the described first shared data storage section.
15. control device as claimed in claim 14, wherein
Described enquiry module also configures according to described second system switching command, inquires about the memory address range of described second system storage area;
Described removing module also configures the memory address range according to described second system storage area, removes the data in described second system storage area by described first operating system; And
Described control store module also configures and the first system data of described first operating system is stored into described the first system storage area.
16. control device as claimed in claim 10, also comprise:
Second control module, configures, by described second operating system, the second shared data is stored into the described second shared data storage section, and the second system data of described second operating system are stored into described second system storage area;
First recovery unit, configures and from the described first shared data storage section, obtains the described second shared data by described first operating system, and performs corresponding recovery operation according to the described second shared data.
17. 1 kinds of computing machines, comprising:
Installed System Memory, comprises:
First storage area, comprises the first system storage area and first and shares data storage section,
Second storage area, comprises second system storage area and second and shares data storage section,
It is overlapped that wherein said first shared data storage section and described second shares data storage section;
Processing unit, comprising:
First load-on module, the first operating system is loaded into described Installed System Memory by configuration, and according to the first system switching command, is kept at described the first system data in described the first system storage area to start described first operating system before operation;
First control module, configuration comes by described first operating system, shares data and is stored into the described first shared data storage section, and the first system data of described first operating system are stored into described the first system storage area by first;
Second load-on module, configuration comes according to second system switching command, and the second operating system is loaded into described second system storage area; And
Second recovers module, configures and from the described second shared data storage section, obtains the described first shared data by described second operating system, and performs corresponding recovery operation according to the described first shared data.
CN201110142364.XA 2011-05-30 2011-05-30 Control method, control device and computer Active CN102810071B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201110142364.XA CN102810071B (en) 2011-05-30 2011-05-30 Control method, control device and computer
US14/122,649 US20140115308A1 (en) 2011-05-30 2012-05-30 Control method, control device and computer system
PCT/CN2012/076266 WO2012163275A1 (en) 2011-05-30 2012-05-30 Control method, control device and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110142364.XA CN102810071B (en) 2011-05-30 2011-05-30 Control method, control device and computer

Publications (2)

Publication Number Publication Date
CN102810071A CN102810071A (en) 2012-12-05
CN102810071B true CN102810071B (en) 2015-01-28

Family

ID=47233780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110142364.XA Active CN102810071B (en) 2011-05-30 2011-05-30 Control method, control device and computer

Country Status (1)

Country Link
CN (1) CN102810071B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914400A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Memory allocation method and electronic device
CN104077185B (en) * 2013-03-27 2017-12-29 联想(北京)有限公司 A kind of switching method and electronic equipment of shared equipment
CN104516747A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 System switching method and electronic device
US9645864B2 (en) 2014-02-06 2017-05-09 Intel Corporation Technologies for operating system transitions in multiple-operating-system environments
CN104239165A (en) * 2014-09-01 2014-12-24 深圳市中兴移动通信有限公司 Mobile terminal as well as method and device for treating tasks of two systems of mobile terminal
CN104978231A (en) * 2015-07-10 2015-10-14 上海斐讯数据通信技术有限公司 Multisystem device based on internal storage partitions and loading and switching method thereof
CN105302738B (en) * 2015-12-09 2018-09-11 北京东土科技股份有限公司 A kind of memory allocation method and device
CN107229452A (en) * 2016-03-23 2017-10-03 单正建 A kind of mobile intelligent terminal operating system
CN107193651B (en) * 2017-04-18 2019-11-12 广州视源电子科技股份有限公司 Dual-system memory sharing method and device
CN115080158B (en) * 2021-03-12 2024-07-09 Oppo广东移动通信有限公司 Interface display method, device, terminal equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1821539A2 (en) * 2006-02-15 2007-08-22 Matsushita Electric Industrial Co., Ltd. Decoding apparatus and integrated circuit
CN101615123A (en) * 2008-06-26 2009-12-30 比亚迪股份有限公司 A kind of bootstrap technique of mobile terminal operating system and portable terminal
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
CN101847105A (en) * 2009-03-26 2010-09-29 联想(北京)有限公司 Computer and internal memory sharing method of a plurality of operation systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1821539A2 (en) * 2006-02-15 2007-08-22 Matsushita Electric Industrial Co., Ltd. Decoding apparatus and integrated circuit
CN101615123A (en) * 2008-06-26 2009-12-30 比亚迪股份有限公司 A kind of bootstrap technique of mobile terminal operating system and portable terminal
CN101667140A (en) * 2008-09-03 2010-03-10 联想(北京)有限公司 Method, device and system for controlling switching of operating systems
CN101847105A (en) * 2009-03-26 2010-09-29 联想(北京)有限公司 Computer and internal memory sharing method of a plurality of operation systems

Also Published As

Publication number Publication date
CN102810071A (en) 2012-12-05

Similar Documents

Publication Publication Date Title
CN102810071B (en) Control method, control device and computer
RU2686673C1 (en) Device and method of terminal control and terminal
Machida et al. Modeling and analysis of software rejuvenation in a server virtualized system with live VM migration
CN103324500B (en) A kind of method and device reclaiming internal memory
CN101937363B (en) Mobile terminal operating mode switching method and mobile terminal
CN106371889B (en) Method and device for realizing high-performance cluster system of scheduling mirror image
CN102841807B (en) Control method, control device and computer system
CN110659246B (en) Container-based file mounting method and device and electronic equipment
EP2525291A1 (en) Application program management method and device
CN103810020A (en) Virtual machine elastic scaling method and device
CN103309737A (en) Method and device for switching operating system
CN105224391A (en) A kind of online backup method and system of virtual machine
CN104488291A (en) Methods and apparatuses for facilitating utilization of cloud services
CN105094948A (en) System mirror image file updating method of virtual machine, cloud data center and system
EP3635547B1 (en) Systems and methods for preventing service disruption during software updates
US10289446B1 (en) Preserving web browser child processes by substituting a parent process with a stub process
CN103500130A (en) Method for backing up dual-computer hot standby data in real time
CN109726007B (en) Container arrangement quota management method and device and container arrangement system
CN103257700B (en) The power-economizing method of a kind of android system and device
CN105426244A (en) Application process management method and application process management device
EP2738712B1 (en) Embedded multimedia card partitioned storage space adjustment method and terminal
CN114615340B (en) Request processing method and device, computer equipment and storage device
CN107783633A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN103019833A (en) Terminal equipment and method for enabling same to support quick switching of operating systems
US20240236175A9 (en) Methods, apparatuses, and devices for lease transfer between master and slave replicas

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