WO2017219661A1 - Terminal process controlling method and system - Google Patents

Terminal process controlling method and system Download PDF

Info

Publication number
WO2017219661A1
WO2017219661A1 PCT/CN2017/071088 CN2017071088W WO2017219661A1 WO 2017219661 A1 WO2017219661 A1 WO 2017219661A1 CN 2017071088 W CN2017071088 W CN 2017071088W WO 2017219661 A1 WO2017219661 A1 WO 2017219661A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
temperature
cpu temperature
cpu
controlling
Prior art date
Application number
PCT/CN2017/071088
Other languages
French (fr)
Chinese (zh)
Inventor
张敏
Original Assignee
捷开通讯(深圳)有限公司
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 捷开通讯(深圳)有限公司 filed Critical 捷开通讯(深圳)有限公司
Publication of WO2017219661A1 publication Critical patent/WO2017219661A1/en

Links

Classifications

    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method and system for controlling a terminal process.
  • the present invention provides a method and system for controlling a terminal process, which aims to solve the problem that the background process still runs continuously and consumes a large amount of CPU resources when the CPU temperature is lowered by adjusting the CPU frequency in the prior art.
  • a method of controlling a terminal process including:
  • the process of the terminal is divided into several running levels according to the importance degree from low to high, and the correspondence between the CPU temperature and the running level is established in advance;
  • controlling a process shutdown that belongs to the running level specifically includes:
  • the method for controlling a terminal process, wherein the monitoring the CPU temperature comprises:
  • the temperature of the terminal CPU is monitored in real time by the daemon process daemon process.
  • the method for controlling a terminal process, after monitoring a CPU temperature of the terminal further includes:
  • the control terminal When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation
  • the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
  • a method of controlling a terminal process including:
  • the process of the terminal is divided into several running levels according to the importance degree from low to high in advance;
  • the method for controlling a terminal process further comprising:
  • the method for controlling a terminal process includes:
  • the running level corresponding to the CPU temperature is obtained according to the correspondence between the preset temperature and the running level.
  • the method for controlling a terminal process wherein the controlling the process shutdown that belongs to the running level includes:
  • the method for controlling a terminal process, wherein the monitoring the CPU temperature comprises:
  • the temperature of the terminal CPU is monitored in real time by the daemon process.
  • the method for controlling a terminal process, after monitoring a CPU temperature of the terminal further includes:
  • the control terminal When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation
  • the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
  • a system for controlling a terminal process including:
  • a first preset module configured to divide the terminal process into a plurality of running levels from low to high according to an importance degree
  • a monitoring module configured to monitor a CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between a preset temperature and an operation level;
  • a control module is configured to control a process that belongs to the run level to be closed.
  • the system for controlling a terminal process further comprising:
  • the second preset module is configured to pre-establish a correspondence between the CPU temperature and the running level.
  • the system for controlling a terminal process wherein the monitoring module includes:
  • the monitoring unit is configured to preset a plurality of CPU temperature nodes in a low-to-high order, and monitor the CPU temperature in real time;
  • an obtaining unit configured to determine, according to a correspondence between the preset temperature and the running level, an operating level corresponding to the CPU temperature when the CPU temperature reaches a preset node.
  • control module configured to:
  • the method for controlling a terminal process wherein the monitoring module is configured to:
  • the temperature of the terminal CPU is monitored in real time by the daemon process.
  • control module is further configured to:
  • the control terminal When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation
  • the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
  • the method and system for controlling a terminal process close all processes corresponding to the CPU temperature of the current smart phone, reduce memory and CPU resources occupied by these processes, and reduce CPU temperature.
  • the process that has the least importance to the user is closed first, and is closed after the process with high importance to the user, which fully satisfies the user's need for the process to run.
  • the process corresponding to the running level is turned off, and the user is prevented from inadvertently using the malicious program or the garbage software is continuously running in the background and the user cannot be shut down, preventing the malicious program and the garbage software from running, causing the CPU temperature to be too high. .
  • FIG. 1 is a flow chart of a preferred embodiment of a method of controlling a terminal process in accordance with the present invention.
  • FIG. 2 is a functional block diagram of a system for controlling a terminal process according to the present invention.
  • FIG. 3 is a block diagram showing another functional principle of the system for controlling a terminal process according to the present invention.
  • the present invention provides a method and a system for controlling the progress of a terminal.
  • the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • the present invention provides a method for controlling a terminal process, as shown in FIG. 1, which includes:
  • the terminal is an intelligent mobile terminal such as an iPad, a palmtop computer, or a smart phone.
  • the process of the smartphone is divided into several running levels in advance, and the level of the running level is directly proportional to the importance of the process to the user, that is, the more important the process for the user in the smartphone, the higher the running level of the running; The less important the user is, the lower the running level of the user.
  • Each run level can contain only one process or multiple processes.
  • the running level may be set by the staff in the order generally applicable to most users.
  • the running level includes six levels of A, B, C, D, E, and F from low to high.
  • the A level includes a cache process.
  • the process node is stored in the smartphone system, but the process is not running, and the process is mostly idle, so the run level is set to the lowest level;
  • the B level includes the background process and the background process. Executed in the background, basically does not interact with the user, but still consumes CPU resources. After the background process is closed, it can release the CPU and memory resources it occupies.
  • the background process includes the built-in program of the smartphone, and many built-in programs are in each.
  • the C level contains the service service process that does not communicate with other processes (Service B process); D level contains service service process that communicates with other processes; E level contains special processes such as multimedia service (mediasever) process, mobile phone (phone) process, etc., which do not require additional hardware support; F level includes foreground process, foreground Processes need to interact with the user and require a high response speed with the highest level of operation.
  • a "running level setting" option can also be set in the smart phone, so that the user can select according to his own needs and wishes. After purchasing a smart phone, the user will add a lot of new applications to the smart phone. The user can divide the applications already stored in the smart phone into low-to-high importance according to the degree of importance to the user when performing the running level setting.
  • the running level such as setting the running level of the application process that is not commonly used by yourself to low, and setting the running level of the more commonly used application process to high.
  • some built-in programs in the user's smartphone the non-super user (ROOT) cannot be uninstalled and the user hardly uses it, but the self-starting and running in the background consumes memory and CPU resources every time the power is turned on.
  • the user can set such built-in programs to the same running level, and the running level is the lowest level; the user downloads and installs an application that calls 110 emergency calls such as autonomously under certain circumstances, in order to prevent the user from receiving personal injury, It is required for the user, so the application that such user self-downloaded and installed is set to the same running level, and the running level is the highest level.
  • S200 Monitor a CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level.
  • the method for controlling a terminal process further includes: pre-establishing a correspondence between the CPU temperature and an operation level, that is, the CPU temperature is associated with the operation level, and at the same time, the CPU temperature is associated with the process included in the operation level. If the CPU temperature is 30 °C corresponding to the operating level A, and the higher the CPU temperature, the corresponding operating level is higher.
  • the monitoring the CPU temperature is specifically: monitoring the temperature of the terminal CPU in real time through a daemon.
  • the temperature of the CPU is monitored in real time by the daemon process in the smartphone. Since there is a corresponding relationship between the CPU temperature and the running level, the CPU temperature and operation can be obtained according to the corresponding relationship between the preset temperature and the running level.
  • the levels correspond.
  • the CPU temperature and the running level may be a one-to-one correspondence, or may be a one-to-many/many-to-many correspondence, that is, each CPU temperature value corresponds to one running level, and corresponding to the process included in the running level; or each The CPU temperature value corresponds to several adjacent running levels, and corresponds to all the processes included in the running levels; or the temperature value interval of one CPU temperature corresponds to one running level; or the temperature value interval of one CPU temperature corresponds to several running levels .
  • the monitoring the CPU temperature of the terminal, and determining the running level corresponding to the CPU temperature according to the correspondence between the preset temperature and the running level specifically includes:
  • the running level corresponding to the CPU temperature is obtained according to the correspondence between the preset CPU temperature and the running level.
  • the user can pre-set the CPU temperature node according to his own needs.
  • five CPU temperature nodes are preset in order from low to high, respectively 35°C, 40°C, 42°C, 45°C, and 50.
  • °C the correspondence between the CPU temperature and the operating level is: when the CPU temperature is greater than or equal to 35 ° C and less than 40 ° C, the corresponding operating level is A and B; when the CPU temperature is greater than or equal to 40 ° C and less than 42 ° C, the corresponding operating level is C When the CPU temperature is greater than or equal to 42 ° C and less than 45 ° C, the corresponding operating level is E; when the CPU temperature is greater than or equal to 45 ° C and less than 50 ° C, the corresponding operating level is F.
  • the operating level is the higher the CPU temperature.
  • the controlling the process shutdown that belongs to the running level specifically includes: acquiring a process belonging to the running level, and controlling the process to be closed.
  • the running level corresponding to the CPU temperature of the current smart phone can be obtained, and all the processes corresponding to the CPU temperature of the current smart phone can be obtained, and the processes can be obtained at this time.
  • Shut down reduce the memory and CPU resources occupied by these processes, and reduce the CPU temperature.
  • the process corresponding to the running level is turned off, and the user is prevented from inadvertently using the malicious program or the garbage software is continuously running in the background and the user cannot be shut down, preventing the malicious program and the garbage software from running, causing the CPU temperature to be too high. .
  • the current CPU temperature when the current CPU temperature is 36 ° C, it is higher than the CPU temperature node by 35 ° C, and lower than the CPU temperature node 40 ° C. At this time, the CPU temperature is only slightly higher, and does not seriously affect The system is running, so you only need to shut down processes that are not important to the user.
  • the current CPU temperature is 36 °C, according to the corresponding relationship between the CPU temperature and the running level, the running level corresponding to the CPU temperature of the current smart phone is A level and B level, and then the running level belongs to the A level and the B level. All Cache processes and background processes; when the current CPU temperature is greater than or equal to 40 ° C and less than 42 ° C, all services included in the corresponding run level C level are closed.
  • the control terminal does not perform an operation, for example, when the temperature of the CPU does not reach 35 ° C, the smart phone does not perform any operation; when the CPU temperature is not less than the second preset
  • the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
  • the prompt information of the recommended shutdown is displayed on the display interface of the smart phone. It is recommended that the user not be in a situation where the CPU temperature is too high. Continue to use your phone.
  • the present invention also provides a system for controlling a terminal process.
  • FIG. 2 it is a functional block diagram of a system for controlling a terminal process according to the present invention, which includes:
  • the first preset module 10 is configured to divide the terminal process into a plurality of running levels from low to high according to the degree of importance, as described above;
  • the monitoring module 20 is configured to monitor the CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level, as described above;
  • the control module 30 is configured to control the process shutdown of the running level, as described above.
  • FIG. 3 is another functional block diagram of a system for controlling a terminal process according to the present invention.
  • the system for controlling a terminal process further includes:
  • the second preset module 40 is configured to pre-establish a correspondence between the CPU temperature and the running level, as described above.
  • the monitoring module 20 specifically includes:
  • the monitoring unit 201 is configured to preset a plurality of CPU temperature nodes in a low-to-high order, and monitor the CPU temperature in real time, as described above;
  • the obtaining unit 202 is configured to: when the CPU temperature reaches the preset node, obtain an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level, as described above.
  • the control module 30 is specifically configured to:
  • the control module 30 is further configured to:
  • the control terminal When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation; when the CPU temperature is not less than the second preset temperature threshold, the control terminal displays a prompt message suggesting shutdown.
  • the monitoring module 20 is specifically configured to:
  • the temperature of the terminal CPU is monitored in real time by the daemon process, as described above.
  • the method and system for controlling a terminal process include pre-assigning a process of a terminal into a plurality of operating levels according to an importance degree from low to high; monitoring a CPU temperature of the terminal, and operating according to a preset temperature The correspondence of the levels determines an operation level corresponding to the CPU temperature; and the process that controls the operation level is closed. Shut down all the processes corresponding to the CPU temperature of the current smartphone, reduce the memory and CPU resources occupied by these processes, reduce the CPU temperature, and shut down the process with the least importance to the user, and close the process with high importance to the user. Fully meet the needs of users running on the process.
  • the process corresponding to the running level is turned off, and the user is prevented from inadvertently using the malicious program or the garbage software is continuously running in the background and the user cannot be shut down, preventing the malicious program and the garbage software from running, causing the CPU temperature to be too high. .
  • the disclosed systems and methods may be implemented in other manners.
  • the system embodiment described above is merely illustrative.
  • the division of the module is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, system or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, and a read only memory (Read-Only) Memory, ROM, random access memory (RAM), disk or optical disc, and other media that can store program code.

