The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of new technical scheme, can solve of the prior art manyThe kernel service efficiency of core processor technical problem not high.
In view of this, the first aspect of the present invention proposes a kind of kernel control method, for liquid crystal display and inkThe terminal of screen, the terminal includes polycaryon processor, and the kernel control method includes:By at least the one of the polycaryon processorIndividual kernel distributes to the ink screen, in other by the polycaryon processor in addition to distribute to the kernel of the ink screenCore distributes to the liquid crystal display;Whether the liquid crystal display and the ink screen are determined in dispaly state, at the multinuclearThe kernel for managing device is controlled.
In the technical scheme, kernel, i.e. ink screen and liquid crystal display difference are distributed by being respectively ink screen and liquid crystal displayWith respective kernel, it is to avoid same kernel had both processed the user instruction received in ink screen, also processed in liquid crystalThe user instruction received on screen so that the division of labor of the kernel of polycaryon processor is clearer and more definite, so as to ensure that polycaryon processorTreatment effeciency.In addition, by determining whether liquid crystal display and ink screen are controlled in dispaly state to kernel, so as to protectHaving demonstrate,proved kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.
In the above-mentioned technical solutions, it is preferable that whether the determination liquid crystal display and the ink screen are in display shapeState, is controlled come the kernel to the polycaryon processor, specifically includes:If the liquid crystal display is in dispaly state, and describedInk screen is in puts out screen state, then control distributes to the kernel of the liquid crystal display and is in running status, and control distribute to it is describedThe kernel of ink screen is in sleep state;If the ink screen is in dispaly state, and the liquid crystal display is in and puts out screen state, thenThe kernel that the ink screen is distributed in control is in running status, and control distributes to the kernel of the liquid crystal display in sleep shapeState;If the ink screen and the liquid crystal display are in dispaly state, kernel and the distribution of the liquid crystal display are distributed in controlKernel to the ink screen is in running status;If the ink screen and the liquid crystal display are in putting out screen state, controlSystem distributes to the kernel of the liquid crystal display and the kernel for distributing to the ink screen is in sleep state.
In the technical scheme, if liquid crystal display and/or ink screen are in dispaly state, illustrate that user is using liquid crystal displayAnd/or ink screen, then control to distribute to the kernel of liquid crystal display and/or distribute to the kernel of ink screen in running status, so thatEnsure that kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.If liquid crystal display and/or ink screenIn screen state is put out, illustrate user not use liquid crystal display and/or ink screen, then control distribute to liquid crystal display kernel and/orThe kernel for distributing to ink screen is in sleep state, so as to avoid not working also in terminal caused by running status due to kernelPower consumption is too fast, and then improves the endurance of terminal.
In any of the above-described technical scheme, it is preferable that the quantity for distributing to the kernel of the ink screen is one.
In the technical scheme, because the performance requirement of the kernel to ink screen is than relatively low, therefore, it is only ink screen distributionOne kernel, so as to the distribution that ensure that kernel is more reasonable.
In any of the above-described technical scheme, it is preferable that the kernel for distributing to the ink screen is the polycaryon processorThe minimum kernel of power consumption.
In the technical scheme, ink screen is distributed to by by the minimum kernel of power consumption, further ensure that kernel pointThe reasonability matched somebody with somebody, improves the utilization rate of kernel.
The second aspect of the present invention proposes a kind of kernel control device, for the terminal with liquid crystal display and ink screen,The terminal includes polycaryon processor, and the kernel control device includes:Allocation unit, for by the polycaryon processor extremelyA few kernel distributes to the ink screen, its by the polycaryon processor in addition to the kernel of the ink screen is distributed toHis kernel distributes to the liquid crystal display;Control unit, for determining the liquid crystal display and the ink screen whether in display shapeState, is controlled come the kernel to the polycaryon processor.
In the technical scheme, kernel, i.e. ink screen and liquid crystal display difference are distributed by being respectively ink screen and liquid crystal displayWith respective kernel, it is to avoid same kernel had both processed the user instruction received in ink screen, also processed in liquid crystalThe user instruction received on screen so that the division of labor of the kernel of polycaryon processor is clearer and more definite, so as to ensure that polycaryon processorTreatment effeciency.In addition, by determining whether liquid crystal display and ink screen are controlled in dispaly state to kernel, so as to protectHaving demonstrate,proved kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.
In the above-mentioned technical solutions, it is preferable that described control unit is specifically for if the liquid crystal display is in display shapeState, and the ink screen is in screen state is put out, then control distributes to the kernel of the liquid crystal display in running status, and control pointThe kernel of ink screen described in dispensing is in sleep state;If the ink screen is in dispaly state, and the liquid crystal display is in and puts outScreen state, then control distributes to the kernel of the ink screen in running status, and the kernel of the liquid crystal display is distributed in controlIn sleep state;If the ink screen and the liquid crystal display are in dispaly state, the liquid crystal display is distributed in controlKernel is in running status with the kernel for distributing to the ink screen;If the ink screen and the liquid crystal display are in putting out screenState, then the kernel of the liquid crystal display is distributed in control and the kernel for distributing to the ink screen is in sleep state.
In the technical scheme, if liquid crystal display and/or ink screen are in dispaly state, illustrate that user is using liquid crystal displayAnd/or ink screen, then control to distribute to the kernel of liquid crystal display and/or distribute to the kernel of ink screen in running status, so thatEnsure that kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.If liquid crystal display and/or ink screenIn screen state is put out, illustrate user not use liquid crystal display and/or ink screen, then control distribute to liquid crystal display kernel and/orThe kernel for distributing to ink screen is in sleep state, so as to avoid not working also in terminal caused by running status due to kernelPower consumption is too fast, and then improves the endurance of terminal.
In any of the above-described technical scheme, it is preferable that the quantity for distributing to the kernel of the ink screen is one.
In the technical scheme, because the performance requirement of the kernel to ink screen is than relatively low, therefore, it is only ink screen distributionOne kernel, so as to the distribution that ensure that kernel is more reasonable.
In any of the above-described technical scheme, it is preferable that the kernel for distributing to the ink screen is the polycaryon processorThe minimum kernel of power consumption.
In the technical scheme, ink screen is distributed to by by the minimum kernel of power consumption, further ensure that kernel pointThe reasonability matched somebody with somebody, improves the utilization rate of kernel.
The third aspect of the present invention proposes a kind of terminal, including the interior nuclear control any one of above-mentioned technical proposalDevice, therefore, the terminal have and above-mentioned technical proposal any one of kernel control device identical technique effect,This is repeated no more.
In any of the above-described technical scheme, it is preferable that the liquid crystal display is arranged on the first face of the terminal, the inkScreen is arranged on the second face of the terminal.
In the above-mentioned technical solutions, it is preferable that the liquid crystal display is arranged on the first face of the terminal, the ink screen setsPut in the second face of the terminal.
By technical scheme, the service efficiency of the kernel of polycaryon processor can be improved.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real in order to the above objects, features and advantages of the present invention can be more clearly understood thatMode is applied to be further described in detail the present invention.It should be noted that in the case where not conflicting, the implementation of the applicationFeature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used alsoImplemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described belowSpecific embodiment limitation.
Fig. 1 shows the schematic flow sheet of kernel control method according to an embodiment of the invention.
As shown in figure 1, kernel control method according to an embodiment of the invention, for liquid crystal display and ink screenTerminal, terminal includes polycaryon processor, and the kernel control method includes:
Step 102, ink screen is distributed to by least one kernel of polycaryon processor, by polycaryon processor except distributing toOther kernels outside the kernel of ink screen distribute to liquid crystal display.
Step 104, determines that whether liquid crystal display and ink screen, in dispaly state, are controlled come the kernel to polycaryon processorSystem.
In the technical scheme, kernel, i.e. ink screen and liquid crystal display difference are distributed by being respectively ink screen and liquid crystal displayWith respective kernel, it is to avoid same kernel had both processed the user instruction received in ink screen, also processed in liquid crystalThe user instruction received on screen so that the division of labor of the kernel of polycaryon processor is clearer and more definite, so as to ensure that polycaryon processorTreatment effeciency.In addition, by determining whether liquid crystal display and ink screen are controlled in dispaly state to kernel, so as to protectHaving demonstrate,proved kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.
In the above-mentioned technical solutions, it is preferable that step 104 is specifically included:If liquid crystal display is in dispaly state, and ink screenIn screen state is put out, then control distributes to the kernel of liquid crystal display in running status, and controls to distribute at the kernel of ink screenIn sleep state;If ink screen is in dispaly state, and liquid crystal display is in and puts out screen state, then the kernel of ink screen is distributed in controlIn running status, and control distributes to the kernel of liquid crystal display in sleep state;If ink screen and liquid crystal display are in displayState, then the kernel of liquid crystal display is distributed in control and the kernel for distributing to ink screen is in running status;If ink screen and liquidCrystalline substance screen is in putting out screen state, then the kernel of liquid crystal display is distributed in control and the kernel for distributing to ink screen is in shape of sleepingState.
In the technical scheme, if liquid crystal display and/or ink screen are in dispaly state, illustrate that user is using liquid crystal displayAnd/or ink screen, then control to distribute to the kernel of liquid crystal display and/or distribute to the kernel of ink screen in running status, so thatEnsure that kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.If liquid crystal display and/or ink screenIn screen state is put out, illustrate user not use liquid crystal display and/or ink screen, then control distribute to liquid crystal display kernel and/orThe kernel for distributing to ink screen is in sleep state, so as to avoid not working also in terminal caused by running status due to kernelPower consumption is too fast, and then improves the endurance of terminal.
In any of the above-described technical scheme, it is preferable that the quantity for distributing to the kernel of ink screen is one.
In the technical scheme, because the performance requirement of the kernel to ink screen is than relatively low, therefore, it is only ink screen distributionOne kernel, so as to the distribution that ensure that kernel is more reasonable.
In any of the above-described technical scheme, it is preferable that distribute to the kernel of ink screen for the power consumption of polycaryon processor is minimumKernel.
In the technical scheme, ink screen is distributed to by by the minimum kernel of power consumption, further ensure that kernel pointThe reasonability matched somebody with somebody, improves the utilization rate of kernel.
Fig. 2 shows the schematic flow sheet of kernel control method according to another embodiment of the invention.
As shown in Fig. 2 kernel control method according to another embodiment of the invention, including:
Step 202, detects the power consumption of each kernel of polycaryon processor.
Wherein, for the polycaryon processor of big small nut framework, can be according to existing ARM (Advanced RISCMachines, risc microcontroller) big small nut framework definition, small nut low consumption, big core consumption high, to determine the power consumption of each kernel.To the polycaryon processor of non-big small nut framework, the energy consumption condition of each core can be surveyed, according to the self-defined low-power consumption core high of result.
Step 204, ink screen is distributed to by kernel least in power-consuming, and other all of kernels are distributed into liquid crystal display.
Step 206, determines that whether ink screen and liquid crystal display, in dispaly state, are controlled come the kernel to polycaryon processorSystem.
For example, when showing that being switched to ink screen shows from liquid crystal display, the kernel for being controlled to ink screen distribution is in operationState, and the kernel of liquid crystal display distribution is controlled in sleep state;When showing that being switched to liquid crystal display shows from ink screen,The kernel for being controlled to ink screen distribution is in sleep state, and is controlled to the kernel of liquid crystal display distribution in running status.
If in addition, in the runnable interface of liquid crystal screen display application program, ink screen is switched to being shown from liquid crystal displayAfter display, the runnable interface of the application program is switched in ink screen and is shown.If in ink screen display application journeyThe runnable interface of sequence, then after showing that being switched to liquid crystal display shows from ink screen, the runnable interface of the application program is switchedShown on to liquid crystal display.
Fig. 3 shows the structural representation of kernel control device according to an embodiment of the invention.
As shown in figure 3, kernel control device 300 according to an embodiment of the invention, for liquid crystal display and inkThe terminal of water screen, terminal includes polycaryon processor, and the kernel control device 300 includes:Allocation unit 302 and control unit 304.
Allocation unit 302, at least one kernel of polycaryon processor to be distributed into ink screen, by polycaryon processorOther kernels in addition to the kernel for distributing to ink screen distribute to liquid crystal display;Control unit 304, for determining liquid crystal display and inkWhether water screen is in dispaly state, is controlled come the kernel to polycaryon processor.
In the technical scheme, kernel, i.e. ink screen and liquid crystal display difference are distributed by being respectively ink screen and liquid crystal displayWith respective kernel, it is to avoid same kernel had both processed the user instruction received in ink screen, also processed in liquid crystalThe user instruction received on screen so that the division of labor of the kernel of polycaryon processor is clearer and more definite, so as to ensure that polycaryon processorTreatment effeciency.In addition, by determining whether liquid crystal display and ink screen are controlled in dispaly state to kernel, so as to protectHaving demonstrate,proved kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.
In the above-mentioned technical solutions, it is preferable that control unit 304 is specifically for if liquid crystal display is in dispaly state, and inkWater screen is in and puts out screen state, then control distributes to the kernel of liquid crystal display in running status, and the interior of ink screen is distributed in controlCore is in sleep state;If ink screen is in dispaly state, and liquid crystal display is in and puts out screen state, then ink screen is distributed in controlKernel is in running status, and control distributes to the kernel of liquid crystal display in sleep state;If ink screen and liquid crystal display are inDispaly state, then the kernel of liquid crystal display is distributed in control and the kernel for distributing to ink screen is in running status;If ink screenIt is in putting out screen state with liquid crystal display, then the kernel of liquid crystal display is distributed in control and the kernel for distributing to ink screen is in sleepState.
In the technical scheme, if liquid crystal display and/or ink screen are in dispaly state, illustrate that user is using liquid crystal displayAnd/or ink screen, then control to distribute to the kernel of liquid crystal display and/or distribute to the kernel of ink screen in running status, so thatEnsure that kernel being capable of the user instruction that is received on liquid crystal display and ink screen of normal process.If liquid crystal display and/or ink screenIn screen state is put out, illustrate user not use liquid crystal display and/or ink screen, then control distribute to liquid crystal display kernel and/orThe kernel for distributing to ink screen is in sleep state, so as to avoid not working also in terminal caused by running status due to kernelPower consumption is too fast, and then improves the endurance of terminal.
In any of the above-described technical scheme, it is preferable that the quantity for distributing to the kernel of ink screen is one.
In the technical scheme, because the performance requirement of the kernel to ink screen is than relatively low, therefore, it is only ink screen distributionOne kernel, so as to the distribution that ensure that kernel is more reasonable.
In any of the above-described technical scheme, it is preferable that distribute to the kernel of ink screen for the power consumption of polycaryon processor is minimumKernel.
In the technical scheme, ink screen is distributed to by by the minimum kernel of power consumption, further ensure that kernel pointThe reasonability matched somebody with somebody, improves the utilization rate of kernel.
Fig. 4 shows the structural representation of terminal according to an embodiment of the invention.
Any one of as shown in figure 4, terminal according to an embodiment of the invention 400, including above-mentioned technical proposalKernel control device 300, therefore, the terminal 400 has identical with the kernel control device 300 of any one of above-mentioned technical proposalTechnique effect, will not be repeated here.
In any of the above-described technical scheme, it is preferable that liquid crystal display is arranged on the first face of terminal 400, ink screen is arranged onSecond face of terminal 400.
For example, liquid crystal display is arranged on the front of terminal 400, ink screen is arranged on the back side of terminal 400, or liquid crystal display setsPut at the back side of terminal 400, ink screen is arranged on the front of terminal 400.
As shown in figure 5, terminal 500 according to another embodiment of the invention, including polycaryon processor 502, memory504 and communication bus 506.In addition, the terminal 500 also has liquid crystal display and ink screen.
Polycaryon processor 502 can be general processor, for example central processing unit (Central Processing Unit,CPU), can also be digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit(Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present inventionOne or more integrated circuits.Memory 504, for store program codes, and is transferred to multinuclear treatment by the program codeDevice 502.Memory 504 can include volatile memory (Volatile Memory), such as random access memory(Random Access Memory, RAM);Memory 504 can also include nonvolatile memory (Non-VolatileMemory), such as read-only storage (Read-Only Memory, ROM), flash memory 504 (Flash Memory), hard disk(Hard Disk Drive, HDD) or solid state hard disc (Solid-State Drive, SSD);Memory 504 can also include upperState the combination of the memory of species.Communication bus 506 is used to realize that the connection between polycaryon processor 502 and memory 504 to be led toLetter.Communication bus 506 can be industry standard architecture (Industry Standard Architecture, ISA) bus,External equipment interconnection (Peripheral Component Interconnect, PCI) bus or extension standards architecture(Extended Industry Standard Architecture, EISA) bus etc..The communication bus 506 can be divided into groundLocation bus, data/address bus, controlling bus etc..
Wherein, polycaryon processor 502 is used to call the program code stored in memory 504, performs following operation:
At least one kernel of polycaryon processor 502 is distributed into ink screen, by polycaryon processor 502 except distributing to inkOther kernels outside the kernel of water screen distribute to liquid crystal display;Whether liquid crystal display and ink screen are determined in dispaly state, and it is right to comeThe kernel of polycaryon processor 502 is controlled.
Preferably, polycaryon processor 502 is specifically for if liquid crystal display is in dispaly state, and ink screen is in and puts out screen shapeState, then control distributes to the kernel of liquid crystal display in running status, and control distributes to the kernel of ink screen in sleep state;If ink screen is in dispaly state, and liquid crystal display is in and puts out screen state, then control distributes to the kernel of ink screen in operation shapeState, and control distributes to the kernel of liquid crystal display in sleep state;If ink screen and liquid crystal display are in dispaly state, controlThe kernel for distributing to liquid crystal display and the kernel for distributing to ink screen are in running status;If ink screen and liquid crystal display are in putting outScreen state, then the kernel of liquid crystal display is distributed in control and the kernel for distributing to ink screen is in sleep state.
Wherein, shown if being shown from liquid crystal display and being switched to ink screen, distribute to the kernel of liquid crystal display to distributing to inkThe kernel of screen sends the instruction for stopping sleep, to control the kernel for distributing to ink screen to be in running status, while distributing to liquidThe kernel of crystalline substance screen is in sleep state.Shown if being shown from ink screen and being switched to liquid crystal display, distribute to the kernel of ink screen toThe kernel for distributing to liquid crystal display sends the instruction for stopping sleep, to control the kernel for distributing to liquid crystal display to be in running status, togetherWhen distribute to ink screen kernel be in sleep state.If liquid crystal display and ink screen are waken up, the interior of liquid crystal display is distributed toCore is also waken up respectively with the kernel for distributing to ink screen, so as to distribute to the kernel of liquid crystal display and distribute to the kernel of ink screenIt is in running status.
Preferably, the quantity for distributing to the kernel of ink screen is one.
Preferably, it is the minimum kernel of the power consumption of polycaryon processor 502 to distribute to the kernel of ink screen.
Preferably, liquid crystal display is arranged on the first face of terminal 500, and ink screen is arranged on the second face of terminal 500.
Technical scheme is described in detail above in association with accompanying drawing, by technical scheme, can improveThe service efficiency of the kernel of polycaryon processor.
In the present invention, term " first ", " second " are only used for the purpose for describing, and it is not intended that indicating or implying phaseTo importance;Term " multiple " represents two or more.For the ordinary skill in the art, can be according to toolBody situation understands above-mentioned term concrete meaning in the present invention.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this areaFor art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repairChange, equivalent, improvement etc., should be included within the scope of the present invention.