Invention content
In view of the above-mentioned problems, the present invention is intended to provide a kind of multisystem activation system and method based on mobile terminal,
Heavy burden proxy module is set in main system subregion, and in this way when starting main system, nucleus module performs all operations that is over
After (including high input-output operation and Fei Gao input-output operations), control heavy burden proxy module only carries out high input and output behaviour
Make, to reduce the startup time of system to be launched in net system switching process.
Technical solution provided by the invention is as follows:
A kind of multisystem based on mobile terminal starts method system, and the multisystem activation system includes:Store mould
Block, scheduler module, nucleus module and heavy burden proxy module, wherein, the memory module includes multiple system partitionings, and every
Corresponding system data is prestored in a system partitioning;The multiple system partitioning includes a main system subregion, described
Scheduler module, nucleus module and heavy burden proxy module are all disposed in the main system subregion;
The scheduler module obtains user instruction and generates control instruction, and according to the control instruction control core later
The operation of module and heavy burden proxy module;
Nucleus module is connect with the scheduler module, when starting the main system in main system subregion, the nucleus module
The control instruction that scheduler module is sent is received, performs high input-output operation and Fei Gao input-output operations, and then described in startup
Main system;When being switched to system to be launched from the main system, the nucleus module receives the control that scheduler module is sent and refers to
It enables, terminates high input-output operation and Fei Gao input-output operations and exit the main system, and opened in the system to be launched
After dynamic, the nucleus module is restarted under the control instruction of the scheduler module, after the execution high input-output operation temporarily
Stop waiting for further control instruction;
Heavy burden proxy module is connect with the scheduler module, when starting the main system in main system subregion, the heavy burden
Proxy module receives the control instruction that scheduler module is sent, and performs the further control of pause waiting after the high input-output operation
System instruction;When being switched to system to be launched from the main system, the heavy burden proxy module receives the control that scheduler module is sent
System instruction performs non-high input-output operation, and the system to be launched starts.
In the technical program, when main system starts, nucleus module performs all behaviour under the control of scheduler module
Make (including high input-output operation and Fei Gao input-output operations), to start main system;At the same time, scheduler module control is negative
Weight proxy module suspends after corresponding high input-output operation has been performed, in this way, when needing carry out system switching, only needs
Scheduler module is controlled to perform the non-high input-output operation in system to be launched, you can realize the startup of system to be launched, save
About system to be launched performs the high input-output operation required time in start-up course, so as to accelerating system to be launched
Startup speed.
Preferably, the control instruction includes:Enabled instruction, pause instruction, instruction of restarting and END instruction;Wherein,
The enabled instruction includes the high input-output operation enabled instruction of nucleus module, the high input-output operation of heavy burden proxy module starts
The non-high input-output operation of instruction, the non-high input-output operation enabled instruction of nucleus module and heavy burden proxy module starts
Instruction;The pause instruction includes nucleus module pause instruction and heavy burden proxy module pause instruction;The instruction of restarting includes
Nucleus module instruction of restarting and heavy burden proxy module instruction of restarting;The END instruction includes nucleus module END instruction and heavy burden
Proxy module END instruction.
In the technical program, the high input-output operation mentioned here is in system (main system, system to be launched)
The time-consuming operation of those in start-up course, the high input-output operation as described in performing include the loading system letter in loading main system
Breath, software information etc.;It is that those take less behaviour relative to high input-output operation to perform the non-high input-output operation
Make, personal data in the system to be launched as described in loading etc..
A kind of multisystem starts method, and the multisystem starts method and is applied to as described in claim 1-3 any one
Multisystem activation system, specifically include following steps:
Scheduler module control core module performs high input-output operation and Fei Gao input-output operations start main system;
Pause waits for the further of scheduler module after scheduler module control heavy burden proxy module performs high input-output operation
Control instruction;
Triggering system handover event;
Scheduler module control core module terminates high input-output operation and Fei Gao input-output operations and exits main system;
Scheduler module control heavy burden proxy module performs non-high input-output operation;
System to be launched starts.
Preferably, after the system for needing to be switched to starts, dispatching control module restarts nucleus module, the core mould
The further control instruction that block is restarted and pause waits for scheduler module after high input-output operation is performed.
In the technical program, it can be seen that effect is in fact in whole process for nucleus module and heavy burden proxy module
It is identical, be all by performing corresponding high input-output operation and Fei Gao input-output operations, so as to start need it is to be started
System, the startup of either aforementioned main system and the startup of system to be launched are all in this way.In the process entirely started
In, after nucleus module, which performs all operations, starts main system, while heavy burden proxy module is allowed to perform accordingly again
High input-output operation, in this way, when system needs to switch over, heavy burden proxy module only needs to perform in corresponding system
Non- high input-output operation, you can start system to be launched.And after system to be launched startup, and the core exited before allowing
Core module performs high input-output operation, in this way, when system needs further switching system, it is only necessary to by the heavy burden generation of front
It is defeated that reason module terminates to exit corresponding non-high input in the startup that system to be launched allows nucleus module execution needs to be switched to simultaneously
Go out operation, thereby realize the further switching of system.
Preferably, system handover event is triggered, is specifically included:Setting information selection in main system needs to be switched to
System to be launched.
In the technical program, in general, main system receives system switching and performs, and the scheduler module for controlling it internal is held
The corresponding operation of row, realizes the switching of system.
Preferably, whether occurred by scheduler module monitoring system handover event, if system handover event occurs, dispatched
Module sends control instruction to nucleus module and heavy burden proxy module, and control is switched to system to be launched.
Multisystem activation system and method provided by the invention based on mobile terminal, can bring following advantageous effect:
In the present invention, in the start-up course of main system, nucleus module performs all operation, after heavy burden proxy module
It performs and has only carried out high input-output operation;The switching action of system is controlled by scheduler module, is responsible for coordination nucleus module and is moved back
Go out the step that main system starts system to be launched with the agency that bears a heavy burden;In this way, when needing to start system to be launched, mould is acted on behalf of in heavy burden
Block only needs to perform non-high input-output operation, avoids high input-output operation and is greatly improved the startup of system to be launched
Speed substantially increases the switch speed of the multisystem designed based on multi partition.
Specific embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below
The specific embodiment of the present invention.It should be evident that the accompanying drawings in the following description is only some embodiments of the present invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing, and obtain other embodiments.
It is the structure diagram of the multisystem activation system provided by the invention based on mobile terminal as shown in Figure 1, from figure
In as can be seen that the system include:Memory module 100, scheduler module 111, nucleus module 112 and heavy burden proxy module
113.Wherein:
Memory module 100 includes multiple system partitionings, and prestores corresponding system data in each system partitioning.
In the present invention, multiple system partitionings include a main system subregion 110, multiple system partitionings, as the first system subregion 120,
Second system subregion 130 etc., and scheduler module 111, nucleus module 112 and heavy burden proxy module 113 are all disposed within main system
In subregion 110.When mobile terminal-opening, in general, system default starts main system, then switches further according to user instruction
In the subsystem included into corresponding system partitioning.Specifically, include system data information, software data in main system
Information and setting information etc.;System partitioning includes personal data etc., such as installation third-party application in systems, wallpaper and
The data such as the setting informations such as theme, user file photo.When mobile terminal-opening, the various data of internal system are performed to open
Corresponding system is moved, in addition, it is known that during system starts, has some comparatively time-consuming operations and one
A little time-consuming relatively small number of operations, i.e., high input-output operation and Fei Gao input-output operations, in practical applications, specifically how
Principal series will will such as be loaded depending on actual conditions by distinguishing high input-output operation and Fei Gao input-output operations mentioned here
System information settings in system are high input-output operation, and the subsystem third-party application in loading system subregion is set as non-
High input-output operation, we are not construed as limiting this.From the above description, it will be seen that in subsystem in system partitioning only
Include some personal data, and in general these operations are all non-high input-output operations, point in activation system subregion
The high input-output operations such as the system file that system needs load are included in main system, in this way, nucleus module 112 and heavy burden
Proxy module 113, which alternates, loads the high input-output operation, achieves the object of the present invention.
Scheduler module 111 obtains user instruction and generates control instruction, and according to control instruction control core module later
112 and the operation of heavy burden proxy module 113.Specifically, the system switching command that user instruction, that is, user said herein sends out,
And in system work process, system monitors the instruction for whether having switching system by the scheduler module 111.Control instruction is specific
Including:Enabled instruction, pause instruction, instruction of restarting and END instruction;Wherein, it is defeated to include the input of nucleus module height for enabled instruction
Go out to operate enabled instruction, the high input-output operation enabled instruction of heavy burden proxy module, the non-high input-output operation of nucleus module open
Dynamic instruction and the non-high input-output operation enabled instruction of heavy burden proxy module;Pause instruction include nucleus module pause instruction and
Heavy burden proxy module pause instruction;Instruction of restarting includes nucleus module instruction of restarting and heavy burden proxy module instruction of restarting;Terminate
Instruction includes nucleus module END instruction and heavy burden proxy module END instruction.
Nucleus module 112 is connect with scheduler module 111, and the control for being mainly used for receiving the transmission of scheduler module 111 refers to
It enables, performs corresponding operation, starting needs system to be started.Specifically, when needing to start the principal series in main system subregion 110
During system, nucleus module 112 receives the high input-output operation enabled instruction of nucleus module and the nucleus module that scheduler module 111 is sent
Non- high input-output operation enabled instruction performs high input-output operation and Fei Gao input-output operations in main system, with reality
The startup of existing main system;When from main system be switched to system to be launched (e.g., be switched to included in the first system subregion 120 point
The subsystem included in system, second system subregion 130 when) when, due to needing to exit main system at this time into system to be launched,
Thus nucleus module 112 receives the nucleus module END instruction that scheduler module 111 is sent, and terminates high input-output operation and exits
Main system, and after system to be launched startup, nucleus module instruction of restarting that nucleus module 112 is sent in scheduler module 111
Control under restart, and after high input-output operation is performed, scheduler module 111 sends nucleus module pause instruction pause core
112 current operation of module simultaneously waits for further control instruction.
Heavy burden proxy module 113 is connect with scheduler module 111, when starting the main system in main system subregion 110, is born
Weight proxy module 113 receives the high input-output operation enabled instruction of heavy burden proxy module that scheduler module 111 is sent, and performs high defeated
Enter to receive the further control of the current waiting of heavy burden proxy module pause instruction pause that scheduler module 111 is sent after output operates
Instruction;When being switched to system to be launched from main system, heavy burden proxy module 113 receives scheduler module 111 and sends the agency that bears a heavy burden
The non-high input-output operation enabled instruction of module performs non-high input-output operation, and system to be launched starts.
In the above embodiment of the present invention, in the start-up course of main system, nucleus module performs all operations, bears a heavy burden
It is performed after proxy module and has only carried out high input-output operation;The switching action of system is controlled by scheduler module, is responsible for coordination
Nucleus module exits the step that main system starts system to be launched with the agency that bears a heavy burden;In this way, when needing to start system to be launched,
Heavy burden proxy module only needs to perform non-high input-output operation, avoid high input-output operation be greatly improved it is to be launched
The startup speed of system substantially increases the switch speed of the multisystem designed based on multi partition.
More than, we describe the function of each module respectively, during we must work to multisystem activation system below
Flow makes introduction, as shown in Fig. 2, multisystem as provided by the invention starts the flow diagram of method, applied to above-mentioned
Multisystem activation system, specifically include following steps:
111 control core module 112 of S1 scheduler modules performs high input-output operation and Fei Gao input-output operations start
Main system.Herein, since whether the multisystem activation system is occurred by 111 monitoring system handover event of scheduler module, if
System handover event occurs, that is, needs to be switched to system to be launched, then scheduler module 111 sends control instruction to nucleus module
112 and heavy burden proxy module 113, start to perform step S1.
S2 scheduler modules 111 control heavy burden proxy module 113 to perform pause waiting scheduler module after high input-output operation
111 further control instruction.Herein, when nucleus module 112 performs the high input-output operation in main system and non-of being over
After high input-output operation starts main system, scheduler module 111 controls heavy burden proxy module 113 to perform corresponding height immediately
Input-output operation and the further control instruction of pausing operation waiting after high input-output operation has been performed.
S3 triggers system handover event.Herein, need what is be switched to specific reference to the setting information selection in main system
System to be launched, setting information here include the user instruction that user sends.
111 control core module 112 of S4 scheduler modules terminates high input-output operation and exits main system;
S5 scheduler modules 111 control heavy burden proxy module 113 to perform non-high input-output operation;
S6 systems to be launched start.
In addition, after step S6 has been performed, dispatching control module restarts nucleus module 112, and nucleus module 112 is restarted simultaneously
Pause waits for the further control instruction of scheduler module 111 after high input-output operation is performed, with this nucleus module 112
It is exchanged with heavy burden proxy module 113.
As a complete embodiment, we are switched to the first system subregion with system from main system subregion 110 below
For 120, the above process is discussed in detail:
Mobile terminal-opening, main partition start, and start the scheduler module 111 in main partition, and scheduler module 111 sends core
The high input-output operation enabled instruction of module and the non-high input-output operation enabled instruction of nucleus module are controlled to nucleus module 112
Nucleus module 112 processed performs high input-output operation and Fei Gao input-output operations, loads system file, software in main partition
File and setting information etc. complete the startup of main system;At the same time, scheduler module 111 sends the input of heavy burden proxy module height
Output operation enabled instruction after heavy burden proxy module 113 has performed high input-output operation, is adjusted to heavy burden proxy module 113
Spend module 111 and then send heavy burden proxy module pause instruction pause heavy burden proxy module 113, wait for scheduler module 111 into
One step instructs.
Then, the setting information in main partition selects subregion to be launched, if what is selected here is the first system point
Area's the first system subregion 120, then the transmission nucleus module END instruction of scheduler module 111 to nucleus module 112 terminate current operation
And main system is exited, while scheduler module 111 sends the non-high input-output operation enabled instruction of heavy burden proxy module to generation of bearing a heavy burden
Module 113 is managed, such heavy burden proxy module 113 performs the non-high input-output operation in the first system subregion 120, starts first
Subsystem in system partitioning the first system subregion 120.
Later, scheduler module 111 sends nucleus module instruction of restarting to nucleus module 112, restarts nucleus module 112, together
When send the high input-output operation enabled instruction of nucleus module to nucleus module 112, nucleus module 112 performs high input and output and refers to
Scheduler module 111 and transmission nucleus module pause instruction to nucleus module 112 suspend currently to wait for controlling in next step and refer to after order
It enables, at this point, nucleus module 112 and heavy burden proxy module 113 exchange functional location.
At this point, if scheduler module 111 receives further system switching command, need system being switched to second system
Subregion 130, then the transmission heavy burden proxy module END instruction of scheduler module 111 to heavy burden proxy module 113 terminate current operation simultaneously
Exit the subsystem in the first system subregion 120;Scheduler module 111 sends the non-high input-output operation of nucleus module and starts simultaneously
To nucleus module 112, nucleus module 112 starts after performing the non-high input and output instruction in second system subregion 130 for instruction
Subsystem in second system subregion 130.After starting the subsystem in second system subregion 130, scheduler module 111 is sent out again
The high input-output operation enabled instruction of heavy burden proxy module is sent to heavy burden proxy module 113, heavy burden proxy module 113 performs high defeated
Transmission heavy burden proxy module pause instruction to heavy burden proxy module 113 suspends currently scheduler module 111 again after entering output order
Wait for next step control instruction.
The subsystem being switched in the first partition system from the main system in more than main partition is again in the second partition system
Subsystem during as can be seen that in whole process, nucleus module 112 and 113 function of heavy burden proxy module are identical
, the opportunity for differing only in execution is different, and two modules alternate executions, mutual between quickening mobile terminal multisystem
Switching reduces the startup time of switching system.
In a particular embodiment, pass through order between scheduler module 111, nucleus module 112 and heavy burden proxy module 113
The methods of row parameter, environmental variance, system file, socket (socket) device file, property (attribute), communicates,
It is detailed below:
Mobile terminal-opening, scheduler module 111 is operated using fork (establishment) to be started 112 correlation of nucleus module and records it
Number (pid);Then, scheduler module 111 performs execute (performing file), starts the high input-output operation of nucleus module 112
With non-high input-output operation, nucleus module 112 starts master after having performed high input-output operation and Fei Gao input-output operations
System;At the same time, scheduler module 111 starts heavy burden proxy module 113, and heavy burden proxy module 113 performs high input and output behaviour
Suspend after work and wait for further dispatch command.
When scheduler module 111 receives switching system order, operated using kill (end) and terminate nucleus module 112 and move back
Go out current system, while the methods of the use socket of scheduler module 111 (socket) and property (attribute), notice is born a heavy burden generation
Reason module 113 jumps out the non-high input-output operation in the system that pause execution needs are switched to, to start new system.
After needing the system being switched to startup, scheduler module 111 restarts nucleus module 112, it is made to perform high input defeated
Its grade Wait Order is enabled after going out operation, nucleus module 112 is exchanged with 113 identity of heavy burden proxy module at this time.
It is noted that it is above said need the system that is switched to be it is previously mentioned to the first partition system in point
Subsystem in system or the second partition system waits for.
In the above embodiment of the present invention, in the start-up course of main system, the switching action of system is by scheduler module control
System is responsible for coordinating the step that nucleus module exits main system and heavy burden agency starts system to be launched;In this way, it is treated needing to start
During activation system, heavy burden proxy module only needs to perform non-high input-output operation, avoids high input-output operation and is able to greatly
Width improves the startup speed of system to be launched, that is, substantially increases the switch speed of the multisystem designed based on multi partition.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention
Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.