Abstract

A terminal process controlling method and system. The method comprises: classifying processes of a terminal into a plurality of running levels according to the degrees of importance from low to high in advance (S100); monitoring the CPU temperature of the terminal, and determining a running level corresponding to the CPU temperature according to preset corresponding relations between temperatures and the running levels (S200); and controlling a process of said running level to be closed (S300).

Description

一种控制终端进程的方法及系统 Method and system for controlling terminal process 技术领域Technical field
本发明涉及终端技术领域,尤其涉及一种控制终端进程的方法及系统。The present invention relates to the field of terminal technologies, and in particular, to a method and system for controlling a terminal process.
背景技术Background technique
目前,多数终端设备都可以运行多用户多进程的操作系统,当终端设备上运行进程较多时,进程会在后台占用中央处理器(CPU,Central Processing Unit),导致CPU发热,系统卡顿的现象,此时终端设备为了降低CPU温度,多会采用调节CPU频率的方式,此种方式虽然降低了CPU温度,但是后台进程依旧会一直运行,并占用大量CPU资源,仍然可能导致CPU发热系统卡顿。At present, most terminal devices can run multi-user multi-process operating systems. When there are more processes running on the terminal devices, the process will occupy the central processing unit in the background (CPU, Central). Processing Unit), causing the CPU to heat up, the system is stuck. At this time, in order to reduce the CPU temperature, the terminal device will adopt the method of adjusting the CPU frequency. Although this method reduces the CPU temperature, the background process will still run and occupy. A lot of CPU resources can still cause the CPU to heat up the system.
因此,现有技术还有待于改进和发展。 Therefore, the prior art has yet to be improved and developed.
技术问题technical problem
本发明提供一种控制终端进程的方法及系统,旨在解决现有技术中采用调节CPU频率的方式降低CPU温度时后台进程依旧会一直运行,并占用大量CPU资源的问题。The present invention provides a method and system for controlling a terminal process, which aims to solve the problem that the background process still runs continuously and consumes a large amount of CPU resources when the CPU temperature is lowered by adjusting the CPU frequency in the prior art.
技术解决方案Technical solution
本发明解决技术问题所采用的技术方案如下:The technical solution adopted by the present invention to solve the technical problem is as follows:
一种控制终端进程的方法,其中包括:A method of controlling a terminal process, including:
预先将终端的进程按照重要程度从低到高划分为若干个运行等级,以及预先建立CPU温度与运行等级之间的对应关系;The process of the terminal is divided into several running levels according to the importance degree from low to high, and the correspondence between the CPU temperature and the running level is established in advance;
预先按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度,当所述CPU温度达到预设CPU温度节点时,根据CPU温度与运行等级的对应关系获取所述CPU温度对应的运行等级;Presetting the CPU temperature nodes in order from low to high, and monitoring the CPU temperature in real time. When the CPU temperature reaches the preset CPU temperature node, the corresponding operation of the CPU temperature is obtained according to the correspondence between the CPU temperature and the running level. grade;
控制属于所述运行等级的进程关闭。Controls the processes belonging to the run level to be closed.
所述控制终端进程的方法,其中控制属于所述运行等级的进程关闭具体包括:The method for controlling a terminal process, wherein controlling a process shutdown that belongs to the running level specifically includes:
获取属于所述运行等级的进程,控制所述进程关闭。Obtain a process belonging to the run level, and control the process to be closed.
所述控制终端进程的方法,其中所述监测所述CPU温度包括:The method for controlling a terminal process, wherein the monitoring the CPU temperature comprises:
通过守护进程daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process daemon process.
所述控制终端进程的方法,其中监测终端的CPU温度之后还包括:The method for controlling a terminal process, after monitoring a CPU temperature of the terminal, further includes:
当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation;
当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature is not less than the second preset temperature threshold, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
一种控制终端进程的方法,其中,包括:A method of controlling a terminal process, including:
预先将终端的进程按照重要程度从低到高划分为若干个运行等级;The process of the terminal is divided into several running levels according to the importance degree from low to high in advance;
监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级;Monitoring a CPU temperature of the terminal, and determining an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level;
控制属于所述运行等级的进程关闭。Controls the processes belonging to the run level to be closed.
所述控制终端进程的方法,其中,还包括:The method for controlling a terminal process, further comprising:
预先建立所述CPU温度与运行等级之间的对应关系。The correspondence between the CPU temperature and the operating level is established in advance.
所述控制终端进程的方法,其中,所述监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级包括:The method for controlling a terminal process, wherein the monitoring the CPU temperature of the terminal, and determining the running level corresponding to the CPU temperature according to the correspondence between the preset temperature and the running level, includes:
预先按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度;Set several CPU temperature nodes in order from low to high, and monitor CPU temperature in real time;
当所述CPU温度达到预设CPU温度节点时,根据预设温度与运行等级的对应关系获取所述CPU温度对应的运行等级。When the CPU temperature reaches the preset CPU temperature node, the running level corresponding to the CPU temperature is obtained according to the correspondence between the preset temperature and the running level.
所述控制终端进程的方法,其中,所述控制属于所述运行等级的进程关闭包括:The method for controlling a terminal process, wherein the controlling the process shutdown that belongs to the running level includes:
获取属于所述运行等级的进程,控制所述进程关闭。Obtain a process belonging to the run level, and control the process to be closed.
所述控制终端进程的方法,其中,所述监测所述CPU温度包括:The method for controlling a terminal process, wherein the monitoring the CPU temperature comprises:
通过daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process.
所述控制终端进程的方法,其中监测终端的CPU温度之后还包括:The method for controlling a terminal process, after monitoring a CPU temperature of the terminal, further includes:
当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation;
当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature is not less than the second preset temperature threshold, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
一种控制终端进程的系统,其中,包括:A system for controlling a terminal process, including:
第一预设模块,用于预先将终端进程按照重要程度从低到高划分为若干个运行等级;a first preset module, configured to divide the terminal process into a plurality of running levels from low to high according to an importance degree;
监测模块,用于监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级;a monitoring module, configured to monitor a CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between a preset temperature and an operation level;
控制模块,用于控制属于所述运行等级的进程关闭。A control module is configured to control a process that belongs to the run level to be closed.
所述控制终端进程的系统,其中,还包括:The system for controlling a terminal process, further comprising:
第二预设模块,用于预先建立所述CPU温度与运行等级之间的对应关系。The second preset module is configured to pre-establish a correspondence between the CPU temperature and the running level.
所述控制终端进程的系统,其中,所述监测模块包括:The system for controlling a terminal process, wherein the monitoring module includes:
监测单元,用于预设按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度;The monitoring unit is configured to preset a plurality of CPU temperature nodes in a low-to-high order, and monitor the CPU temperature in real time;
获取单元,用于当所述CPU温度达到预设节点时,获取根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级。And an obtaining unit, configured to determine, according to a correspondence between the preset temperature and the running level, an operating level corresponding to the CPU temperature when the CPU temperature reaches a preset node.
所述控制终端进程的系统,其中,所述控制模块用于:The system for controlling a terminal process, wherein the control module is configured to:
获取属于所述运行等级的进程,控制所述进程关闭。Obtain a process belonging to the run level, and control the process to be closed.
所述控制终端进程的方法,其中,所述监测模块用于:The method for controlling a terminal process, wherein the monitoring module is configured to:
通过daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process.
所述控制终端进程的方法,其中所述控制模块还用于:The method for controlling a terminal process, wherein the control module is further configured to:
当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation;
当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature is not less than the second preset temperature threshold, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
有益效果 Beneficial effect
有益效果:与现有技术相比,本发明提供的控制终端进程的方法及系统,将当前智能手机的CPU温度所对应的所有进程关闭,减少这些进程所占用的内存和CPU资源,降低CPU温度,对用户的重要性最低的进程先关闭,对用户重要性高的进程后关闭,充分满足用户对进程运行的需要。通过检测CPU温度来关闭对应运行等级的进程,同时更能避免用户无意中使用了恶意程序或者垃圾软件持续在后台运行而用户无法关闭的现象,防止恶意程序和垃圾软件的运行导致CPU温度过高。 Advantageous Effects: Compared with the prior art, the method and system for controlling a terminal process provided by the present invention close all processes corresponding to the CPU temperature of the current smart phone, reduce memory and CPU resources occupied by these processes, and reduce CPU temperature. The process that has the least importance to the user is closed first, and is closed after the process with high importance to the user, which fully satisfies the user's need for the process to run. By detecting the CPU temperature, the process corresponding to the running level is turned off, and the user is prevented from inadvertently using the malicious program or the garbage software is continuously running in the background and the user cannot be shut down, preventing the malicious program and the garbage software from running, causing the CPU temperature to be too high. .
附图说明DRAWINGS
图1是本发明所述控制终端进程的方法的较佳实施例的流程图。1 is a flow chart of a preferred embodiment of a method of controlling a terminal process in accordance with the present invention.
图2是本发明所述控制终端进程的系统的一种功能原理框图。2 is a functional block diagram of a system for controlling a terminal process according to the present invention.
图3是本发明所述控制终端进程的系统的另一功能原理框图。3 is a block diagram showing another functional principle of the system for controlling a terminal process according to the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
本发明提供了一种控制终端进程的方法及系统,为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention provides a method and a system for controlling the progress of a terminal. The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种控制终端进程的方法,如图1所示,其包括:The present invention provides a method for controlling a terminal process, as shown in FIG. 1, which includes:
S100、预先将终端的进程按照重要程度从低到高划分为若干个运行等级。S100. The process of the terminal is divided into several running levels according to the degree of importance in advance.
较佳的所述终端为iPad、掌上电脑、智能手机等智能移动终端,以下以智能手机为例对本发明进行进一步详细说明。预先把智能手机的进程划分为若干个运行等级,此运行等级的高低与进程对用户的重要程度成正比,即,智能手机中对用户来说越重要的进程,其所属运行等级越高;对用户越不重要的进程,其所属运行等级越低。每个运行等级中可以只包含一个进程,也可以包含多个进程。Preferably, the terminal is an intelligent mobile terminal such as an iPad, a palmtop computer, or a smart phone. The following is a detailed description of the present invention by taking a smart phone as an example. The process of the smartphone is divided into several running levels in advance, and the level of the running level is directly proportional to the importance of the process to the user, that is, the more important the process for the user in the smartphone, the higher the running level of the running; The less important the user is, the lower the running level of the user. Each run level can contain only one process or multiple processes.
所述运行等级可以由工作人员按照对多数用户普遍适用的顺序设定好,较佳的实施例,所述运行等级包括由低到高的A、B、C、D、E、F六个等级,A等级包含高速缓存(Cache)进程,智能手机系统内保存有此进程节点,但是此进程多不运行,多处于空闲状态,因此将其运行等级设置为最低;B等级包含后台进程,后台进程在后台执行,基本不和用户进行交互,但是依旧会占用CPU资源,将后台进程关闭后,可以释放其所占用的CPU和内存资源,后台进程中包括智能手机的内置程序,很多内置程序在每次开机时都会启动,而在后台运行,用户并不常用,又占用内存;C等级包含未和其它进程进行通信的service服务进程(Service B进程);D等级包含与其它进程进行通信的service服务进程;E等级包含如多媒体服务(mediasever)进程、手机(phone)进程等不需要额外硬件支持的特殊进程;F等级包含前台进程,前台进程需要与用户交互且需要较高的响应速度,其运行等级为最高。The running level may be set by the staff in the order generally applicable to most users. In the preferred embodiment, the running level includes six levels of A, B, C, D, E, and F from low to high. The A level includes a cache process. The process node is stored in the smartphone system, but the process is not running, and the process is mostly idle, so the run level is set to the lowest level; the B level includes the background process and the background process. Executed in the background, basically does not interact with the user, but still consumes CPU resources. After the background process is closed, it can release the CPU and memory resources it occupies. The background process includes the built-in program of the smartphone, and many built-in programs are in each. It will be started when it is turned on, but it will run in the background, the user is not used frequently, and it takes up memory; the C level contains the service service process that does not communicate with other processes (Service B process); D level contains service service process that communicates with other processes; E level contains special processes such as multimedia service (mediasever) process, mobile phone (phone) process, etc., which do not require additional hardware support; F level includes foreground process, foreground Processes need to interact with the user and require a high response speed with the highest level of operation.
较佳的,还可以在智能手机中设置一个“运行等级设置”选项,便于用户按照自己的需要和意愿进行选择。用户在购买智能手机后,会在智能手机中添加许多新的应用,用户可以在进行运行等级设置时,将智能手机中已经存储有的应用按照对用户自身的重要程度由低到高划分为若干个运行等级,如将自己平时不常用的应用进程的运行等级设置为低,而将自己较为常用的应用进程的运行等级设置为高。较佳的实施例,用户的智能手机中的某些内置程序,非超级用户(ROOT)无法卸载而用户几乎不会使用,却在每次开机时自启动并在后台运行占用内存和CPU资源,用户就可以将此类内置程序设置为同等运行等级,且运行等级为最低级别;用户自主下载安装的如特定情况下自主拨打110等紧急求救电话的应用程序,其为了防止用户收到人身伤害,对用户来说是必需的,因此将此类用户自主下载安装的应用程序设置为同等运行等级,且运行等级为最高级别。Preferably, a "running level setting" option can also be set in the smart phone, so that the user can select according to his own needs and wishes. After purchasing a smart phone, the user will add a lot of new applications to the smart phone. The user can divide the applications already stored in the smart phone into low-to-high importance according to the degree of importance to the user when performing the running level setting. The running level, such as setting the running level of the application process that is not commonly used by yourself to low, and setting the running level of the more commonly used application process to high. In a preferred embodiment, some built-in programs in the user's smartphone, the non-super user (ROOT) cannot be uninstalled and the user hardly uses it, but the self-starting and running in the background consumes memory and CPU resources every time the power is turned on. The user can set such built-in programs to the same running level, and the running level is the lowest level; the user downloads and installs an application that calls 110 emergency calls such as autonomously under certain circumstances, in order to prevent the user from receiving personal injury, It is required for the user, so the application that such user self-downloaded and installed is set to the same running level, and the running level is the highest level.
S200、监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级。S200: Monitor a CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level.
所述控制终端进程的方法还包括:预先建立所述CPU温度与运行等级之间的对应关系,即将CPU温度与运行等级对应起来,与此同时,CPU温度与运行等级中所包含的进程对应起来,如CPU温度为30℃与运行等级A级相对应,且CPU温度越高,对应的运行等级就越高。The method for controlling a terminal process further includes: pre-establishing a correspondence between the CPU temperature and an operation level, that is, the CPU temperature is associated with the operation level, and at the same time, the CPU temperature is associated with the process included in the operation level. If the CPU temperature is 30 °C corresponding to the operating level A, and the higher the CPU temperature, the corresponding operating level is higher.
所述监测所述CPU温度具体为:通过守护进程(daemon)实时监测所述终端CPU的温度。通过智能手机内daemon进程对CPU的温度进行实时监测,由于CPU温度与运行等级之间存在对应的关系,因此,可以根据预先设置的温度与运行等级的对应关系,将获取到的CPU温度与运行等级对应起来。CPU温度与运行等级可以为一一对应关系,也可以为一对多/多对多的对应关系,即每一个CPU温度值对应一个运行等级,同时对应运行等级中所包含的进程;或者每一个CPU温度值对应若干个相邻的运行等级,同时对应这些运行等级中所包含的所有进程;或者一个CPU温度的温度值区间对应一个运行等级;或者一个CPU温度的温度值区间对应若干个运行等级。The monitoring the CPU temperature is specifically: monitoring the temperature of the terminal CPU in real time through a daemon. The temperature of the CPU is monitored in real time by the daemon process in the smartphone. Since there is a corresponding relationship between the CPU temperature and the running level, the CPU temperature and operation can be obtained according to the corresponding relationship between the preset temperature and the running level. The levels correspond. The CPU temperature and the running level may be a one-to-one correspondence, or may be a one-to-many/many-to-many correspondence, that is, each CPU temperature value corresponds to one running level, and corresponding to the process included in the running level; or each The CPU temperature value corresponds to several adjacent running levels, and corresponds to all the processes included in the running levels; or the temperature value interval of one CPU temperature corresponds to one running level; or the temperature value interval of one CPU temperature corresponds to several running levels .
所述监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级具体包括:The monitoring the CPU temperature of the terminal, and determining the running level corresponding to the CPU temperature according to the correspondence between the preset temperature and the running level, specifically includes:
预先按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度;Set several CPU temperature nodes in order from low to high, and monitor CPU temperature in real time;
当所述CPU温度达到预设CPU温度节点时,根据预设CPU温度与运行等级的对应关系获取所述CPU温度对应的运行等级。When the CPU temperature reaches the preset CPU temperature node, the running level corresponding to the CPU temperature is obtained according to the correspondence between the preset CPU temperature and the running level.
用户可以根据自身需要对所述CPU温度节点进行预先设置,较佳的实施例,预先按照由低到高顺序设置五个CPU温度节点,分别为35℃、40℃、42℃、45℃和50℃,CPU温度与运行等级之间的对应关系为:CPU温度大于等于35℃并小于40℃时对应运行等级A级和B级;CPU温度大于等于40℃并小于42℃时对应运行等级C级;CPU温度大于等于42℃并小于45℃时对应运行等级E级;CPU温度大于等于45℃并小于50℃时对应运行等级F级。The user can pre-set the CPU temperature node according to his own needs. In the preferred embodiment, five CPU temperature nodes are preset in order from low to high, respectively 35°C, 40°C, 42°C, 45°C, and 50. °C, the correspondence between the CPU temperature and the operating level is: when the CPU temperature is greater than or equal to 35 ° C and less than 40 ° C, the corresponding operating level is A and B; when the CPU temperature is greater than or equal to 40 ° C and less than 42 ° C, the corresponding operating level is C When the CPU temperature is greater than or equal to 42 ° C and less than 45 ° C, the corresponding operating level is E; when the CPU temperature is greater than or equal to 45 ° C and less than 50 ° C, the corresponding operating level is F.
CPU温度越高,其对应的运行等级就越高,当所述CPU温度达到预设CPU温度节点时,根据上述CPU温度与运行等级的对应关系,就可以获取到当前智能手机的CPU温度所对应的运行等级。The higher the CPU temperature, the higher the corresponding operating level. When the CPU temperature reaches the preset CPU temperature node, according to the corresponding relationship between the CPU temperature and the running level, the CPU temperature of the current smartphone can be obtained. The operating level.
S300、控制属于所述运行等级的进程关闭。S300. Control a process belonging to the running level to be closed.
所述控制属于所述运行等级的进程关闭具体包括:获取属于所述运行等级的进程,控制所述进程关闭。根据上述CPU温度与运行等级的对应关系,就可以获取到当前智能手机的CPU温度所对应的运行等级,同时可以获取到当前智能手机的CPU温度所对应的所有进程,此时就可以将这些进程关闭,减少这些进程所占用的内存和CPU资源,降低CPU温度。通过检测CPU温度来关闭对应运行等级的进程,同时更能避免用户无意中使用了恶意程序或者垃圾软件持续在后台运行而用户无法关闭的现象,防止恶意程序和垃圾软件的运行导致CPU温度过高。The controlling the process shutdown that belongs to the running level specifically includes: acquiring a process belonging to the running level, and controlling the process to be closed. According to the corresponding relationship between the CPU temperature and the running level, the running level corresponding to the CPU temperature of the current smart phone can be obtained, and all the processes corresponding to the CPU temperature of the current smart phone can be obtained, and the processes can be obtained at this time. Shut down, reduce the memory and CPU resources occupied by these processes, and reduce the CPU temperature. By detecting the CPU temperature, the process corresponding to the running level is turned off, and the user is prevented from inadvertently using the malicious program or the garbage software is continuously running in the background and the user cannot be shut down, preventing the malicious program and the garbage software from running, causing the CPU temperature to be too high. .
较佳的实施例,当前CPU温度为36℃时,其高于CPU温度节点35℃,并低于CPU温度节点40℃,此时,CPU的温度只是有一些偏高,而并不会严重影响系统运行,因此只需要将对用户来说并不重要的进程关闭即可。当前CPU温度为36℃时,根据上述CPU温度与运行等级的对应关系,得到当前智能手机的CPU温度所对应的运行等级为A级和B级,进而获取到运行等级属于A级和B级的所有Cache进程和后台进程;当前CPU温度大于等于40℃并小于42℃时,关闭对应运行等级C级中所包含的所有Service B进程;当前CPU温度大于等于42℃并小于45℃时关闭对应运行等级E级中所包含的所有特殊进程;当前CPU温度大于等于45℃并小于50℃时关闭对应运行等级F级中所包含的所有前台进程。In a preferred embodiment, when the current CPU temperature is 36 ° C, it is higher than the CPU temperature node by 35 ° C, and lower than the CPU temperature node 40 ° C. At this time, the CPU temperature is only slightly higher, and does not seriously affect The system is running, so you only need to shut down processes that are not important to the user. When the current CPU temperature is 36 °C, according to the corresponding relationship between the CPU temperature and the running level, the running level corresponding to the CPU temperature of the current smart phone is A level and B level, and then the running level belongs to the A level and the B level. All Cache processes and background processes; when the current CPU temperature is greater than or equal to 40 ° C and less than 42 ° C, all services included in the corresponding run level C level are closed. B process; when the current CPU temperature is greater than or equal to 42 ° C and less than 45 ° C, all special processes included in the corresponding operation level E level are turned off; when the current CPU temperature is greater than or equal to 45 ° C and less than 50 ° C, the corresponding operation level F is included. All foreground processes.
较佳的,当CPU温度未达到第一预设温度阈值时,控制终端不执行操作,如当CPU的温度未达到35℃时,智能手机不执行任何操作;当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息,如当CPU的温度不小于50℃时,智能手机的显示界面上显示建议关机的提示信息,建议用户不要在CPU温度过高的情况下继续使用手机。Preferably, when the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation, for example, when the temperature of the CPU does not reach 35 ° C, the smart phone does not perform any operation; when the CPU temperature is not less than the second preset When the temperature threshold is displayed, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal. For example, when the temperature of the CPU is not less than 50 °C, the prompt information of the recommended shutdown is displayed on the display interface of the smart phone. It is recommended that the user not be in a situation where the CPU temperature is too high. Continue to use your phone.
本发明还提供一种控制终端进程的系统,如图2所示,是本发明所述控制终端进程的系统的一种功能原理框图,其包括:The present invention also provides a system for controlling a terminal process. As shown in FIG. 2, it is a functional block diagram of a system for controlling a terminal process according to the present invention, which includes:
第一预设模块10,用于预先将终端进程按照重要程度从低到高划分为若干个运行等级,具体如上所述;The first preset module 10 is configured to divide the terminal process into a plurality of running levels from low to high according to the degree of importance, as described above;
监测模块20,用于监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级,具体如上所述;The monitoring module 20 is configured to monitor the CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level, as described above;
控制模块30,用于控制属于所述运行等级的进程关闭,具体如上所述。The control module 30 is configured to control the process shutdown of the running level, as described above.
可一并参考图3,是本发明所述控制终端进程的系统的另一功能原理框图,所述控制终端进程的系统还包括:FIG. 3 is another functional block diagram of a system for controlling a terminal process according to the present invention. The system for controlling a terminal process further includes:
第二预设模块40,用于预先建立所述CPU温度与运行等级之间的对应关系,具体如上所述。The second preset module 40 is configured to pre-establish a correspondence between the CPU temperature and the running level, as described above.
如图3所示,所述监测模块20具体包括:As shown in FIG. 3, the monitoring module 20 specifically includes:
监测单元201,用于预设按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度,具体如上所述;The monitoring unit 201 is configured to preset a plurality of CPU temperature nodes in a low-to-high order, and monitor the CPU temperature in real time, as described above;
获取单元202,用于当所述CPU温度达到预设节点时,获取根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级,具体如上所述。The obtaining unit 202 is configured to: when the CPU temperature reaches the preset node, obtain an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level, as described above.
所述控制模块30具体用于:The control module 30 is specifically configured to:
获取属于所述运行等级的进程,控制所述进程关闭,具体如上所述。Obtaining a process belonging to the run level, and controlling the process to be closed, as described above.
其中所述控制模块30还用于:The control module 30 is further configured to:
当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation; when the CPU temperature is not less than the second preset temperature threshold, the control terminal displays a prompt message suggesting shutdown.
所述监测模块20具体用于:The monitoring module 20 is specifically configured to:
通过daemon进程实时监测所述终端CPU的温度,具体如上所述。The temperature of the terminal CPU is monitored in real time by the daemon process, as described above.
综上所述,本发明提供的控制终端进程的方法及系统,包括预先将终端的进程按照重要程度从低到高划分为若干个运行等级;监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级;控制属于所述运行等级的进程关闭。将当前智能手机的CPU温度所对应的所有进程关闭,减少这些进程所占用的内存和CPU资源,降低CPU温度,对用户的重要性最低的进程先关闭,对用户重要性高的进程后关闭,充分满足用户对进程运行的需要。通过检测CPU温度来关闭对应运行等级的进程,同时更能避免用户无意中使用了恶意程序或者垃圾软件持续在后台运行而用户无法关闭的现象,防止恶意程序和垃圾软件的运行导致CPU温度过高。In summary, the method and system for controlling a terminal process according to the present invention include pre-assigning a process of a terminal into a plurality of operating levels according to an importance degree from low to high; monitoring a CPU temperature of the terminal, and operating according to a preset temperature The correspondence of the levels determines an operation level corresponding to the CPU temperature; and the process that controls the operation level is closed. Shut down all the processes corresponding to the CPU temperature of the current smartphone, reduce the memory and CPU resources occupied by these processes, reduce the CPU temperature, and shut down the process with the least importance to the user, and close the process with high importance to the user. Fully meet the needs of users running on the process. By detecting the CPU temperature, the process corresponding to the running level is turned off, and the user is prevented from inadvertently using the malicious program or the garbage software is continuously running in the background and the user cannot be shut down, preventing the malicious program and the garbage software from running, causing the CPU temperature to be too high. .
在本发明所提供的实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other manners. For example, the system embodiment described above is merely illustrative. For example, the division of the module is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, system or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, and a read only memory (Read-Only) Memory, ROM, random access memory (RAM), disk or optical disc, and other media that can store program code.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (18)

  1. 一种控制终端进程的方法,其中包括:A method of controlling a terminal process, including:
    预先将终端的进程按照重要程度从低到高划分为若干个运行等级,以及预先建立CPU温度与运行等级之间的对应关系;The process of the terminal is divided into several running levels according to the importance degree from low to high, and the correspondence between the CPU temperature and the running level is established in advance;
    预先按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度,当所述CPU温度达到预设CPU温度节点时,根据CPU温度与运行等级的对应关系获取所述CPU温度对应的运行等级;Presetting the CPU temperature nodes in order from low to high, and monitoring the CPU temperature in real time. When the CPU temperature reaches the preset CPU temperature node, the corresponding operation of the CPU temperature is obtained according to the correspondence between the CPU temperature and the running level. grade;
    控制属于所述运行等级的进程关闭。Controls the processes belonging to the run level to be closed.
  2. 根据权利要求1所述控制终端进程的方法,其特征在于,所述控制属于所述运行等级的进程关闭具体包括:The method of controlling a terminal process according to claim 1, wherein the controlling the process shutdown of the running level comprises:
    获取属于所述运行等级的进程,控制所述进程关闭。Obtain a process belonging to the run level, and control the process to be closed.
  3. 根据权利要求1所述控制终端进程的方法,其中所述监测所述CPU温度包括:The method of controlling a terminal process according to claim 1, wherein said monitoring said CPU temperature comprises:
    通过守护进程daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process daemon process.
  4. 根据权利要求1所述控制终端进程的方法,其中监测终端的CPU温度之后还包括:The method of controlling a terminal process according to claim 1, wherein after monitoring the CPU temperature of the terminal, the method further comprises:
    当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation;
    当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature is not less than the second preset temperature threshold, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
  5. 一种控制终端进程的方法,其中包括:A method of controlling a terminal process, including:
    预先将终端的进程按照重要程度从低到高划分为若干个运行等级;The process of the terminal is divided into several running levels according to the importance degree from low to high in advance;
    监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级;Monitoring a CPU temperature of the terminal, and determining an operation level corresponding to the CPU temperature according to a correspondence between the preset temperature and the operation level;
    控制属于所述运行等级的进程关闭。Controls the processes belonging to the run level to be closed.
  6. 根据权利要求5所述控制终端进程的方法,其中还包括:The method of controlling a terminal process according to claim 5, further comprising:
    预先建立所述CPU温度与运行等级之间的对应关系。The correspondence between the CPU temperature and the operating level is established in advance.
  7. 根据权利要求5所述控制终端进程的方法,其中所述监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级包括:The method of controlling a terminal process according to claim 5, wherein the monitoring the CPU temperature of the terminal and determining the running level corresponding to the CPU temperature according to the correspondence between the preset temperature and the operating level comprises:
    预先按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度;Set several CPU temperature nodes in order from low to high, and monitor CPU temperature in real time;
    当所述CPU温度达到预设CPU温度节点时,根据预设温度与运行等级的对应关系获取所述CPU温度对应的运行等级。When the CPU temperature reaches the preset CPU temperature node, the running level corresponding to the CPU temperature is obtained according to the correspondence between the preset temperature and the running level.
  8. 根据权利要求5所述控制终端进程的方法,其中所述控制属于所述运行等级的进程关闭包括:A method of controlling a terminal process according to claim 5, wherein said controlling a process shutdown belonging to said run level comprises:
    获取属于所述运行等级的进程,控制所述进程关闭。Obtain a process belonging to the run level, and control the process to be closed.
  9. 根据权利要求5所述控制终端进程的方法,其中所述监测所述CPU温度包括:The method of controlling a terminal process according to claim 5, wherein said monitoring said CPU temperature comprises:
    通过守护进程daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process daemon process.
  10. 根据权利要求7所述控制终端进程的方法,其中所述监测所述CPU温度包括:A method of controlling a terminal process according to claim 7, wherein said monitoring said CPU temperature comprises:
    通过daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process.
  11. 根据权利要求5所述控制终端进程的方法,其中监测终端的CPU温度之后还包括:The method of controlling a terminal process according to claim 5, wherein after monitoring the CPU temperature of the terminal, the method further comprises:
    当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation;
    当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature is not less than the second preset temperature threshold, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
  12. 一种控制终端进程的系统,其中其包括:A system for controlling a terminal process, which includes:
    第一预设模块,用于预先将终端进程按照重要程度从低到高划分为若干个运行等级;a first preset module, configured to divide the terminal process into a plurality of running levels from low to high according to an importance degree;
    监测模块,用于监测终端的CPU温度,并根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级;a monitoring module, configured to monitor a CPU temperature of the terminal, and determine an operation level corresponding to the CPU temperature according to a correspondence between a preset temperature and an operation level;
    控制模块,用于控制属于所述运行等级的进程关闭。A control module is configured to control a process that belongs to the run level to be closed.
  13. 根据权利要求12所述控制终端进程的系统,其中还包括:The system for controlling a terminal process according to claim 12, further comprising:
    第二预设模块,用于预先建立所述CPU温度与运行等级之间的对应关系。The second preset module is configured to pre-establish a correspondence between the CPU temperature and the running level.
  14. 根据权利要求12所述控制终端进程的系统,其中所述监测模块包括:A system for controlling a terminal process according to claim 12, wherein said monitoring module comprises:
    监测单元,用于预设按照由低到高顺序设置若干个CPU温度节点,并实时监测CPU温度;The monitoring unit is configured to preset a plurality of CPU temperature nodes in a low-to-high order, and monitor the CPU temperature in real time;
    获取单元,用于当所述CPU温度达到预设节点时,获取根据预设温度与运行等级的对应关系确定所述CPU温度对应的运行等级。And an obtaining unit, configured to determine, according to a correspondence between the preset temperature and the running level, an operating level corresponding to the CPU temperature when the CPU temperature reaches a preset node.
  15. 根据权利要求12所述控制终端进程的系统,其中所述控制模块用于:A system for controlling a terminal process according to claim 12, wherein said control module is configured to:
    获取属于所述运行等级的进程,控制所述进程关闭。Obtain a process belonging to the run level, and control the process to be closed.
  16. 根据权利要求12所述控制终端进程的方法,其中所述监测模块用于:The method of controlling a terminal process according to claim 12, wherein said monitoring module is configured to:
    通过守护进程daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process daemon process.
  17. 根据权利要求14所述控制终端进程的方法,其中所述监测模块用于:The method of controlling a terminal process according to claim 14, wherein said monitoring module is configured to:
    通过daemon进程实时监测所述终端CPU的温度。The temperature of the terminal CPU is monitored in real time by the daemon process.
  18. 根据权利要求12所述控制终端进程的方法,其中所述控制模块还用于:The method of controlling a terminal process according to claim 12, wherein the control module is further configured to:
    当CPU温度未达到第一预设温度阈值时,控制终端不执行操作;When the CPU temperature does not reach the first preset temperature threshold, the control terminal does not perform an operation;
    当CPU温度不小于第二预设温度阈值时,控制终端显示界面上显示建议关机的提示信息。When the CPU temperature is not less than the second preset temperature threshold, the prompt information of the recommended shutdown is displayed on the display interface of the control terminal.
