The content of the invention
The present invention solves the technical problem of provide a kind of application method of dual operating systems, storage device and intelligenceTerminal, the problem of can solve the problem that the operating system of existing intelligent terminal power consumption is big in the dormant state, and cruising time is short.
In order to solve the above technical problems, one aspect of the present invention is:A kind of making for dual operating systems is providedUse method.
Wherein, methods described includes:
Receive dormancy instruction;
First operating system responds the dormancy instruction and out of service;
Second operating system starts after first operating system is out of service, and enters park mode, and identicalUnder pattern, the operation power of second operating system is less than the operation power of first operating system.
Wherein, into also including after park mode:
Receive and terminate dormancy instruction, second operating system exits, and first operating system restarts and run.
Wherein, the method for the first operating system response dormancy instruction includes:
The current status data of first operating system is stored, and the current status data includes the number of associated processAccording to, hardware data and system state data.
Wherein, the data of the associated process include receiving message and/or the data of incoming call by network.
Wherein, the method into park mode includes:
Close line related;
Every preset time, second operating system detects and updates the state of the associated process.
Wherein, the line related includes program storage power supply, WIFI/ bluetooth modules power supply and mobile communications networkOne or more in modular power source.
Wherein, the method for the state that second operating system detects and updates the associated process includes:
Open line related;
Judge whether there is message to be received and/or incoming call in the associated process;
When being, by the message to be received or to be electronically stored at default storage region and send prompting, phase is turned offPowered-down source;
When no, line related is directly closed.
Wherein, the default storage region is the public visit area of first operating system and second operating systemDomain.
In order to solve the above technical problems, the technical scheme that the present invention also uses is:A kind of storage device is provided.
Wherein, it is stored with a plurality of instruction, and the instruction is suitable to be loaded by processor and performed any of the above-described described sideMethod.
In order to solve the above technical problems, the technical scheme that the present invention also uses is:A kind of intelligent terminal is provided.
Wherein, including:
Processor, it is adapted for carrying out each instruction;And
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded by processor and performed any of the above-describedDescribed method.
The beneficial effects of the invention are as follows:The present invention is by when intelligent terminal carries out dormancy, introducing one compared with the first operation systemThe second low operating system of system operation power replaces first operating system, due to the power of the second operating system in itselfLow, this just substantially reduces the power consumption of intelligent terminal in the dormant state, is advantageous to improve the cruising time of intelligent terminal.
Embodiment
Fig. 1, the flow chart of the application method preferred embodiment of a dual operating systems of the invention are refer to, methods described includesStep
S1, receive dormancy instruction;
S2, the first operating system respond the dormancy instruction and out of service;
S3, the second operating system start after the first operating system is out of service, and enter park mode, and in identical moldsUnder formula, the operation power of second operating system is less than the operation power of first operating system.
Fig. 2 and Fig. 3 are refer to, Fig. 2 is the running status signal of each several part when system enters park mode in the prior artFigure;The running status schematic diagram of each several part when system enters park mode in the application method of Fig. 3 dual operating systems of the present invention.It is existingHave in technology, after intelligent terminal enters park mode, although some processes are closed, operating system is constantly in operation shapeState, and it is feature-rich because of current intelligent terminal, and its operating system is bulky, in intelligent terminal dormancy, that is, turns off oneRun after a little processes, operating system also has larger operation power consumption, and the cruising time of intelligent terminal can be affected naturally.AndTechnical scheme is then after intelligent terminal enters resting state, is replaced with the second relatively low operating system of a power consumptionThe first very big operating system of power consumption (being the first operating system of the prior art), due to second operating system in itselfPower it is low, this is greatly lowered the power consumption of intelligent terminal in the dormant state, be advantageous to improve intelligent terminal continuation of the journey whenBetween.
Specifically, in step sl, the dormancy instruction of intelligent terminal for reception can be that user leads in real time according to current stateIt is dynamic sending or set in advance.The dormancy instruction set in advance can be when intelligent terminal running hoursWhen length reaches preset duration (such as 5 hours, 8 hours), the default dormancy instruction of intelligent terminal for reception enters resting state;Can be withIt is that intelligent terminal enters resting state, such as sets daily noon lunch break (such as when current time is the time of user preset12:30-13:30) intelligent terminal enters resting state, then is 12 when the time:When 30, the default dormancy instruction of intelligent terminal for receptionInto resting state.
In step s 2, the first operating system responds the dormancy instruction and out of service, and before out of service, CPU willThe current status data of first operating system described in data storage is preserved to program storage, afterwards, first operationSystem is out of service., can be in the first operating system weight because the data in program storage will not lose after a loss of powerAfter newly starting and run, the data before entering resting state are called, are easy to user to continue the work before dormancy.
Further, the current status data includes data, hardware data and the system state data of associated process.InstituteIt can be what user pre-set according to their needs to state associated process data, can also be the process of intelligent terminal acquiescence.In one embodiment, the data of the associated process include receiving message and/or the data of incoming call by network;Such as, by mutualNetworking receives the process of Email, receives the process of social account message (as received the process of wechat message, receiving QQ messageProcess), pass through mobile communication network receive short message process and incoming call answering process in one or more;Further, it is only to receive entering for some or some wechats or QQ friends message that the process for receiving wechat or QQ message, which can also be,Journey.
In step s3, the second operating system starts after first operating system is out of service, and enters dormancy mouldFormula.After first operating system is out of service, the second operating system data of the CPU by storage in program memoryData storage is copied to, and runs second operating system, second operating system can only have a kind of pattern (asPark mode), various modes can also be included, the type and quantity of associated process corresponding to the various modes are different, meetThe different needs of user.
In the present embodiment, second operating system only has a pattern, i.e. park mode.Fig. 4 is refer to, Fig. 4 isSecond operating system described in Fig. 1 enters the flow chart of the method preferred embodiment of park mode, and methods described includes:
S31, close line related;
In step S31, the line related of closing includes program storage power supply, WIFI/ bluetooth modules power supply and shiftingOne or more in dynamic communication network module power supply.Due to program storage, WIFI/ bluetooth modules power supply and mobile radio communicationPower consumption is larger at work for network module, is the main source of intelligent terminal power consumption under park mode, can by its power-offPower consumption is effectively reduced, extends the cruising time of intelligent terminal.
S32, every preset time, second operating system detects and updates the state of the associated process.
In step s 32, every preset time, second operating system detects and updates the shape of the associated processState.The preset time can be that system default or user are set, such as 1s, 3s or 5s.Second operationThe state of associated process described in system detectio refers to that the second operating system is periodically established with network and connected, and collects user's needsData.Specifically, refer to Fig. 5, Fig. 5 is that the method for the associated process state of the second operating system detection described in Fig. 4 is preferableThe flow chart of embodiment, methods described include:
S321, open line related;
S322, judge whether there is message to be received and/or incoming call in the associated process;
S323, when being, by the message to be received or to be electronically stored at default storage region and send prompting, then closeClose line related;
S324, when no, directly close line related.
In order to collect message needed for user, it is necessary to connect internet and/or mobile communications network, therefore first have to openInto second operating system park mode when the line related closed and start the function of corresponding module;Described afterwardsTwo operating systems will call associated process, judge whether there is message to be received and/or incoming call in the process;, will when beingThe message to be received or to be electronically stored at default storage region and send prompting, line related is turned off, waited nextReceive the arrival of message cycle;When no, line related is directly closed, waits next arrival for receiving message cycle.Specifically, the prompting can be the one or more in bright light prompting, vibration prompt and jingle bell prompting, in one embodiment, instituteState prompting to prompt for bright light, after receiving message and/or incoming call, the breath light of intelligent terminal is lasting glittering, until dormancy terminates.
Second operating system is only that the message that will be received is stored, storage region be first operating system andSecond operating system can process access region, in the present embodiment, the default memory block be program storage inA region.Because when intelligent terminal for reception is to after terminating dormancy instruction, second operating system exits, describedAfter first operating system restarts and run, the data in the default storage region can be visited by first operating systemAsk and handle, user can be just obtained in sleep procedure in time, the data of the associated process renewal received, avoided missing importantMessage.It is worth noting that, under the park mode of prior art, hardware is also periodic duty, still, the process meeting of operationReceive message and/or incoming call and it is handled, and still can mutually be called between different processes, or even some processesCall or the reception of message meeting wake operation system goes to carry out respective handling, power consumption is very big.And technical schemeOnly second operating system is stored the message received and/or incoming call, has no other processing operations, effectivelyReduce power consumption, so as to extend cruising time.
Based on the above method, the invention also discloses a kind of storage device, Fig. 6 is refer to, wherein, the storage device100 have store function, and are stored with a plurality of instruction 110, and the instruction 110 is any described suitable for being loaded by processor and being performedMethod, the storage device 100 is the equipment using electricity, magnetic and luminous energy progress data storage such as USB flash disk, hard disk and CD.
Based on the above method, the invention also discloses a kind of intelligent terminal, Fig. 7 is refer to, wherein, including:
Processor 210, it is adapted for carrying out each instruction;And
Storage device 220, suitable for storing a plurality of instruction, the instruction is suitable to be loaded by processor 210 and performed to appointMethod described in one, the intelligent terminal 200 can be that mobile phone, computer, tablet personal computer, server, wrist-watch and intelligence wearing are setIt is standby etc..
In summary, the present invention is by when intelligent terminal carries out dormancy, introducing one compared with the first operating system powerThe second low operating system replaces first operating system, because the power of second operating system in itself is low, energyEnough substantially reduce the power consumption of intelligent terminal in the dormant state;In addition, the park mode of second operating system only runs phasePut journey into, and do not called mutually between different processes, also will not wake up the first operating system, data processing amount very little;MeanwhileSecond operating system stores to receiving message and/or incoming call, after sleep procedure is terminated, is operated by described firstSystem is handled the message received and/or incoming call, user is obtained the message received in sleep procedure, in not shadowOn the premise of ringing Consumer's Experience, second operating system is only run with considerably less function, is greatly reduced power consumption, is effectively prolongedLong cruising time.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize thisThe equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlationsTechnical field, it is included within the scope of the present invention.