摘要:
Embodiments of the present invention provide a data processing method and apparatus. The method includes: receiving a data packet sent by a server, and acquiring a type of the data packet; determining whether the type of the data packet is consistent with a type of a data packet processed by using a preset processing rule or a type of a protocol in a preset TCP/IP protocol stack to obtain a determining result; and if the type of the data packet is consistent with the type of the data packet processed by using the preset processing rule or the type of the protocol in the preset TCP/IP protocol stack, performing processing on the data packet according to the protocol in the preset TCP/IP protocol stack or the preset processing rule.
摘要:
The present invention discloses a method for acting as a service agent, including: receiving, by a modem, heartbeat configuration information corresponding to an application and sent by an application processor, where the application processor is in a sleep state after sending the heartbeat configuration information corresponding to the application, and establishing, by the modem according to the heartbeat configuration information corresponding to the application, a heartbeat connection with an application server corresponding to the application, so that the application processor is not woken up when the application has no updated content. Solutions provided by embodiments of the present invention can prevent an AP from being frequently woken up, thereby lowering power consumption of a terminal and extending standby time of the terminal.
摘要:
A method for controlling a central processing unit (CPU), where the method includes: acquiring a usage rate and an operating frequency of one CPU of operating CPUs; if the operating frequency of the one CPU is smaller than a core off-line frequency, multiplying the usage rate of the one CPU by a first weight to obtain a CPU power consumption sensitive factor corresponding to the one CPU; if the operating frequency of the one CPU is greater than or equal to the core off-line frequency, multiplying the usage rate of the one CPU by a second weight to obtain a CPU power consumption sensitive factor corresponding to the one CPU; and turning off at least one operating CPU if the mean is smaller than a CPU turn-off power consumption sensitive factor threshold.
摘要:
The present invention discloses a method for acting as a service agent, including: receiving, by a modem, heartbeat configuration information corresponding to an application and sent by an application processor, where the application processor is in a sleep state after sending the heartbeat configuration information corresponding to the application, and establishing, by the modem according to the heartbeat configuration information corresponding to the application, a heartbeat connection with an application server corresponding to the application, so that the application processor is not woken up when the application has no updated content. Solutions provided by embodiments of the present invention can prevent an AP from being frequently woken up, thereby lowering power consumption of a terminal and extending standby time of the terminal.