CPU resource allotting method and terminal
A CPU resource and allocation method technology, applied in the CPU resource allocation method and the terminal field, to achieve the balance between performance and power consumption, improve overall performance, and ensure the effect of performance and power consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] A terminal process generally has four states, running, waiting, sleeping, and terminating, and the processing object of this embodiment is a process in a non-terminating state of the terminal. see figure 2 , a terminal is shown in this embodiment, the terminal can refer to a CGROUPS mechanism in the LINUX kernel, and divide the processes in the terminal in the non-terminating state into at least two different levels of CPU setting nodes according to the importance of the process (CPUSET node), and then dynamically obtain the CPU information of the terminal internal line, and allocate online CPU resources for each node according to the importance of the CPUSET node. So that the terminal can automatically limit the resources that can be used by a single or multiple processes, so that important processes may be allocated more CPU resources, ensure the smoothness of the terminal through the allocation of CPU resources, and avoid new processes without affecting performance....
Embodiment 2
[0129] see Figure 5 , this embodiment shows a terminal, including a controller 51 and a memory 52 . The controller 51 is used to determine the process in the non-terminating state in the terminal, and according to the importance of each process in the non-terminating state to the interactive experience between the user and the terminal, the process is divided into different levels of preset CPU setting nodes; monitoring The state of each CPU core in the terminal obtains the information of the currently online CPU core; according to the level of each CPU setting node, allocates online CPU core resources for running processes to each CPU setting node. Wherein, information about different levels of CPU setting nodes and information about online CPU core resources allocated to running processes for each CPU setting node may be stored in the memory 52 .
[0130] Wherein, the terminal in this embodiment is generally a multi-core terminal, and the number of CPU cores of the termina...
Embodiment 3
[0157] see Figure 6 , this embodiment shows a method for allocating CPU resources, including:
[0158] S601. Determine the processes in the non-terminating state in the terminal, and divide the processes into preset CPU setting nodes of different levels according to the importance of each process in the non-terminating state to the interactive experience between the user and the terminal;
[0159] S602. Monitor the status of each CPU core in the terminal, and obtain information about the currently online CPU core;
[0160] S603. According to the level of each CPU setting node, allocate online CPU core resources for running processes to each CPU setting node.
[0161] Wherein, the terminal in this embodiment is generally a multi-core terminal, and the number of CPU cores of the terminal is not limited, and may be eight cores or other numbers of cores. The terminal may be a mobile terminal such as a mobile phone, a tablet, or a notebook computer, or may be a fixed terminal su...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com