CN109298775A - Terminal device and task processing method - Google Patents

Terminal device and task processing method Download PDF

Info

Publication number
CN109298775A
CN109298775A CN201810941479.7A CN201810941479A CN109298775A CN 109298775 A CN109298775 A CN 109298775A CN 201810941479 A CN201810941479 A CN 201810941479A CN 109298775 A CN109298775 A CN 109298775A
Authority
CN
China
Prior art keywords
task
processing module
signal
terminal device
processing
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.)
Pending
Application number
CN201810941479.7A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810941479.7A priority Critical patent/CN109298775A/en
Publication of CN109298775A publication Critical patent/CN109298775A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a terminal device and a task processing method, which are used for reducing the power consumption of the terminal device. The terminal device includes: the interface is used for connecting the peripheral equipment of the terminal equipment; the first processing module is connected with the interface; the second processing module is connected with the first processing module; when the terminal device is in a standby state, the first processing module switches from a sleep state to a working state according to a received first signal which is sent by the peripheral device and used for processing a first task, when it is determined that resources consumed for processing the first task are greater than or equal to a preset threshold value, a second signal is sent to the second processing module, and the second processing module switches from the sleep state to the working state according to the second signal and processes the first task in the working state.

Description

A kind of terminal device and task processing method
Technical field
This application involves mobile communication technology fields, and in particular to a kind of terminal device and task processing method.
Background technique
Terminal device constantly develops, and the task type that the processing module of terminal device is capable of handling is also more and more.For Make various tasks that terminal device is capable of handling, the component of the processing module of existing terminal device is more and more and multiple Miscellaneous, so, when causing the processing module of terminal device to handle task, power consumption is larger.In order to reduce power consumption, terminal is set Standby often have a standby mode, and when standby mode, the processing module of terminal device enters dormant state.
But when user needs using terminal equipment, user can wake up processing module, peripheral hardware example by peripheral hardware Power button, the face authentication device of such as smart phone.After user wakes up processing module, component included by processing module It will be in running order, it is clear that the power consumption that will lead to terminal device is larger.
Summary of the invention
The embodiment of the present application provides a kind of terminal device and task processing method, for reducing the power consumption of terminal device.
Specific technical solution provided by the embodiments of the present application is as follows:
In a first aspect, providing a kind of terminal device, the terminal device includes:
Interface, for connecting the peripheral hardware of the terminal device;
First processing module is connect with the interface;
Second processing module is connect with the first processing module;
Wherein, it is in the standby state in the terminal device, the first processing module is based on the received by described outer If what is sent is used to handle the first signal of first task, it is in working condition from dormant state switching, when determining processing is first When resource consumed by being engaged in is greater than or equal to preset threshold, second signal is sent to the Second processing module, at described second Reason module is in working condition according to the second signal from dormant state switching, and in the operating condition, is handled described first Business.
In the embodiment of the present application, first processing module and Second processing module, terminal device work are provided in terminal device When making, two processing modules under certain condition can mutual switch operating, compared to the prior art in a processing mould always Block work mode, in the embodiment of the present application can the opposite work times reduced in single processing module same time period, To reduce the power consumption of terminal device, the service life of the processing module of relative increase terminal device.And the embodiment of the present application In, what peripheral hardware woke up first is the lower first processing module of power consumption, when first processing module does not handle the task, by One processing module wakes up Second processing module again, that is to say, that in the embodiment of the present application under default conditions, only power consumption is lesser One processing module is in running order, can further reduce the power consumption of terminal device, reduce the power consumption of terminal device, just The power consumption that terminal device can be reduced relatively, to increase the cruising ability of terminal device.
Optionally, the first processing module includes signal processing circuit and switch switching circuit, in which:
The signal processing circuit is connect with the Second processing module, forms the first access;
The switch switching circuit, respectively with the interface, the signal processing circuit and the Second processing module Connection, the switch switching circuit pass through the first signal described in the interface, the switch switching circuit and the signal The first branch is formed between processing circuit, forms second branch between the switch switching circuit and the Second processing module, The switch switching circuit is used to control the on off operating mode of the first branch and the second branch.
The embodiment of the present application provides a kind of specific implementation of processing module, which includes signal processing Circuit and switch switching circuit, first processing module pass through the intercommunication of signal processing circuit and Second processing module, open Closing switching circuit can control the on off operating mode of first processing module Yu Second processing module and peripheral hardware, and implementation is more simple It is single, it is possible to reduce the cost of terminal device.
Optionally, when the switch switching circuit controls the first branch and is in connected state, the switching First signal is sent to the signal processing circuit after receiving first signal by circuit;
The signal processing circuit, receives and according to first signal, is in working condition from dormant state switching, and When determining that handling resource consumed by the first task is less than the preset threshold, the first task is handled.
It, can be directly by signal when signal processing circuit confirms that resource consumed by processing first task is less Reason circuit be in first task, operation of the signal processing circuit operation power consumption relative to the processing module in compared to the prior art Power consumption is smaller, therefore, can reduce the power consumption of terminal device.
Optionally, the signal processing circuit is also used to:
When determining that handling resource consumed by the first task is greater than or equal to the preset threshold, pass through described the One access sends the second signal to the Second processing module.
Signal processing circuit selectively wakes up Second processing module, opposite can reduce what Second processing module was waken up Number, to increase the service life of Second processing module.
Optionally, the signal processing circuit is also used to:
After sending the second signal to the Second processing module, dormant state is switched to from working condition.
When Second processing module enters working condition, signal processing circuit can be switched to dormant state, thus into Reduce to one step the power consumption of terminal device.
Optionally, the Second processing module is also used to be switched to work shape from dormant state according to the second signal State, and first control signal is sent to the switch switching circuit;
The switch switching circuit is also used to control the first branch according to the first control signal and be in disconnection State, and the control second branch are in connected state.
When Second processing module is in running order, Second processing module can control switch switching circuit and be switched to It is connected to Second processing module, so that Second processing module manages and controls peripheral hardware, facilitates between Second processing module and peripheral hardware It is communicated.
Optionally, the Second processing module is also used to after handling the first task, passes through the second branch Obtain the second task, when determine resource consumed by second task be less than preset threshold, by first access, to institute It states signal processing circuit and sends third signal, wherein second task is that the terminal device is receiving the first task Received task later;
The signal processing circuit, be also used to receive and according to the third signal, be switched to work shape from dormant state State, and in the operating condition, handle second task.
When Second processing module is after having handled first task, obtains the second task, determine that the second task is consumed Resource it is less, Second processing module can to signal processing circuit send signal, make first processing module handle the second task, To avoid handling the second task by the biggish Second processing module of power consumption, but handled by the lesser first processing module of power consumption First task, to further reduce the power consumption of terminal device.
Optionally, the signal processing circuit is also used to be sent according to the third signal to the switch switching circuit Second control signal;
The switch switching circuit is also used to control the second branch according to the second control signal and be in disconnection State, and the control first branch are in connected state.
When signal processing circuit is in running order, it can control switch switching circuit connection switch switching circuit, make It obtains signal processing circuit and manages and controls peripheral hardware, facilitate and communicated between first processing module and peripheral hardware.
Second aspect provides a kind of task processing method, applied to terminal device as described in relation to the first aspect, the terminal Equipment includes interface, first processing module and Second processing module, which comprises
It is in the standby state in the terminal device, in the first processing module by the interface by peripheral hardware After the first signal for handling first task sent, the first processing module is in working condition from dormant state switching;
The first processing module, which determines, handles whether resource consumed by the first task is greater than or equal to default threshold Value;
When the first processing module determines that handling resource consumed by first task is greater than or equal to preset threshold, to The Second processing module sends second signal, so that the Second processing module is cut according to the second signal from dormant state It is changed to working condition, and in the operating condition, handles the first task.
Optionally, whether the resource consumed by the determining processing first task of the first processing module is greater than or waits After preset threshold, the method also includes:
When the first processing module determines that handling resource consumed by the first task is less than the preset threshold, The first task is handled.
Optionally, after sending the second signal to the Second processing module, further includes:
The first processing module is switched to dormant state from working condition.
Optionally, the first processing module in a dormant state under, the first processing module can be to described Two processing modules send the second task, and the first processing module can not handle second task, and second task is Terminal device received task after receiving the first task.
Optionally, the method also includes:
The first processing module receives the third signal for handling the second task from the Second processing module, In, it handles resource consumed by second task and is less than preset threshold;
The first processing module is in working condition from dormant state switching, and in the operating condition, processing described second Task.
The third aspect, provides a kind of computer readable storage medium, and the computer-readable recording medium storage has calculating Machine instruction, when the computer instruction is run on computers, so that computer is executed as described in any one of second aspect Method.
Detailed description of the invention
Fig. 1 is the structure chart for the terminal device that the prior art provides;
Fig. 2 is a kind of structure chart of terminal device provided by the embodiments of the present application;
Fig. 3 is a kind of structure chart of terminal device provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart of task processing method provided by the embodiments of the present application.
Specific embodiment
Technical solution provided by the embodiments of the present application in order to better understand, below in conjunction with Figure of description and specifically Embodiment be described in detail.
Hereinafter, the part term in the embodiment of the present application is explained, in order to those skilled in the art understand that.
1) terminal device, terminal device includes the equipment for providing a user voice and/or data connectivity, such as be can wrap It includes the handheld device with wireless connecting function or is connected to the processing equipment of radio modem.The terminal device can To be communicated through wireless access network (radio access network, RAN) with core net, voice and/or number are exchanged with RAN According to.For example, terminal device may include that user equipment (user equipment, UE), wireless terminal device, mobile terminal are set Standby, subscriber unit (subscriber unit), subscriber station (subscriber station), movement station (mobile Station), mobile station (mobile), distant station (remote station), access point (access point, AP), long-range end End equipment (remote terminal), access terminal equipment (access terminal), subscriber terminal equipment (user Terminal), user agent (user agent) or user equipment (user device) etc..For example, may include mobile phone (or Referred to as " honeycomb " phone), with mobile terminal device computer, portable, pocket, hand-held, built-in computer or The vehicle-mounted mobile device of person, intelligent wearable equipment etc..
2) peripheral equipment, peripheral equipment (peripheral equipment) can be referred to as peripheral hardware, be relative to terminal The equipment of periphery for the processing module being arranged inside equipment, peripheral hardware such as mouse, fingerprint sensor, power button, face Authentication device, microphone, display, camera, projector etc..To simplify the description, peripheral equipment is referred to as peripheral hardware herein.
It takes the mobile phone as an example below, the structure of terminal device in the prior art is illustrated.Fig. 1 is please referred to, the terminal Equipment includes peripheral hardware, interface and processing module, and peripheral hardware is communicated to connect by interface and processing module.Interface can be understood as can Realize the mode communicated to connect between peripheral hardware and processing module, interface can be hardware interface, such as serial line interface, and interface can also To be software interface.Processing module refers to the general name in terminal device for the structure of the task of processing terminal equipment, processing Module generally comprises central processing unit (Central Processing Unit, CPU), memory (Memory) and power management Integrated circuit (Power Management IC, PMIC), PMIC are total for managing the circuit of the power-supply device in processing module Claim.
The function of existing terminal device is more and more, and the component for including of the processing module of terminal device is just increasingly It is more, and, including device also become increasingly complex, the power consumption of processing module also just it is increasing.In order to reduce power consumption, terminal device Generally have a standby mode, terminal device in the set time period without processing task when, terminal device will be automatically into standby Mode, the processing module of the substantial terminal device of the standby mode of terminal device in a dormant state, to save reduction terminal The power consumption of equipment.
But when user needs using terminal equipment to execute task, for example, using terminal equipment is taken pictures etc., use Family needs to wake up processing module by peripheral hardware, and wake-up can be understood as that processing module is made to enter working condition from dormant state.With Family can send signal to terminal device by peripheral hardware, for example, the power key etc. of pressing terminal device, processing module receive peripheral hardware After the signal sent, so that it may wake up processing module.When processing module is waken up, all components of processing module It will be in running order.After processing module has handled the task for a period of time, terminal device can be again automatically into standby Mode, user need to wake up terminal device the step of repetition above again, and so on wake up terminal device, will lead to terminal and set Standby power consumption is larger.
In consideration of it, the embodiment of the present application provides a kind of terminal device, referring to figure 2., which includes peripheral hardware, connects Mouth, first processing module and Second processing module.
Specifically, peripheral hardware can be the equipment of setting on the terminal device, and peripheral hardware is also possible to and terminal device independence Equipment, independently refer to that peripheral hardware is not belonging to the structure of terminal device.It is by taking peripheral hardware setting on the terminal device as an example, in fact in Fig. 2 The specific set-up mode of peripheral hardware is not limited on border.The concrete type of peripheral hardware can there are many kinds of, in discussing above Hold, details are not described herein again.The quantity of peripheral hardware can be one or more, Fig. 2 be by taking the quantity of peripheral hardware is two as an example, but it is real The number of peripheral hardware is not limited on border.Peripheral Equipment & Interface connection, interface can be directly with the mating setting of peripheral hardware, be also possible to What peripheral hardware was independently arranged.Interface is also communicated to connect with first processing module, that is to say, that first processing module may be implemented in interface Communication connection between peripheral hardware.The quantity of interface can be multiple, be also possible to one, be in Fig. 2 by taking an interface as an example, But the quantity of interface is not limited actually.First processing module processing is connect with peripheral communication, and first processing module is also with the The communication connection of two processing modules.
First processing module and Second processing module can be realized by integrated circuit.Specifically, the first processing mould Block can also realize by microcontroller implementation, first processing module by microcontroller, Memory and PMIC, In, microcontroller can be specific integrated circuit (Application Specific Intergrated Circuit, ASIC), Or one or more integrated circuits are arranged to, such as one or more microprocessors (digital singnal Processor, DSP), or, one or more field programmable gate array (Field Programmable Gate Array, FPGA) etc..Certainly, first processing module can also be realized by signal processing circuit with switch switching circuit.Wherein, signal Processing circuit can be realized by single-chip microcontroller, perhaps by one or more DSP or by one or more FPGA come real It is existing, it is not specifically limited herein.Switching circuit can pass through insulated gate bipolar transistor (Insulated Gate Bipolar Transistor, IGBT) it realizes, or can be realized by single-chip microcontroller, it is not specifically limited herein.
Second processing module can realize by central processing unit (Central Processing Unit, CPU), or Person, Second processing module are realized by CPU, Memory and PMIC.Certainly, Second processing module is also possible to processing capacity Higher than other circuits of first processing module or chip etc., this is not restricted.
Referring to figure 3., below by taking first processing module is realized by signal processing circuit and switch switching circuit as an example, The task processes of terminal device are illustrated.Signal processing circuit is connect with Second processing module, forms the first access. Switch switching circuit is connect with interface, signal processing circuit and Second processing module respectively, and switch switching circuit passes through interface The first signal is received, forms the first branch between switch switching circuit and signal processing circuit, at switch switching circuit and second Second branch is formed between reason module.The first branch and second branch are not always all on state, but by switching The on off operating mode of switching circuit the control first branch and second branch.
When terminal device is in the standby state, signal processing circuit be connect with switch switching circuit, that is, Say the first branch be it is in the conductive state, second branch is in an off state.Standby mode can be understood as terminal device and be in Open state, but terminal device does not handle task, that is to say, that and the first processing module and Second processing module of terminal device are equal In a dormant state, dormant state refers to first processing module and Second processing module can receive signal or send signal, But do not handle task.If user wants terminal device processing first task, user needs to wake up the in terminal device One processing module or Second processing module.User can operate the arbitrary peripheral hardware of terminal device, and peripheral hardware is according to user's Operation generates the first signal.First signal such as electric signal, optical signal, voice signal etc., herein not to the specific of the first signal Form is limited.First signal can be the signal for being used to indicate terminal device processing first task, the interface of terminal device After receiving first signal, the first signal is sent to by first processing module by the first branch first, to wake up this at first Manage module.After first processing module is in working condition by dormant state switching, then the first task in the first signal is carried out Processing.First task can be understood as terminal device task to be processed, first task can there are many kinds of, such as operation answers It with, request display picture, checks calendar or plays video etc., concrete restriction is not carried out to first task herein.
For example, be set as power supply membrane keyboard outside, user terminal device standby mode at present, it is desirable to check terminal device when Between, user can touch the power supply membrane keyboard of terminal device, and when user touches power supply membrane keyboard, power supply membrane keyboard can generate simulation Electric signal, the interface of terminal device is after detecting the analog electrical signal, then processing is converted to digital signal, and the digital signal is also It is the first signal hereinbefore.Alternatively, being set as the microphone of terminal device outside, user is made a sound, and microphone acquires user's Voice signal, the voice signal is it can be understood that for the first signal hereinbefore.
After peripheral hardware generates the first signal, then the first signal is sent to switch switching circuit by interface.Switching electricity Road is receiving the first signal and then the first signal is sent to signal processing circuit.Signal processing circuit is according to the first letter Number, it is in working condition from dormant state switching.Signal processing circuit can have from the mode that dormant state switching is in working condition Very much, it is hereafter illustrated.
For example, signal processing circuit is from a kind of mode that dormant state switching is in working condition, in signal processing circuit Portion is provided with the wake-up signal prestored, and when peripheral hardware sends the first signal, signal processing circuit can receive and identify the first letter Number, when the first signal matches with the wake-up signal prestored, signal processing circuit can be switched to from dormant state Working condition.For example, when the wake-up signal that signal processing circuit prestores includes " opening task A ", " opening task B " " processing is appointed The voice signals such as business C ", after signal processing circuit receives the first signal, signal processing circuit detects the first signal, knows Not Chu the voice signal of the first signal be " calendar please be open ", matched in first signal with the wake-up signal prestored, therefore, Signal processing circuit is in working condition from dormant state switching.
Signal processing circuit, which switches the another way being in working condition from dormant state, to be set inside signal processing circuit It is equipped with the level of the wake-up signal prestored, for example, wake-up signal is high level signal.When peripheral hardware sends the first signal, signal Processing circuit determines that first signal is high level signal, then is in working condition from dormant state switching.
Certainly, signal processing circuit from the mode that is in working condition of dormant state switching also there are many kinds of, herein not to cutting The concrete mode changed is limited.
After signal processing circuit is in working condition from dormant state switching, then first task is obtained from the first signal. Before signal processing circuit first task, first processing module needs to judge that can oneself handle first task, that is to say, that Signal processing circuit needs to judge the relationship of resource and preset threshold consumed by processing first task.Processing first task is disappeared The resource of consumption includes processor resource consumed by processing first task, for example, processing first task occupies first processing module CPU percentage be 2%.Handling resource consumed by first task can also include memory, for example, processing first task accounts for Percentage with the CPU of first processing module is 3%, handles in consumed by first task and saves as 1148K.Preset threshold it is big It is small to be also possible to by signal processing circuit default setting by user's manual setting of using terminal equipment.Default threshold The included type of value is identical with the type of resource consumed by first task, that is to say, that if processing first task is disappeared The resource of consumption includes processor resource, then preset threshold also just includes the resource of processor, if processing first task is disappeared The resource of consumption includes processor resource and memory size, then preset threshold also just includes that processor resource size and memory are big It is small.Processor resource value in preset threshold is usually the maximum processor resource taken less than signal processing circuit, and default Memory value in threshold value is less than the maximum memory value of first processing module.
In order to directly obtain the specific data of resource consumed by first task, in order to more accurately judge first The size relation of resource and preset threshold consumed by task, the embodiment of the present application judge that first task is disappeared in the following way The resource of consumption and the size relation of preset threshold.
Further include having storage device in terminal device, resource consumed by each task of processing is prestored in the storage device Corresponding relationship, when the relationship of resource and preset threshold consumed by signal processing circuit needs to judge processing first task, Signal processing circuit calls directly the corresponding relationship.The each task and each task of processing that the storage device prestores are consumed Resource corresponding relationship, can be the related data of resource consumed by each task of operation sent by cloud server It obtains, that is to say, that when executing corresponding task, the corresponding cloud server of the task will record operation and appoints terminal device The corresponding relationship is sent to terminal device again by resource consumed by being engaged in, cloud server, and terminal device is to obtain the correspondence Relationship.Corresponding relationship is also possible to by other equipment acquisition or corresponding relationship and is also possible to user and is manually entered storage To terminal device or corresponding relationship can be the application monitors in terminal device processing task consumption resource, the application The corresponding relationship directly can be reported to terminal device, so that terminal device just obtains the corresponding relationship.
The concrete form of corresponding relationship can be table, text or code form etc., herein not to the corresponding relationship Concrete form is limited.In order to reduce the memory space of corresponding relationship occupancy, task can be carried out using unique identifier It indicates, that is to say, that terminal device can identify the corresponding task of the unique identifier according to unique identifier.For example, asking Referring to table 1, table 1 is a kind of corresponding relationship, and table 1 includes resource consumed by the mark and the corresponding task of processing of task, In, resources occupation rate consumed by first task, consumed by resources occupation rate and third task consumed by the second task Resources occupation rate is all using the same processing module as reference, and " t1 " is the mark of first task, and " t2 " is the mark of the second task Know, " t3 " is the mark of third task.
Table 1
Task The resource of consumption
t1 CPU usage 2%
t2 CPU usage 6%
t3 CPU usage 8%
After signal processing circuit obtains first task, so that it may call directly resource consumed by processing first task Occurrence, to judge the size relation of resource and preset threshold consumed by processing first task.
When signal processing circuit needs while handling multiple tasks, signal processing circuit can be according to processing multiple tasks The summation of consumed resource judges the size relation of preset threshold.The each task of processing can be obtained in the embodiment of the present application The specific data of consumed resource, are applicable not only to single task disposition, additionally it is possible to when multiple tasks need to handle, sentence The size relation of resource and preset threshold consumed by disconnected multitask.
When signal processing circuit determines that handling resource consumed by first task is less than preset threshold, it is believed that first Task belongs to simple task, and signal processing circuit then directly handles first task.If first task is to run some application, So signal processing circuit operation application, and control the display interface that display screen shows the application.
For example, first task is display screen display current time on the terminal device.At signal processing circuit determines The CPU usage for managing processor resource first processing module consumed by first task is 4%, preset threshold 10%, signal Processing circuit determines that processor resource consumed by processing first task is less than preset threshold.Therefore, signal processing circuit is then straight Operation clock application program is connect, to show the time in display screen.
When signal processing circuit determines that handling resource consumed by first task is greater than or equal to preset threshold, can recognize Belong to complicated task for first task, in this case, signal processing circuit is sent to Second processing module for handling The second signal of the first task.The form of second signal is referred to the form for the first signal discussed above, herein no longer It repeats.For example, first task is the audio in playing terminal equipment.Signal processing circuit determines consumed by processing first task The CPU usage of processor resource first processing module is 45%, and preset threshold 20%, signal processing circuit determines processing the Processor resource consumed by one task is greater than preset threshold.
It should be noted that signal processing circuit to Second processing module send second signal after, can be from work State is switched to dormant state.For example, signal processing circuit can be after sending second signal, suspend mode shape is just immediately entered State or signal processing circuit are also possible to after sending second signal, take office by not receiving in the time span of setting What task, just enters dormant state, and the time span of setting can be set by the user, or to be also possible to terminal device silent Recognize setting.Signal processing circuit enters dormant state, can reduce the energy consumption of terminal device, reduces the consumption of terminal device Electricity, and then increase the cruising ability of terminal device.
After signal processing circuit sends second signal to Second processing module, Second processing module can be according to second Signal is in working condition from dormant state switching, handles first task in the operating condition.How Second processing module is according to Binary signal switches the content that is in working condition from dormant state, be referred to above signal processing module according to the first signal from stopping Dormancy state switches the content being in working condition, and details are not described herein again.
Peripheral hardware is managed and controlled in order to facilitate Second processing module, after Second processing module receives second signal, the Two processing modules can send first control signal to switch switching circuit according to second signal.Switch switching circuit is according to first Signal is controlled, is in an off state between control and signal processing circuit, that is to say, that the control first branch, which is in, disconnects shape Connected state is between state, and control and Second processing module, that is to say, that control second branch is in connected state, Off-state can be understood as the branch and be not used in transmission signal, and connected state is referred to discuss content above, herein no longer It repeats.
After Second processing module handles first task, there may be again the second task to need to handle.Second task can be with It is that user carries out operation generation to the peripheral hardware of terminal device, such as user clicks the screen " applying A " of terminal device, terminal is set After standby screen receives " click " operation of user, produces and be used to indicate the signal that terminal device runs " applying A ", second Branch just obtains the second task that A is applied in operation.Alternatively, the second task be by first task after directly trigger, example After defaulting execution task A such as terminal device, task B can be executed, when first task is task A, when first task execution terminates Later, the second task will be generated.Second task can be transmitted directly to Second processing module by second branch.Second processing After module receives the second task, there is still a need for resource and preset thresholds consumed by judgement the second task of processing for Second processing module Size relation, the mode of the size relation of resource and preset threshold consumed by Second processing module judgement the second task of processing It is referred to the mode of first processing module judgement above, details are not described herein again.
When Second processing module determines that resource consumed by the second task of processing is greater than or equal to preset threshold, That is first processing module possibly can not handle the second task, therefore, the second task is still handled by Second processing module.Or Person illustrates at the task first when Second processing module determines that resource consumed by the second task is less than preset threshold Reason module is capable of handling the second task.In order to reduce the power consumption of terminal device, Second processing module can by the first access, to Signal processing circuit sends third signal, and third signal is to be used to indicate signal processing circuit to handle the second task.Due to operation The power consumption of first processing module is relatively low relative to the power consumption of operation Second processing module, therefore, by first processing module root According to the second task of indication signal processing circuit processes, the power consumption of terminal device can be reduced.
After signal processing circuit receives third signal, signal processing circuit switches according to third signal from dormant state It is in working condition, and in the operating condition, handles the second task.Signal processing circuit switches according to third signal from dormant state The concrete mode being in working condition is referred to the content discussed above, and details are not described herein again.
Peripheral hardware is managed and controlled in order to facilitate signal processing circuit, after signal processing circuit receives third signal, is opened Switching circuit is closed also according to third signal, sends second control signal to switch switching circuit.Switch switching circuit is receiving the After two control signals, it is in an off state according between second control signal control and Second processing module, that is to say, that control Second branch processed is in an off state, and connected state is between control and message processing module, that is to say, that first Road is in connected state, and off-state and connected state are referred to the content discussed above, and details are not described herein again.
After second task of processing, user carries out standby operation to terminal device, and terminal device enters standby mode again. Standby operation be, for example, user press terminal device to switch.Alternatively, terminal device is not received by first time length New task, terminal device enter standby mode again.That is, terminal device is set in advance in first time length, do not have New task is received, just default enters standby mode.
On the basis of the terminal device discussed above, the embodiment of the present application also provides a kind of task processing method, at this Reason method is executed by hereinbefore first processing module, and first processing module is referred to the content discussed above, no longer superfluous herein It states.Below with reference to Fig. 4, the process of task processing method provided by the embodiments of the present application is described in detail.
S101, it is in the standby state in terminal device, is sent by interface by peripheral hardware in first processing module After the first signal for handling first task, first processing module is in working condition from dormant state switching;
S102, first processing module determine whether resource consumed by processing first task is greater than or equal to preset threshold;
S103, when first processing module determine processing first task consumed by resource be greater than or equal to preset threshold when, Second signal is sent to Second processing module, so that Second processing module is switched to work shape from dormant state according to second signal State, and in the operating condition, handle first task.
In the embodiment of the present application, the specific implementation procedure of step S101~step S103 and the content phase discussed above Together, details are not described herein again.
Optionally, when first processing module determines that handling resource consumed by first task is less than preset threshold, first Processing module directly handles first task.The content of first task is referred to the content discussed above, and details are not described herein again.
After step s 103, the method in the embodiment of the present application further include: first processing module switches from working condition For dormant state.When first processing module in a dormant state when, first processing module can send the to Second processing module Two tasks, and first processing module can not handle the second task, the second task is that terminal device is receiving being followed by for first task Receiving for task.Second signal, the second task dispatching are referred to the content discussed above, and details are not described herein again.
Optionally, first processing module receives the third signal for handling the second task from Second processing module, In, it handling resource consumed by the second task and is less than preset threshold, first processing module is in working condition from dormant state switching, And in the operating condition, the second task is handled.Third signal is referred to the content discussed above, and details are not described herein again.
On the basis of the processing multitask method discussed above, the embodiment of the present application provides a kind of computer-readable storage medium Matter, the computer-readable recording medium storage have computer instruction, when the computer instruction is run on computers, make Obtain method of the computer execution as described in any one of Fig. 4.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this Shen to the embodiment of the present application Please embodiment spirit and scope.In this way, if these modifications and variations of the embodiment of the present application belong to the claim of this application And its within the scope of equivalent technologies, then the application is also intended to include these modifications and variations.