PCT/CN2017/071088 2016-06-20 2017-01-13 Terminal process controlling method and system WO2017219661A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610440979.3 2016-06-20
CN201610440979.3A CN106095556A (en) 2016-06-20 2016-06-20 A kind of method and system controlling terminal processes

Publications (1)

Publication Number Publication Date
WO2017219661A1 true WO2017219661A1 (en) 2017-12-28

Family

ID=57236156

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071088 WO2017219661A1 (en) 2016-06-20 2017-01-13 Terminal process controlling method and system

Country Status (2)

Country Link
CN (1) CN106095556A (en)
WO (1) WO2017219661A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095556A (en) * 2016-06-20 2016-11-09 惠州Tcl移动通信有限公司 A kind of method and system controlling terminal processes
CN107390670A (en) * 2017-06-27 2017-11-24 深圳市爱培科技术股份有限公司 Android system resource control method, storage medium and intelligent terminal
CN107861813B (en) * 2017-10-26 2022-01-14 Oppo广东移动通信有限公司 Processor control method and related product
CN109358961B (en) * 2018-08-14 2021-12-21 深圳市先河系统技术有限公司 Resource scheduling method and device with storage function
EP3876580B1 (en) * 2018-10-31 2023-11-29 Beijing Xiaomi Mobile Software Co., Ltd. Configuration adjustment method and apparatus, electronic device, and computer readable storage medium
CN111738404B (en) * 2020-05-08 2024-01-12 深圳市万普拉斯科技有限公司 Model training task processing method and device, electronic equipment and storage medium
CN113268354A (en) * 2021-06-23 2021-08-17 广州小鹏汽车科技有限公司 Process management method, vehicle-mounted device, vehicle and readable storage medium
CN113589864A (en) * 2021-07-29 2021-11-02 宁波三星医疗电气股份有限公司 Temperature control method of energy controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902335A (en) * 2014-03-12 2014-07-02 上海天奕达电子科技有限公司 Method and system for cleaning background programs
CN104317373A (en) * 2014-10-21 2015-01-28 北京奇虎科技有限公司 Method and device for cooling mobile terminal
CN104427124A (en) * 2013-09-09 2015-03-18 中兴通讯股份有限公司 Method, device and terminal for controlling terminal temperature
CN105302637A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Restoration method and apparatus for jamming caused by system process runtime exception and mobile terminal
CN106095556A (en) * 2016-06-20 2016-11-09 惠州Tcl移动通信有限公司 A kind of method and system controlling terminal processes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427124A (en) * 2013-09-09 2015-03-18 中兴通讯股份有限公司 Method, device and terminal for controlling terminal temperature
CN103902335A (en) * 2014-03-12 2014-07-02 上海天奕达电子科技有限公司 Method and system for cleaning background programs
CN104317373A (en) * 2014-10-21 2015-01-28 北京奇虎科技有限公司 Method and device for cooling mobile terminal
CN105302637A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Restoration method and apparatus for jamming caused by system process runtime exception and mobile terminal
CN106095556A (en) * 2016-06-20 2016-11-09 惠州Tcl移动通信有限公司 A kind of method and system controlling terminal processes