Claims (14)

1. a kind of terminal device, which is characterized in that the terminal device includes:
Interface, for connecting the peripheral hardware of the terminal device;
First processing module is connect with the interface;
Second processing module is connect with the first processing module;
Wherein, it is in the standby state in the terminal device, the first processing module is sent out by the peripheral hardware based on the received That send is used to handle the first signal of first task, is in working condition from dormant state switching, handles first task institute when determining When the resource of consumption is greater than or equal to preset threshold, second signal, the second processing mould are sent to the Second processing module Root tuber is in working condition according to the second signal from dormant state switching, and in the operating condition, handles the first task.
2. terminal device as described in claim 1, which is characterized in that the first processing module include signal processing circuit and Switch switching circuit, in which:
The signal processing circuit is connect with the Second processing module, forms the first access;
The switch switching circuit is connect with the interface, the signal processing circuit and the Second processing module respectively, The switch switching circuit passes through the first signal described in the interface, the switch switching circuit and signal processing electricity The first branch is formed between road, and second branch is formed between the switch switching circuit and the Second processing module, it is described to open Close the on off operating mode that switching circuit is used to control the first branch and the second branch.
3. terminal device as claimed in claim 2, which is characterized in that
When the switch switching circuit controls the first branch and is in connected state, the switch switching circuit is receiving institute After stating the first signal, first signal is sent to the signal processing circuit;
The signal processing circuit, receives and according to first signal, is in working condition from dormant state switching, and when true When handling resource consumed by the first task surely less than the preset threshold, the first task is handled.
4. terminal device as claimed in claim 3, which is characterized in that the signal processing circuit is also used to:
It is logical by described first when determining that handling resource consumed by the first task is greater than or equal to the preset threshold Road sends the second signal to the Second processing module.
5. terminal device as claimed in claim 3, which is characterized in that the signal processing circuit is also used to:
After sending the second signal to the Second processing module, dormant state is switched to from working condition.
6. terminal device as described in claim 4 or 5, which is characterized in that
The Second processing module is also used to be in working condition according to the second signal from dormant state switching, and to described Switch switching circuit sends first control signal;
The switch switching circuit is also used to control the first branch according to the first control signal and be in an off state, And the control second branch is in connected state.
7. the terminal device as described in claim 2-5 is any, which is characterized in that
The Second processing module is also used to after handling the first task, obtains second by the second branch Business, when determine resource consumed by second task be less than preset threshold, by first access, to the signal processing Circuit sends third signal, wherein second task is that the terminal device receives after receiving the first task Task;
The signal processing circuit, is also used to receive and according to the third signal, is in working condition from dormant state switching, and In the operating condition, second task is handled.
8. terminal device as claimed in claim 7, which is characterized in that
The signal processing circuit, is also used to according to the third signal, sends the second control letter to the switch switching circuit Number;
The switch switching circuit is also used to control the second branch according to the second control signal and be in an off state, And the control first branch is in connected state.
9. a kind of task processing method, which is characterized in that be applied to terminal device according to claims 1-8, the terminal Equipment includes interface, first processing module and Second processing module, which comprises
It is in the standby state in the terminal device, is sent by the interface by peripheral hardware in the first processing module For handling the first signal of first task after, the first processing module is in working condition from dormant state switching;
The first processing module, which determines, handles whether resource consumed by the first task is greater than or equal to preset threshold;
When resource consumed by the first processing module determines processing first task is greater than or equal to preset threshold, to described Second processing module sends second signal, so that the Second processing module is switched to according to the second signal from dormant state Working condition, and in the operating condition, handle the first task.
10. method as claimed in claim 9, which is characterized in that determine that processing is described first in the first processing module Whether resource consumed by being engaged in is greater than or equal to after preset threshold, the method also includes:
When the first processing module determines that handling resource consumed by the first task is less than the preset threshold, to institute First task is stated to be handled.
11. method as claimed in claim 9, which is characterized in that sending the second signal to the Second processing module Later, further includes:
The first processing module is switched to dormant state from working condition.
12. method as claimed in claim 9, which is characterized in that the first processing module in a dormant state under, it is described First processing module can send the second task to the Second processing module, and the first processing module can not handle it is described Second task, second task are terminal device received task after receiving the first task.
13. the method as described in claim 9-12 is any, which is characterized in that the method also includes:
The first processing module receives the third signal for handling the second task from the Second processing module, wherein Resource consumed by second task is handled less than preset threshold;
The first processing module is in working condition from dormant state switching, and in the operating condition, handles second task.
14. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, when the computer instruction is run on computers, so that computer is executed as described in any one of claim 9-13 Method.
CN201810941479.7A 2018-08-17 2018-08-17 Terminal device and task processing method Pending CN109298775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810941479.7A CN109298775A (en) 2018-08-17 2018-08-17 Terminal device and task processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810941479.7A CN109298775A (en) 2018-08-17 2018-08-17 Terminal device and task processing method