Also Published As

Publication number Publication date
CN106095556A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2017219661A1 (en) Terminal process controlling method and system
WO2017107611A1 (en) Smart household control method, device and system
WO2018018695A1 (en) Application freezing management method and device, and terminal
WO2019174090A1 (en) Screenshot file sharing control method, apparatus and device, and computer storage medium
WO2016169390A1 (en) Application security protection method, terminal, and storage medium
WO2017215262A1 (en) Photographing method and system based on supplementary screen lighting
WO2016068620A1 (en) Electronic device and method of controlling power of electronic device
WO2015126135A1 (en) Method and apparatus for processing biometric information in electronic device
WO2018107811A1 (en) Joint defence method and apparatus for network security, and server and storage medium
WO2018076861A1 (en) Data transmission control method, apparatus, storage medium, server and system
WO2017188577A1 (en) Method for controlling battery charging and electronic device therefor
WO2018082142A1 (en) Screen recording method and device
WO2018164546A1 (en) Method and apparatus for managing battery of electronic device
WO2019139364A1 (en) Method and apparatus for modifying features associated with applications
WO2017088513A1 (en) Service processing method, device, and mobile terminal under hybrid network standard
WO2017142309A1 (en) Electronic device and method for controlling application and component
WO2017122980A1 (en) Electronic device and method for authenticating identification information thereof
WO2018076879A1 (en) Data backup method and apparatus, storage medium, and terminal
WO2018161593A1 (en) Broadcast processing method, device, storage medium and terminal device
WO2018010507A1 (en) Awakening monitoring method of terminal system, storage medium, terminal, and electronic device
WO2018090465A1 (en) Video monitoring method and system, and monitoring device
WO2020258574A1 (en) Air conditioner control method and device, air conditioner, and storage medium
WO2018076890A1 (en) Data backup method, device, storage medium, server and system
WO2018082483A1 (en) Method and system for processing application program notification of mobile terminal, and mobile terminal
WO2018076863A1 (en) Data storage method, apparatus, storage medium, server and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17814401

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 210519)

122 Ep: pct application non-entry in european phase

Ref document number: 17814401

Country of ref document: EP

Kind code of ref document: A1