Publications (1)

Publication Number Publication Date
CN109298775A true CN109298775A (en) 2019-02-01

Family

ID=65165248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810941479.7A Pending CN109298775A (en) 2018-08-17 2018-08-17 Terminal device and task processing method

Country Status (1)

Country Link
CN (1) CN109298775A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647235A (en) * 2019-09-06 2020-01-03 Oppo广东移动通信有限公司 Data processing method and device based on terminal equipment and terminal equipment
CN113094103A (en) * 2020-01-09 2021-07-09 北京君正集成电路股份有限公司 Detection circuit system for recovering USB bus state
CN113296597A (en) * 2021-05-08 2021-08-24 展讯通信(上海)有限公司 Power consumption control method and terminal equipment
CN114167823A (en) * 2021-11-11 2022-03-11 合肥欣奕华智能机器有限公司 Robot control method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347130B2 (en) * 2009-02-06 2013-01-01 Samsung Electronics Co., Ltd. Low-power system-on-chip
CN104603724A (en) * 2012-08-17 2015-05-06 高通股份有限公司 Scalable touchscreen processing with realtime role negotiation among asymmetric processing cores
CN105487638A (en) * 2015-11-30 2016-04-13 北京天诚盛业科技有限公司 Electronic circuit system and power consumption reducing method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347130B2 (en) * 2009-02-06 2013-01-01 Samsung Electronics Co., Ltd. Low-power system-on-chip
CN104603724A (en) * 2012-08-17 2015-05-06 高通股份有限公司 Scalable touchscreen processing with realtime role negotiation among asymmetric processing cores
CN105487638A (en) * 2015-11-30 2016-04-13 北京天诚盛业科技有限公司 Electronic circuit system and power consumption reducing method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647235A (en) * 2019-09-06 2020-01-03 Oppo广东移动通信有限公司 Data processing method and device based on terminal equipment and terminal equipment
CN110647235B (en) * 2019-09-06 2022-07-08 Oppo广东移动通信有限公司 Data processing method and device based on terminal equipment and terminal equipment
CN113094103A (en) * 2020-01-09 2021-07-09 北京君正集成电路股份有限公司 Detection circuit system for recovering USB bus state
CN113094103B (en) * 2020-01-09 2024-02-27 北京君正集成电路股份有限公司 Detection circuit system for recovering USB bus state
CN113296597A (en) * 2021-05-08 2021-08-24 展讯通信(上海)有限公司 Power consumption control method and terminal equipment
CN114167823A (en) * 2021-11-11 2022-03-11 合肥欣奕华智能机器有限公司 Robot control method, device, electronic equipment and storage medium
CN114167823B (en) * 2021-11-11 2023-11-14 合肥欣奕华智能机器股份有限公司 Robot control method, apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN109298775A (en) Terminal device and task processing method
CN106604369B (en) Terminal equipment with dual-mode switching function
RU2739290C1 (en) Method of multiaddress unidirectional channel control and terminal device
CN106686557B (en) Broadcast processing method, device and terminal device
CN108880867A (en) A kind of network equipment collecting method and system
CN104025536B (en) For the synchronous system and method for application communication
CN105471704B (en) A kind of method, apparatus and system for realizing more people's calls
CN110493892B (en) Network connection method and device, storage medium and communication terminal
CN104866063B (en) A kind of method and electronic equipment of information processing
US7962159B2 (en) Method and system for receiving data on a portable device
CN107070670A (en) Broadcast transmission person is controlled to send method, device and the terminal device of broadcast message
WO2018161969A1 (en) Broadcast queue adjustment method and apparatus, and terminal device
CN110944318B (en) Lock card setting method and device, storage medium and terminal
CN112351097A (en) Device control method, device, sending end and storage medium
CN106878957B (en) Broadcast queue's generation method, device and terminal device
CN110708747A (en) Data transmission rate adjusting method, system, storage medium and mobile terminal
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
CN106953852A (en) Register method, device and the terminal device of radio receiver
CN106851595B (en) Ordered broadcast processing method, device and terminal device
CN106954191B (en) Broadcast transmission method, apparatus and terminal device
CN113918280A (en) Dynamic adjustment method of virtual machine resources, terminal device and storage medium
CN103279447A (en) Method, device and terminal for processing information
CN108475097A (en) A kind of electric quantity managing method and terminal device
CN106936826A (en) The register method of radio receiver, device and terminal device
CN108834204A (en) Paging method, system and the network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201

RJ01 Rejection of invention patent application after publication