WO2019137170A1 - 信息处理方法、移动终端及计算机可读存储介质 - Google Patents
信息处理方法、移动终端及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2019137170A1 WO2019137170A1 PCT/CN2018/122048 CN2018122048W WO2019137170A1 WO 2019137170 A1 WO2019137170 A1 WO 2019137170A1 CN 2018122048 W CN2018122048 W CN 2018122048W WO 2019137170 A1 WO2019137170 A1 WO 2019137170A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- background process
- foreground application
- running
- foreground
- association relationship
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Definitions
- the present application relates to the field of computer technology, and in particular, to an information processing method, a mobile terminal, and a computer readable storage medium.
- the smart mobile terminal can freeze the background application that preempts the foreground application resource, and freezes the application running in the background, and the frozen background application no longer uses the system resource, thereby reducing power consumption and improving the foreground application.
- the effect of running fluency is not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to the smart mobile terminal.
- an information processing method a mobile terminal, and a computer readable storage medium are provided, and a background process associated with a foreground application can be thawed to speed up a system response rate.
- An information processing method includes:
- the background process is thawed.
- a mobile terminal includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following operations:
- the background process is thawed.
- a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to:
- the background process is thawed.
- the information processing method, the mobile terminal, and the computer readable storage medium provided by the embodiment of the present application record the running time of the foreground application in the foreground when the foreground application is started, and if the running time reaches the preset time threshold, the front end is obtained.
- the background process with the associated relationship is applied, and the background process with the associated relationship in the frozen state is thawed, and the background process associated with the foreground application can be thawed, thereby reducing the need for the foreground application to use the background with the associated relationship in the running.
- the process waits for the thawing to speed up the system response rate.
- FIG. 1 is a block diagram of a mobile terminal in one embodiment.
- FIG. 2 is a system architecture diagram of an information processing method in an embodiment.
- FIG. 3 is a schematic flow chart of an information processing method in an embodiment.
- FIG. 4 is a schematic flowchart of determining a resource restriction level of a background process associated with a foreground application in an embodiment.
- Figure 5 is a schematic diagram of a resource group in one embodiment.
- FIG. 6 is a schematic flowchart of determining a resource restriction level of a background process associated with a foreground application in another embodiment.
- Figure 7 is a flow diagram showing the process of terminating a state in a frozen state in one embodiment.
- Figure 8 is a block diagram of an information processing apparatus in one embodiment.
- Figure 9 is a block diagram of an information processing apparatus in another embodiment.
- Figure 10 is a block diagram of a mobile terminal in another embodiment.
- first, second and the like may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another.
- a first resource group may be referred to as a second resource group without departing from the scope of the present application, and similarly, a second resource group may be referred to as a first resource group.
- Both the first resource group and the second resource group are resource groups, but they are not the same resource group.
- the mobile terminal includes a processor, a memory, a display screen, and an input device connected through a system bus.
- the memory may include a non-volatile storage medium and a processor.
- the non-volatile storage medium of the mobile terminal stores an operating system and a computer program, which are executed by the processor to implement an information processing method provided in the embodiments of the present application.
- the processor is used to provide computing and control capabilities to support the operation of the entire mobile terminal.
- the internal memory in the mobile terminal provides an environment for the operation of a computer program in a non-volatile storage medium.
- the display screen of the mobile terminal may be a liquid crystal display or an electronic ink display screen.
- the input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the casing of the mobile terminal, or may be An external keyboard, trackpad, or mouse.
- the mobile terminal can be a mobile phone, a tablet or a personal digital assistant or a wearable device.
- FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the mobile terminal to which the solution of the present application is applied.
- the specific mobile terminal may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
- the system architecture includes a JAVA spatial layer 210, a local framework layer 220, and a kernel space layer 230.
- the JAVA spatial layer 210 can include a freeze management module 212.
- the freeze management module 212 can implement a freeze policy for each running application, and freeze the related applications that consume more power in the background or preempt a large amount of system resources.
- a resource priority and restriction manager 222 and a platform freeze manager 224 are included in the local framework layer 220.
- the mobile terminal can maintain different applications in different resource usage priorities and different resource groups in real time through the resource priority and restriction manager 222, and adjust the resource group of the application according to the requirements of the upper layer to achieve optimized performance. Save power.
- the mobile terminal can use the platform freeze manager 224 to allocate the freezeable application in the background to the freeze layer of the corresponding preset different levels according to the length of the entry freeze time.
- the frozen layer may include three: a CPU limited sleep mode, a CPU freeze sleep mode, and a process deep freeze mode.
- the CPU restricts the sleep mode to limit the CPU resources occupied by the related processes, so that the related processes occupy less CPU resources, and the free CPU resources are tilted to other unfrozen processes, thereby limiting the occupation of CPU resources.
- the local framework layer 220 may further include an interface module, where the interface module includes a binder interface developed to the upper layer, and the upper layer framework or the application sends the resource restriction or the frozen instruction to the resource priority and the limit management through the provided binder interface.
- the kernel space layer 230 may include a UID management module 231, a Cgroup module 233, a Binder management module 235, a process memory recovery module 237, and a freeze timeout exit module 239.
- the UID management module 231 is configured to implement an application-based User Identifier (UID) to manage resources of a third-party application or freeze. Compared with the Process Identifier (PID) for process management and control, it is easier to uniformly manage the resources of a user's application through UID.
- the Cgroup module 233 is used to provide a complete set of CPU, CPUSET, memory, input/output (I/O) and Net related resource restriction mechanisms.
- the Binder management module 235 is used to implement the priority control of the background binder communication.
- the process memory recovery module 237 is configured to implement the process deep freeze mode, so that when a third-party application is in a frozen state for a long time, the file area of the process is mainly released, thereby saving the memory module and speeding up the application next time.
- the freeze timeout exit module 239 can be used to resolve an exception generated by the freeze timeout scenario.
- an information processing method including the following operations:
- the mobile terminal can run one or more applications at the same time, and can include a foreground application running in the foreground and a background application running in the background.
- the mobile terminal can monitor the running status of each application, wherein the running status can include, but is not limited to, startup, foreground running, background running, and exiting.
- the mobile terminal monitors that the foreground application is started the running time of the foreground application in the foreground after the startup is recorded, wherein monitoring the foreground application startup may mean that the application is started to be launched and enters the foreground operation.
- the mobile terminal can monitor the running application through the activity manager to obtain the running status of each running application.
- the mobile terminal can obtain the running application list through the activity manager's RunningAppProcessInfo class at intervals.
- the application list can record the application identifier of each application currently running by the mobile terminal, where the application identifier can be It consists of one or more of numbers, letters and symbols.
- the mobile terminal may compare the application identifier in the acquired application list with the application identifier in the application list obtained last time. When the application identifier of the application exists only in the application list acquired this time, and does not exist in the application list acquired last time, the application may be determined to be the newly launched application.
- the mobile terminal can obtain the newly launched application, and determine whether the newly launched application is running in the foreground or in the background. When the newly launched application is running in the foreground, the application can be determined to be the foreground application of the startup.
- a process is a running activity of a program on a computer on a data set. It is the basic unit of the system for resource allocation and scheduling, and is the basis of the operating system structure. There are usually multiple processes running on a mobile terminal, and different processes can be used to perform different tasks separately.
- the mobile terminal monitors that the foreground application starts, it can record the time that the foreground application runs in the foreground after being started.
- the running time of the foreground application is up to the preset time threshold, the mobile terminal can obtain the background process that is currently running in the background and has an association relationship with the foreground application.
- the mobile terminal can obtain each process currently running in the background through the activity manager, and query a background process that has an association relationship with the foreground application in each process currently running in the background according to the application identifier of the foreground application.
- the mobile terminal may pre-store the association relationship between the application and the process.
- the background process that is associated with the foreground application may be a background process that has a communication mechanism with the foreground application, a background process that has a calling relationship with the foreground application, or a background process that belongs to the same publisher as the foreground application. But it is not limited to this.
- Communication mechanisms refer to the propagation or exchange of information between different processes and/or applications.
- the communication mechanism may include a socket, a binder, a shared memory, etc., wherein two programs on the network exchange data through a two-way communication connection, one end of the connection is called a socket; the binder is an interprocess Communication mechanism, providing remote procedure call function; shared memory is to allow two unrelated processes to access the same logical memory, shared memory is a very effective way to share and transfer data between two running processes, different The memory shared between processes is usually arranged in the same piece of physical memory.
- the calling relationship refers to the foreground application invoking the background process to execute the corresponding task, for example, calling the login information stored in the background process to perform the login operation, wherein the login information refers to account information, password, etc., which can be used for login, or call the background.
- the process is positioned, etc., but is not limited to this.
- a background process that belongs to the same publisher as the foreground application can carry the same release label as the foreground application, which can be used to identify the publisher that published the application.
- Operation 330 determining a state of a background process having an association relationship with the foreground application.
- the mobile terminal may obtain the status of each generated background process associated with the foreground application.
- the status of the background process may include, but is not limited to, a frozen state and a defrosted state.
- the frozen state means that the background process cannot use the CPU, /O, network, etc., and cannot continue to run. However, the background process still occupies memory resources, hard disk resources, etc.; the defrosted state refers to the background process can use the CPU, System resources such as I/O, memory, and network are in a state where they can run execution tasks.
- the mobile terminal may acquire a background process in a frozen state associated with the foreground application.
- the mobile terminal can obtain a status label of each background process that is associated with the foreground application, and different states can be represented by different status labels.
- the status label corresponding to the frozen status is 0, and the status label corresponding to the defrosted status It is 1st, etc., but is not limited to this.
- the mobile terminal can acquire the background process in the frozen state according to the status tag of each background process that is associated with the foreground application.
- the mobile terminal may also send a communication signal to each background process having an association relationship with the foreground application, and detect whether the response signal is received within a predetermined time period. When the response signal returned by the process is not received within the predetermined time period, it may be determined that the state of the background process that did not send the response signal is a frozen state. It can be understood that the background process in the frozen state that is associated with the foreground application may be obtained in other manners, and is not limited to the above manners.
- the background process in the frozen state may be thawed.
- the mobile terminal can send the defrosting information to the background process in a frozen state associated with the foreground application, and the defrosting signal enables the background process to enter the defrosting state, and can use system resources such as CPU, I/O, memory, and network to operate normally. And perform the task.
- system resources such as CPU, I/O, memory, and network to operate normally.
- the current application needs to use the background process with the associated relationship in the running, it is not necessary to re-freeze the background process, which can improve the response rate.
- only the background process associated with the foreground application is thawed, and the entire application to which the frozen background process belongs is demodulated, which can reduce system consumption.
- the mobile terminal may obtain a background process that has a communication mechanism with the foreground application, and determine a state of the background process that has a communication mechanism with the foreground application.
- the mobile terminal can unfreeze the background process that has the communication mechanism with the foreground application in the frozen state, and the thawed background process can normally communicate with the foreground application. It can ensure the normal communication between the foreground application and the background process, and improve the system response rate.
- the running time of the foreground application is recorded in the foreground, and when the running time reaches the preset time threshold, the background process associated with the foreground application is obtained, and is frozen.
- the background process with the associated relationship is thawed, and the background process associated with the foreground application can be thawed, and the waiting time of the background process that needs to be associated with the foreground application in the running process is reduced, and the system response rate is accelerated.
- Operation 402 Acquire an operation feature of a background process that is associated with the foreground application.
- the mobile terminal can obtain the running characteristics of each background process that is associated with the foreground application.
- the running features may include, but are not limited to, tasks currently performed by the background process, communication events with other processes and/or applications, current types of resources and proportions, and the like.
- Operation 404 determining a resource restriction level of the background process having the association relationship according to the running characteristic.
- the mobile terminal may analyze the running characteristics of each background process associated with the foreground application, and determine the resource restriction level of the corresponding background process according to the running characteristics.
- the mobile terminal may set different resource restriction levels according to actual requirements.
- the resource restriction level may be used to indicate the extent to which the used resources are restricted. The higher the resource restriction level, the greater the degree of restriction.
- Restricted resources may include, but are not limited to, CPU resources, memory resources, I/O resources, network resources, and the like. Different resource restriction levels may correspond to different resource usage priorities. The higher the resource restriction level, the smaller the corresponding resource usage priority, and the lower the resource restriction level, the greater the corresponding resource usage priority.
- the resource restriction level set by the mobile terminal may include an unrestricted level, a normal restriction level, a depth restriction level, a freeze level, and the like.
- An unrestricted level can mean that resources used by a process are not restricted.
- the normal restriction level may refer to a process that can use fewer resources, such as up to 50% of resources, but is not limited thereto.
- the depth limit level can mean that the process can use very few resources, such as up to 20% of resources, but not limited to this.
- the freeze level refers to the process that cannot use any resources to stop all actions of the process.
- the foreground application can correspond to an unrestricted level, and the resources used by the foreground application are not limited; when the background process associated with the foreground application does not communicate with the foreground application, the depth limit level can be used, and few resources can be used. Etc., but not limited to this.
- the background process having the association relationship is allocated to the resource group corresponding to the resource restriction level, and the resource use priority corresponding to the resource restriction level is configured.
- each background process that has an association relationship with the foreground application may be allocated to the resource group corresponding to the determined resource restriction level, and configured with the resource.
- the resource usage priority corresponding to the restriction level may be divided different resource groups based on a kernel Cgroup (control group) mechanism, and set a resource usage priority of each resource group by using a file node write configuration manner, and is allocated to each resource group.
- the process in the process is managed by the time or proportion of the resource.
- the Cgroup is a mechanism provided in the kernel that can limit, record, and isolate the physical resources used by the process (such as CPU, memory, I/O, etc.). .
- the mobile terminal can load a configuration file of the Cgroup, and the configuration file can record the divided resource groups, the resource usage priorities of the resource groups, and the resource scheduling policies corresponding to the resource usage priorities.
- the resource scheduling policy may include, but is not limited to, the time allocated by the process allocated to the resource group, the proportion of occupied resources, the resource identifier used, and the like. For example, a process that can be configured with a resource group corresponding to a common restriction level can use 30 seconds of CPU resources in one minute, and a process of a resource group corresponding to a common restriction level can only use CPU resources numbered X, etc., but not Limited to this. When you need to add a new resource group, or modify the resource usage priority and resource scheduling policy of the resource group, you can modify the Cgroup configuration file.
- the mobile terminal allocates each background process associated with the foreground application to the resource group corresponding to the resource restriction level, and configures the resource use priority corresponding to the resource restriction level, and the background process having the associated relationship with the foreground application may Resources such as CPU, memory, I/O, and network are used according to the resource scheduling policy corresponding to the resource group.
- the mobile terminal may acquire running characteristics of each background process associated with the foreground application at regular intervals, and determine a resource restriction level of the background process having the associated relationship according to the running feature.
- the resource restriction level of the background process associated with the foreground application can be changed as the operational characteristics change. For example, after the background process ends communication with the foreground application, the resource restriction level of the background process can be increased, but is not limited thereto.
- Figure 5 is a schematic diagram of a resource group in one embodiment.
- four different resource restriction levels can be set in the mobile terminal, and four resource groups are divided, wherein the first resource group corresponds to an unrestricted level, and the second resource group corresponds to an ordinary limit. Level, the third resource group corresponds to the depth limit level, and the fourth resource group corresponds to the freeze level.
- the four resource groups may respectively correspond to different resource usage priorities, the resource usage priority of the first resource group may be higher than the second resource group, and the resource usage priority of the second resource group may be higher than the third resource. In the group, the resource usage priority of the third resource group may be higher than the fourth resource group.
- the first resource group at an unrestricted level does not limit resources such as CPU, memory, I/O, and network used by the process.
- the second resource group restriction process of the normal restriction level can use less resources such as CPU, memory, I/O, and network.
- the third resource group limit process at the depth limit level uses very few resources such as CPU, memory, I/O, and network.
- the fourth resource group restriction process at the freeze level cannot use resources such as CPU, memory, I/O, and network.
- the mobile terminal determines a resource restriction level according to the running characteristics of each background process that is associated with the foreground application, and adds each background process that has an association relationship with the foreground application to the corresponding resource group, and configures resources corresponding to the resource group. Use priority to manage the resources used by each background process that is associated with the foreground application.
- the resource restriction level may be determined according to the running characteristics of the background process that is associated with the foreground application, and the background process having the associated relationship with the foreground application dynamically implements different levels of resource restrictions, and is associated with the foreground application.
- the background process of the relationship is thawed, and the system response rate is increased.
- the background process with the associated relationship is reduced to seize the resources of the foreground application, optimize system performance, and save power.
- the foregoing information processing method further includes the following operations:
- Operation 602 collect, by using a kernel space, a running feature of a background process that is associated with the foreground application, and package the running feature into a data packet and transmit the data to the user space.
- the virtual space of the mobile terminal may include kernel space and user space, the kernel space may be used to store the code and data of the kernel, and the user space may be used to store the code and data of the application.
- Kernel space has a high privilege level. Processes running in kernel space can have access to all hardware of the mobile terminal. User space has lower permissions. Processes running in user space can only use some resources of the system.
- the mobile terminal may collect event data of each background process associated with the foreground application through the kernel space, and the event data may include, but is not limited to, an event type, an event time, an event content, a process identifier to which the event belongs, and the like.
- Event types may include, but are not limited to, communication events, creation events, exit events, change identification events, task events, and the like.
- a communication event may refer to a communication event of a process with other applications and/or processes, and may include a binder communication event and a socket communication event. Creating an event can refer to an event such as a process being created.
- An exit event refers to an event that the process exits.
- a change identification event can refer to the process change itself's identity, and so on.
- a task event can refer to a task performed by a process, and the like.
- the mobile terminal collects event data of each background process associated with the foreground application through the kernel space, and extracts running characteristics of each background process associated with the foreground application from the event data, and may run the feature according to the agreed package format. Packaged into packets for delivery to user space.
- the kernel space and the user space can communicate by means of an asynchronous netlink, which is a special inter-process communication that enables the user process to communicate with the kernel process.
- the kernel space transmits the running features of each process included in the calling list to the user space through asynchronous communication, which is faster and more convenient than the active query mode of the user space, and can improve the transmission efficiency of the running feature.
- Operation 604 parsing the data packet through the user space, and obtaining the running characteristics of the background process.
- Operation 606 analyzing the running characteristics through the user space, and determining a resource restriction level of the background process having the associated relationship.
- the user space After receiving the data packet transmitted by the kernel space, the user space can parse the data packet to obtain the running characteristics of each background process associated with the foreground application.
- the mobile terminal can analyze the running characteristics of each background process associated with the foreground application through the user space, and determine the resource restriction level of each process.
- the mobile terminal analyzes the running characteristics of each background process that has an association relationship with the foreground application through the user space, and when the background process having the associated relationship does not communicate with the foreground application, it may determine that the communication is not performed.
- the resource limit level of the background process is the depth limit level.
- the mobile terminal can add a background process that has no associated relationship with the foreground application to the resource group corresponding to the depth limit level, and configure the resource use priority corresponding to the depth limit level, and does not communicate with the foreground application.
- a background process with an associated relationship can use very few resources in the mobile terminal.
- the mobile terminal may determine that the resource restriction level of the associated background process that communicates with the foreground application is a normal restriction level, and add the associated background process that communicates with the foreground application to the resource corresponding to the normal restriction level. In the group, configure the resource usage priority corresponding to the common restriction level.
- the mobile terminal detects that the background process having the association relationship ends the communication with the foreground application through the user space, the resource restriction level of the background process that ends the communication can be improved.
- the mobile terminal may determine that the resource restriction level of the associated background process that ends the communication with the foreground application is the depth restriction level or the like.
- the running characteristics of the background process associated with the foreground application may be collected through the kernel space, and the collected running features are transmitted to the user space for analysis, and more clues for determining the resource restriction level may be provided.
- the resource restriction level adjustment of the background process associated with the foreground application is more accurate, and the resource management effect and system performance are improved.
- the information processing method further includes: when the preset condition is met, the thawed background process is re-frozen, wherein the preset condition includes the thawed background process not being preset within the preset first time period.
- the thawed background process can use the CPU, memory, I/O, and network resources of the mobile terminal to operate normally and perform tasks.
- the mobile terminal may freeze the thawed background process associated with the foreground application.
- the preset condition may include that the thawed background process does not communicate with the foreground application in the preset first time period, the thawed background process enters the thawed state for more than a preset second time period, and the foreground application ends in the foreground operation.
- One or more of the states may include that the thawed background process does not communicate with the foreground application in the preset first time period, the thawed background process enters the thawed state for more than a preset second time period, and the foreground application ends in the foreground operation.
- the first time period and the second time period may be set according to actual needs, for example, the first time period is 10 minutes, the second time period is 30 minutes, etc., but is not limited thereto.
- the running state of the foreground application in the foreground may be that the foreground application switches from the foreground to the background, or the foreground application may be logged out.
- the preset condition may also be other conditions, and is not limited to the above.
- the mobile terminal may add the thawed background process associated with the foreground application to the resource group corresponding to the freeze level, and configure a resource usage priority corresponding to the resource group, and re-freeze the background process. .
- the thawed background process associated with the foreground application may be re-frozen, which may prevent the process from being frozen for a long time without being frozen, thereby reducing system power consumption.
- the foregoing information processing method further includes the following operations:
- Operation 702 sending a termination signal through the user space.
- a termination signal may be sent through the user space, and the termination signal may be used to terminate the running of the process, causing the process to exit and release system resources such as occupied CPU and memory.
- the termination signal is intercepted, and when the target process of the termination signal is in a frozen state, the target process and each thread included in the target process are thawed.
- the mobile terminal intercepts the termination signal sent by the user space and determines whether the target process of the termination signal is in a frozen state.
- the mobile terminal can directly send the termination signal to the target process, and the target process can respond to the termination signal to terminate the operation of the target process.
- the target state is in a frozen state
- the process that is in the frozen state cannot receive the signal sent by other processes normally, and therefore does not respond normally to the termination signal.
- it is usually necessary to write two sets of different codes, which are used to terminate the frozen state process and the non-freeze state process, which poses a major obstacle to the development and maintenance of the system.
- the thawing signal may be sent to the target process to thaw the target process and each thread included in the target process.
- a thread can also be called a Lightweight Process (LWP), which is the smallest unit of a program execution flow.
- LWP Lightweight Process
- a thread is an entity in a process and is the basic unit that is independently scheduled and dispatched by the system. Unfreezing the target process and all the threads included in the target process can prevent the zombie process from being wasted, causing waste of system resources.
- the zombie process refers to the fact that although the process has exited, some exits are reserved for it in the system process table. Status information, which occupies the process table entry.
- Operation 706 setting the target process to a non-freeze state, and sending a termination signal to the target process, and the termination signal is used to terminate the target process.
- the target process can be set to a non-frozen state, and the unfrozen state refers to that the target process cannot be frozen again.
- the mobile terminal can send the termination signal to the target process. Since the target process is in an unfrozen state at this time, the termination signal can be normally responded, the target process is terminated, the target process is exited, and the occupied CPU, memory, and the like are released. Resources.
- the process in the frozen state can be safely terminated without a situation such as a zombie process.
- the user space can send a unified termination signal for both the frozen state and the non-freeze state process termination, without having to write two different sets of code, which can reduce system development and maintenance costs.
- an information processing method including the following operations:
- Operation (1) when the foreground application is started, the running time of the foreground application is started in the foreground.
- the operation (2) includes: obtaining a background process that has a communication mechanism with the foreground application.
- Operation (3) determines the state of the background process associated with the foreground application.
- the method further includes: acquiring an operation feature of the background process having an association relationship with the foreground application; determining a resource restriction level of the background process having the association relationship according to the running feature; and the background process having the association relationship It is assigned to the resource group corresponding to the resource restriction level, and the resource usage priority corresponding to the resource restriction level is configured.
- the running feature of the background process that is associated with the foreground application is obtained, including: collecting, by using the kernel space, a running feature of the background process that is associated with the foreground application, and packaging the running feature into a data packet and transmitting the data to the user space;
- the user equipment is used to parse the data packet to obtain the running characteristics of the background process.
- the resource restriction level of the background process with the association relationship is determined according to the running characteristics, including: analyzing the running characteristics through the user space, and determining the resource limitation of the background process having the associated relationship. grade.
- analyzing the running feature by using the user space to determine a resource restriction level of the background process having the association relationship including: when the background process having the association relationship communicates with the foreground application, reducing the resource limitation of the background process that performs communication Level; when the background process with the associated relationship ends the communication with the foreground application, the resource restriction level of the background process that ends the communication is increased.
- the method further includes: when the preset condition is met, refreezing the thawed background process, wherein the preset condition includes the thawed background process not being preset within the preset first time period
- the foregoing information processing method further includes: sending a termination signal through the user space; intercepting the termination signal, and when the target process of the termination signal is in a frozen state, thawing the target process and each thread included in the target process; setting the target process The non-freeze state and the termination signal is sent to the target process, and the termination signal is used to terminate the target process.
- the running time of the foreground application is recorded in the foreground, and when the running time reaches the preset time threshold, the background process associated with the foreground application is obtained, and is frozen.
- the background process with the associated relationship is thawed, and the background process associated with the foreground application can be thawed, and the waiting time of the background process that needs to be associated with the foreground application in the running process is reduced, and the system response rate is accelerated.
- an information processing apparatus 800 including a time recording module 810, a process acquisition module 820, a state determination module 830, and a defrosting module 840.
- the time recording module 810 is configured to record the running time of the foreground application after the foreground application is started when the foreground application is started.
- the process obtaining module 820 is configured to acquire a background process that has an association relationship with the foreground application when the running time reaches a preset time threshold.
- the process obtaining module 820 is further configured to obtain a background process that has a communication mechanism with the foreground application.
- the state determining module 830 is configured to determine a state of a background process that is associated with the foreground application.
- the defrosting module 840 is configured to unfreeze the background process when the state of the background process is a frozen state.
- the running time of the foreground application is recorded in the foreground, and when the running time reaches the preset time threshold, the background process associated with the foreground application is obtained, and is frozen.
- the background process with the associated relationship is thawed, and the background process associated with the foreground application can be thawed, and the waiting time of the background process that needs to be associated with the foreground application in the running process is reduced, and the system response rate is accelerated.
- the information processing apparatus 800 includes a time acquisition module 810, a process acquisition module 820, a state determination module 830, and a defrosting module 840, and a feature acquisition module 850 and a level determination module 860. And configuration module 870.
- the feature obtaining module 850 is configured to acquire an running feature of a background process that is associated with the foreground application.
- the level determining module 860 is configured to determine a resource restriction level of the background process having the association relationship according to the running feature.
- the configuration module 870 is configured to allocate the background process having the association relationship to the resource group corresponding to the resource restriction level, and configure the resource usage priority corresponding to the resource restriction level.
- the resource restriction level may be determined according to the running characteristics of the background process that is associated with the foreground application, and the background process having the associated relationship with the foreground application dynamically implements different levels of resource restrictions, and is associated with the foreground application.
- the background process of the relationship is thawed, and the system response rate is increased.
- the background process with the associated relationship is reduced to seize the resources of the foreground application, optimize system performance, and save power.
- the feature acquisition module 850 includes an acquisition unit and a parsing unit.
- the collecting unit is configured to collect running characteristics of the background process associated with the foreground application through the kernel space, and package the running feature into a data packet and transmit the data to the user space.
- the parsing unit is configured to parse the data packet through the user space to obtain the running characteristics of the background process.
- the level determining module 860 is further configured to analyze the running features by using the user space to determine a resource limiting level of the background process having the associated relationship.
- the level determining module 860 is further configured to: when the background process having the association relationship communicates with the foreground application, reduce the resource restriction level of the background process that performs communication.
- the level determining module 860 is further configured to: when the background process having the association relationship ends the communication with the foreground application, increase the resource restriction level of the background process that ends the communication.
- the running characteristics of the background process associated with the foreground application may be collected through the kernel space, and the collected running features are transmitted to the user space for analysis, and more clues for determining the resource restriction level may be provided.
- the resource restriction level adjustment of the background process associated with the foreground application is more accurate, and the resource management effect and system performance are improved.
- the information processing apparatus 800 includes a time recording module 810, a process acquisition module 820, a state determination module 830, a defrosting module 840, a feature acquisition module 850, a level determination module 860, and a configuration module 870, and includes freezing. Module.
- the freeze module is configured to refreeze the thawed background process when the preset condition is met, wherein the preset condition includes the background process that the thawed background process does not communicate with the foreground application during the preset first time period, and the thawed process One or more of entering the thawing state beyond the preset second time period, and the foreground application ending in the foreground running state.
- the thawed background process associated with the foreground application may be re-frozen, which may prevent the process from being frozen for a long time without being frozen, thereby reducing system power consumption.
- the information processing apparatus 800 includes a time recording module 810, a process acquisition module 820, a state determination module 830, a defrosting module 840, a feature acquisition module 850, a level determination module 860, a configuration module 870, and a freeze module. It also includes a signal transmitting module and a termination module.
- a signal sending module is configured to send a termination signal through a user space.
- the defrosting module 840 is further configured to intercept the termination signal, and when the target process of the termination signal is in a frozen state, the target process and each thread included in the target process are thawed.
- the termination module is configured to set the target process to a non-freeze state, and send a termination signal to the target process, and the termination signal is used to terminate the target process.
- the process in the frozen state can be safely terminated without a situation such as a zombie process.
- the user space can send a unified termination signal for both the frozen state and the non-freeze state process termination, without having to write two different sets of code, which can reduce system development and maintenance costs.
- the various modules in the above information processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof.
- Each of the above modules may be embedded in or independent of the processor in the mobile terminal, or may be stored in a memory in the mobile terminal in a software format, so that the processor invokes the operations corresponding to the above modules.
- the embodiment of the present application further provides a mobile terminal.
- a mobile terminal As shown in FIG. 10, for the convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, refer to the method part of the embodiment of the present application.
- the mobile terminal can be any mobile device, a tablet computer, a personal digital assistant (PDA), a point of sale (POS), a car computer, a wearable device, and the like, and the mobile terminal is used as a mobile phone.
- PDA personal digital assistant
- POS point of sale
- car computer a car computer
- wearable device a wearable device
- FIG. 10 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application.
- the mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, and a processor 1080. And power supply 1090 and other components.
- RF radio frequency
- the RF circuit 1010 can be used for receiving and transmitting signals during the transmission and reception of information or during a call.
- the downlink information of the base station can be received and processed by the processor 1080.
- the uplink data can also be sent to the base station.
- RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
- LNA Low Noise Amplifier
- RF circuit 1010 can also communicate with the network and other devices via wireless communication.
- the above wireless communication may use any communication standard or protocol, including but not limited to GSM, GPRS, Code Division Multiple Access (CDMA), W-CDMA, Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
- the memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1020.
- the memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.);
- the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
- memory 1020 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 1030 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1000.
- the input unit 1030 may include a touch panel 1032 and other input devices 1034.
- the touch panel 1032 which may also be referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 1032 or near the touch panel 1032. Operation) and drive the corresponding connection device according to a preset program.
- the touch panel 1032 can include two portions of a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 1080 is provided and can receive commands from the processor 1080 and execute them.
- the touch panel 1032 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 1030 can also include other input devices 1034.
- other input devices 1034 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
- the display unit 1040 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
- the display unit 1040 can include a display panel 1042.
- the display panel 1042 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the touch panel 1032 can cover the display panel 1042. When the touch panel 1032 detects a touch operation thereon or nearby, the touch panel 1032 transmits to the processor 1080 to determine the type of the touch event, and then the processor 1080 is The type of touch event provides a corresponding visual output on display panel 1042.
- the touch panel 1032 and the display panel 1042 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1032 can be integrated with the display panel 1042. Realize the input and output functions of the phone.
- the handset 1000 can also include at least one type of sensor 1050, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1042 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1042 and/or when the mobile phone moves to the ear. Or backlight.
- the motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
- the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
- Audio circuitry 1060, speaker 1062, and microphone 1064 can provide an audio interface between the user and the handset.
- the audio circuit 1060 can transmit the converted electrical data of the received audio data to the speaker 1062, and convert it into a sound signal output by the speaker 1062.
- the microphone 1064 converts the collected sound signal into an electrical signal, and the audio circuit 1060. After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, transmitted to another mobile phone via the RF circuit 1010, or outputted to the memory 1020 for subsequent processing.
- WiFi is a short-range wireless transmission technology.
- the mobile phone through the WiFi module 1070 can help users to send and receive e-mail, browse the web and access streaming media, etc. It provides users with wireless broadband Internet access.
- FIG. 10 shows the WiFi module 1070, it can be understood that it does not belong to the essential configuration of the mobile phone 1000 and can be omitted as needed.
- the processor 1080 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1020, and invoking data stored in the memory 1020, The phone's various functions and processing data, so that the overall monitoring of the phone.
- processor 1080 can include one or more processing units.
- the processor 1080 can integrate an application processor and a modem, wherein the application processor primarily processes an operating system, a user interface, an application, etc.; the modem primarily processes wireless communications. It will be appreciated that the above described modem may also not be integrated into the processor 1080.
- the processor 1080 can integrate an application processor and a baseband processor, and the baseband processor and other peripheral chips can form a modem.
- the mobile phone 1000 also includes a power source 1090 (such as a battery) for powering various components.
- the power source can be logically coupled to the processor 1080 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
- the handset 1000 may also include a camera, a Bluetooth module, and the like.
- the processor 880 included in the mobile terminal implements the above information processing method when executing a computer program stored in the memory.
- the mobile terminal can include a memory 1020 and a processor 1080.
- the memory 1020 stores a computer program that, when executed by the processor 1080, causes the processor to perform the following operations:
- the background process is thawed.
- a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the information processing method described above.
- a computer program product comprising a computer program, when executed on a computer device, causes the computer device to perform the information processing method described above when executed.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
- Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM), which acts as an external cache.
- RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种信息处理方法,包括:当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;若所述运行时间达到预设时间阈值,则获取与所述前台应用具备关联关系的后台进程;确定与所述前台应用具备关联关系的后台进程的状态;若所述后台进程的状态为冻结状态,则对所述后台进程进行解冻。
Description
本申请要求于2018年01月10日提交中国专利局、申请号为2018100232331、发明名称为“信息处理方法、装置、移动终端及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,特别是涉及一种信息处理方法、移动终端及计算机可读存储介质。
随着互联网的飞速发展,智能移动终端已经成为许多用户最常用的电子设备,例如智能手机、平板电板等。用户可在智能移动终端上安装各式的应用程序进行使用,当应用程序在后台进行运行时,会与前台运行的应用程序抢占CPU(Central Processing Unit,中央处理器)、内存、带宽等系统资源,导致出现前台运行的应用卡顿、系统运行缓慢及移动终端发热等问题。
在传统的方式中,智能移动终端可以对抢占前台应用资源的后台应用进行冻结,将后台运行的应用进行冻结后,冻结的后台应用不再使用系统资源,从而可达到降低功耗、提升前台应用运行的流畅度的效果。
发明内容
根据本申请的各种实施例提供一种信息处理方法、移动终端及计算机可读存储介质,可以对与前台应用具备关联关系的后台进程进行解冻,加快系统响应速率。
一种信息处理方法,包括:
当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;
当所述运行时间达到预设时间阈值时,则获取与所述前台应用具备关联关系的后台进程;
确定与所述前台应用具备关联关系的后台进程的状态;及
当所述后台进程的状态为冻结状态时,则对所述后台进程进行解冻。
一种移动终端,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如下操作:
当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;
当所述运行时间达到预设时间阈值时,则获取与所述前台应用具备关联关系的后台进程;
确定与所述前台应用具备关联关系的后台进程的状态;及
当所述后台进程的状态为冻结状态时,则对所述后台进程进行解冻。
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下操作:
当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;
当所述运行时间达到预设时间阈值时,则获取与所述前台应用具备关联关系的后台进程;
确定与所述前台应用具备关联关系的后台进程的状态;及
当所述后台进程的状态为冻结状态时,则对所述后台进程进行解冻。
本申请实施例提供的信息处理方法、移动终端及计算机可读存储介质,当监听到前台应用启动时,记录前台应用启动后在前台的运行时间,若运行时间达到预设时间阈值,获 取与前台应用具备关联关系的后台进程,并对处于冻结状态的具备关联关系的后台进程进行解冻,可以对与前台应用具备关联关系的后台进程进行解冻,减少前台应用在运行中需要使用具备关联关系的后台进程再进行解冻的等待时间,加快系统响应速率。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中移动终端的框图。
图2为一个实施例中信息处理方法的系统架构图。
图3为一个实施例中信息处理方法的流程示意图。
图4为一个实施例中确定与前台应用具备关联关系的后台进程的资源限制等级的流程示意图。
图5为一个实施例中资源组别的示意图。
图6为另一个实施例中确定与前台应用具备关联关系的后台进程的资源限制等级的流程示意图。
图7为一个实施例中终止处于冻结状态的进程的流程示意图。
图8为一个实施例中信息处理装置的框图。
图9为另一个实施例中信息处理装置的框图。
图10为另一个实施例中移动终端的框图。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一资源组称为第二资源组,且类似地,可将第二资源组称为第一资源组。第一资源组和第二资源组两者都是资源组,但其不是同一资源组。
图1为一个实施例中移动终端的框图。如图1所示,该移动终端包括通过系统总线连接的处理器、存储器、显示屏和输入装置。其中,存储器可包括非易失性存储介质及处理器。移动终端的非易失性存储介质存储有操作系统及计算机程序,该计算机程序被处理器执行时以实现本申请实施例中提供的一种信息处理方法。该处理器用于提供计算和控制能力,支撑整个移动终端的运行。移动终端中的内存储器为非易失性存储介质中的计算机程序的运行提供环境。移动终端的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是移动终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该移动终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的移动终端的限定,具体的移动终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
图2为一个实施例中信息处理方法的系统架构图。如图2所示,该系统架构中包括JAVA空间层210、本地框架层220以及内核(Kernel)空间层230。JAVA空间层210上可包含冻结管理模块212,移动终端可通过该冻结管理模块212来实现对运行的各个应用的冻结策略,对后台耗电较多或是抢占大量系统资源的相关应用进行冻结操作。本地框架层220中包含资源优先级和限制管理器222和平台冻结管理器224。移动终端可通过资源优先级和限制管理器222实时维护不同的应用处于不同的资源使用优先级和不同的资源组别中,并根据上层的需求来调整应用程序的资源组别从而达到优化性能,节省功耗的作用。移动终端可通过平台冻结管理器224将后台可以冻结的应用按照进入冻结时间的长短,分配到对应预设的不同层次的冻结层。可选地,该冻结层可包括三个,分别是:CPU限制睡眠模式、CPU冻结睡眠模式、进程深度冻结模式。其中,CPU限制睡眠模式是指对相关进程所占用的CPU资源进行限制,使相关进程占用较少的CPU资源,将空余的CPU资源向其它未被冻结的进程倾斜,限制了对CPU资源的占用,也相应限制了进程对网络资源以及I/O接口资源的占用;CPU冻结睡眠模式是指禁止相关进程使用CPU,而保留对内存的占用,当禁止使用CPU资源时,相应的网络资源以及I/O接口资源也被禁止使用;进程深度冻结模式是指除禁止使用CPU资源之外,进一步对相关进程所占用的内存资源进行回收,回收的内存可供其它进程使用。可选地,本地框架层220还可包括接口模块,该接口模块包含开发给上层的binder接口,上层的框架或者应用通过提供的binder接口来发送资源限制或者冻结的指令给资源优先级和限制管理器222和平台冻结管理器224。
内核空间层230中可包括UID管理模块231、Cgroup模块233、Binder管控模块235、进程内存回收模块237以及冻结超时退出模块239。其中,UID管理模块231用于实现基于应用的用户身份标识(User Identifier,UID)来管理第三方应用的资源或进行冻结。相比较于基于进程身份标识(Process Identifier,PID)来进行进程管控,通过UID更便于统一管理一个用户的应用的资源。Cgroup模块233用于提供一套完善的CPU、CPUSET、内存(memory)、输入/输出(input/output,I/O)和Net相关的资源限制机制。Binder管控模块235用于实现后台binder通信的优先级的控制。进程内存回收模块237用于实现进程深度冻结模式,这样能当某个第三方应用长期处于冻结状态的时候,会主要释放掉进程的文件区,从而达到节省内存的模块,也加快该应用在下次启动时的速度。冻结超时退出模块239可用于解决出现冻结超时场景产生的异常。通过上述的系统架构,可实现本申请各个实施例中的信息处理方法。
如图3所示,在一个实施例中,提供一种信息处理方法,包括以下操作:
操作310,当监听到前台应用启动时,记录前台应用启动后在前台的运行时间。
移动终端上可同时运行有一个或多个应用程序,可包括在前台运行的前台应用及在后台运行的后台应用。移动终端可对各个应用程序的运行状态进行监听,其中,运行状态可包括但不限于启动、前台运行、后台运行及退出等。当移动终端监听到前台应用启动时,可记录前台应用本次启动后在前台的运行时间,其中,监听到前台应用启动可指的是监听到应用启动并进入前台运行。
可选地,移动终端可通过活动管理器对正在运行的应用程序进行监听,获取各个正在运行的应用程序的运行状态。在一个实施例中,移动终端可每隔一段时间通过活动管理器的RunningAppProcessInfo类获取正在运行的应用列表,该应用列表中可记录有移动终端当前运行的各个应用的应用标识,其中,应用标识可以由数字、字母及符号等中的一种或多种组成。移动终端可将本次获取的应用列表中的应用标识与上一次获取的应用列表中的应用标识进行比对。当应用的应用标识仅存在于本次获取的应用列表中,不存在于上一次获取的应用列表时,则可确定该应用为新启动的应用。移动终端可获取新启动的应用,并判断该新启动的应用是在前台运行还是后台运行,当该新启动的应用在前台运行时,则可 确定该应用为启动的前台运用。
操作320,当运行时间达到预设时间阈值时,则获取与前台应用具备关联关系的后台进程。
进程(Process)是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础。移动终端上通常可运行有多个进程,不同的进程可用于分别执行不同的任务。当移动终端监听到前台应用启动时,可记录该前台应用启动后在前台运行的时间。当该前台应用启动后在前台运行的时间达到预设时间阈值时,移动终端可获取当前在后台运行的与前台应用具备关联关系的后台进程。可选地,移动终端可通过活动管理器获取当前在后台运行的各个进程,并根据前台应用的应用标识在当前在后台运行的各个进程中查询与前台应用具备关联关系的后台进程。移动终端可预先存储应用及进程的关联关系,当监听到前台应用启动,且该前台应用启动后在前台的运行时间达到预设时间阈值时,可根据前台应用的应用标识获取与该前台应用具备关联关系的后台进程。
可选地,与前台应用具备关联关系的后台进程可以是与前台应用具备通信机制的后台进程、与前台应用具备调用关系的后台进程,或是与前台应用属于同一系发布商的后台进程等,但不限于此。通信机制指的是在不同的进程和/或应用之间进行传播或交换信息。可选地,通信机制可包括socket、binder、共享内存等,其中,网络上的两个程序通过一个双向的通信连接实现数据的交换,这个连接的一端称为一个socket;binder是一种进程间通信机制,提供远程过程调用功能;共享内存就是允许两个不相关的进程访问同一个逻辑内存,共享内存是在两个正在运行的进程之间共享和传递数据的一种非常有效的方式,不同进程之间共享的内存通常安排为同一段物理内存。调用关系指的是前台应用可调用后台进程执行相应的任务,比如调用后台进程存储的登录信息进行登录操作,其中,登录信息指的是可用于登录的账户信息、密码等信息,或是调用后台进程进行定位等,但不限于此。与前台应用属于同一系发布商的后台进程可携带有与前台应用相同的发布标签,该发布标签可用于标识发布应用程序的发布商。
操作330,确定与前台应用具备关联关系的后台进程的状态。
移动终端可获取生成的与前台应用具备关联关系的各个后台进程的状态,可选地,后台进程的状态可包括但不限于冻结状态及解冻状态等。冻结状态指的是后台进程无法使用CPU、/O及网络等资源,处于无法继续运行的状态,但是该后台进程依然会占据内存资源、硬盘资源等;解冻状态指的是后台进程可使用CPU、I/O、内存及网络等系统资源,处于可运行执行任务的状态。
在一个实施例中,移动终端可获取与前台应用具备关联关系的处于冻结状态的后台进程。可选地,移动终端可获取与前台应用具备关联关系的各个后台进程的状态标签,不同的状态可用不同的状态标签进行表示,例如,冻结状态对应的状态标签为0,解冻状态对应的状态标签为1等,但不限于此。移动终端可根据与前台应用具备关联关系的各个后台进程的状态标签获取处于冻结状态的后台进程。
可选地,移动终端也可分别向与前台应用具备关联关系的各个后台进程发送通信信号,并检测是否在预定时间段内接收到响应信号。当没有在预定时间段内接收到进程返回的响应信号时,则可确定没有发送响应信号的后台进程的状态为冻结状态。可以理解地,也可采用其他方式获取与前台应用具备关联关系的处于冻结状态的后台进程,并不仅限于上述几种方式。
操作340,当后台进程的状态为冻结状态时,则对后台进程进行解冻。
移动终端获取与前台应用具备关联关系的处于冻结状态的后台进程后,可将该处于冻结状态的后台进程进行解冻。移动终端可向与前台应用具备关联关系的处于冻结状态的后台进程发送解冻信息,通过解冻信号使后台进程进入解冻状态,可以使用CPU、I/O、内 存及网络等系统资源,可正常进行运行并执行任务。当前台应用在运行中需要使用具备关联关系的后台进程时,无需重新对后台进程进行解冻,可提高响应速率。此外,仅解冻与前台应用具备关联关系的后台进程,而不解调冻后台进程所属的整个应用,可以减少系统消耗。
可选地,移动终端可获取与前台应用具备通信机制的后台进程,并确定与前台应用具备通信机制的后台进程的状态。移动终端可对处于冻结状态的与前台应用具备通信机制的后台进程进行解冻,解冻后的后台进程可正常与前台应用进行通信。可以保证前台应用与后台进程的正常通信,提高系统响应速率。
在本实施例中,当监听到前台应用启动时,记录前台应用启动后在前台的运行时间,当运行时间达到预设时间阈值时,获取与前台应用具备关联关系的后台进程,并对处于冻结状态的具备关联关系的后台进程进行解冻,可以对与前台应用具备关联关系的后台进程进行解冻,减少前台应用在运行中需要使用具备关联关系的后台进程再进行解冻的等待时间,加快系统响应速率。
如图4所示,在一个实施例中,在操作对后台进程进行解冻之后,还包括以下操作:
操作402,获取与前台应用具备关联关系的后台进程的运行特征。
移动终端对与前台应用具备关联关系的处于冻结状态的后台进程进行解冻后,可获取与前台应用具备关联关系的各个后台进程的运行特征。其中,运行特征可包括但不限于后台进程当前执行的任务、与其他进程和/或应用等的通信事件、当前占用的资源类型及比例等。
操作404,根据运行特征确定具备关联关系的后台进程的资源限制等级。
移动终端可对与前台应用具备关联关系的各个后台进程的运行特征进行分析,并根据运行特征确定对应后台进程的资源限制等级。可选地,移动终端可根据实际需求设定不同的资源限制等级,资源限制等级可用于表示使用资源被限制的程度,资源限制等级越高,受限制的程度可越大。受限制的资源可包括但不限于CPU资源、内存资源、I/O资源、网络资源等。不同的资源限制等级可对应不同的资源使用优先级,资源限制等级越高,对应的资源使用优先级可越小,资源限制等级越低,对应的资源使用优先级可越大。
在一个实施例中,移动终端设定的资源限制等级可包括无限制级别、普通限制级别、深度限制级别及冻结级别等。无限制级别可指的是进程使用的资源不受限制。普通限制级别可指的是进程可使用较少的资源,比如最多仅可使用50%的资源等,但不限于此。深度限制级别可指的是进程可使用极少的资源,比如最多仅可使用20%的资源等,但不限于此。冻结级别指的是进程无法使用任何的资源,停止进程的一切行为。比如,前台应用可对应无限制级别,前台应用使用的资源不受限制;当与前台应用具备关联关系的后台进程没有与前台应用进行通信时,则可对应深度限制级别,可使用极少的资源等,但不限于此。
操作406,将具备关联关系的后台进程分配到与资源限制等级对应的资源组别中,并配置与资源限制等级对应的资源使用优先级。
移动终端确定与前台应用具备关联关系的各个后台进程的资源限制等级后,可将与前台应用具备关联关系的各个后台进程分配到与确定的资源限制等级对应的资源组别中,并配置与资源限制等级对应的资源使用优先级。可选地,移动终端可基于内核Cgroup(control group)机制划分不同的资源组别,并可采用文件节点写配置的方式设置各个资源组别的资源使用优先级,对被分配到各个资源组别中的进程使用资源的时间或比例等进行管理,其中,Cgroup是内核中提供的一种可以限制、记录、隔离进程所使用的物理资源(比如:CPU、内存、I/O等资源)的机制。移动终端可加载Cgroup的配置文件,配置文件中可记录有划分的资源组别、各个资源组别的资源使用优先级及与资源使用优先级对应的资源调度策略。资源调度策略可包括但不限于被分配到资源组别中的进程使用资源的时间、占用资源比例、使用的资源标识等。例如,可配置普通限制级别对应的资源组别 的进程在1分钟内可使用30秒的CPU资源,且普通限制级别对应的资源组别的进程仅能使用编号为X的CPU资源等,但不限于此。当需要添加新的资源组别,或是修改资源组别的资源使用优先级及资源调度策略,可通过修改Cgroup的配置文件来实现。
移动终端将与前台应用具备关联关系的各个后台进程分配到与资源限制等级对应的资源组别中,并配置与资源限制等级对应的资源使用优先级后,与前台应用具备关联关系的后台进程可按照该资源组别对应的资源调度策略使用CPU、内存、I/O及网络等资源。在一个实施例中,移动终端可每隔一定时间段获取与前台应用具备关联关系的各个后台进程的运行特征,并根据运行特征确定具备关联关系的后台进程的资源限制等级。与前台应用具备关联关系的后台进程的资源限制等级可随着运行特征的变化而进行改变。比如,后台进程结束与前台应用的通信后,可提高该后台进程的资源限制等级等,但不限于此。
图5为一个实施例中资源组别的示意图。如图5所示,移动终端中可设定有四个不同的资源限制等级,并划分有四个资源组别,其中,第一资源组别对应无限制级别,第二资源组别对应普通限制级别,第三资源组别对应深度限制级别,第四资源组别对应冻结级别。四个资源组别可分别对应不同的资源使用优先级,第一资源组别的资源使用优先级可高于第二资源组别,第二资源组别的资源使用优先级可高于第三资源组别,第三资源组别的资源使用优先级可高于第四资源组别。无限制级别的第一资源组别不限制进程使用的CPU、内存、I/O及网络等资源。普通限制级别的第二资源组别限制进程可使用较少的CPU、内存、I/O及网络等资源。深度限制级别的第三资源组别限制进程可使用极少的CPU、内存、I/O及网络等资源。冻结级别的第四资源组别限制进程不可使用CPU、内存、I/O及网络等资源。移动终端根据与前台应用具备关联关系的各个后台进程的运行特征确定资源限制等级,并将与前台应用具备关联关系的各个后台进程添加到相应的资源组别中,配置与资源组别对应的资源使用优先级,对与前台应用具备关联关系的各个后台进程使用的资源进行管理。
在本实施例中,可根据与前台应用具备关联关系的后台进程的运行特征确定资源限制等级,对与前台应用具备关联关系的后台进程动态实现不同等级的资源限制,在对与前台应用具备关联关系的后台进程进行解冻,提高系统响应速率的同时,减少具备关联关系的后台进程抢占前台应用的资源,优化系统性能,节省功耗。
如图6所示,在一个实施例中,上述信息处理方法,还包括以下操作:
操作602,通过内核空间采集与前台应用具备关联关系的后台进程的运行特征,并将运行特征打包成数据包传送给用户空间。
移动终端的虚拟空间中可包括有内核空间及用户空间,内核空间可用于存放内核的代码和数据,用户空间可用于存放应用程序的代码和数据。内核空间拥有较高的特权级别,在内核空间中运行的进程可拥有访问移动终端的所有硬件的权限,用户空间的权限则较低,在用户空间中运行的进程仅可使用系统的部分资源。
移动终端可通过内核空间采集与前台应用具备关联关系的各个后台进程的事件数据,事件数据可包括但不限于事件类型、事件时间、事件内容、事件所属的进程标识等。事件类型可包括但不限于通信事件、创建事件、退出事件、更改标识事件、任务事件等。通信事件可指的是进程与其他应用和/或进程的通信事件,可包括binder通信事件及socket通信事件等。创建事件可指的是进程等被创建的事件。退出事件指的是进程退出的事件。更改标识事件可指的是进程更改自身的标识等。任务事件可指的是进程执行的任务等。
移动终端通过内核空间采集与前台应用具备关联关系的各个后台进程的事件数据,可从事件数据中提取与前台应用具备关联关系的各个后台进程的运行特征,并可按照约定的包格式将运行特征打包成数据包传送给用户空间。可选地,内核空间与用户空间可采用异步的netlink的方式进行通信,netlink是一种可以实现用户进程与内核进程通信的一种特殊的进程间通信。内核空间通过异步通信的方式将调用列表中包含的各个进程的运行特 征传输给用户空间,相比起用户空间主动查询的方式,更加快捷方便,可提高运行特征的传输效率。
操作604,通过用户空间解析数据包,得到后台进程的运行特征。
操作606,通过用户空间对运行特征进行分析,确定具备关联关系的后台进程的资源限制等级。
用户空间接收到内核空间传输的数据包后,可对数据包进行解析,得到与前台应用具备关联关系的各个后台进程的运行特征。移动终端可通过用户空间对与前台应用具备关联关系的各个后台进程的运行特征进行分析,确定各个进程的资源限制等级。
在一个实施例中,移动终端通过用户空间对与前台应用具备关联关系的各个后台进程的运行特征进行分析,当具备关联关系的后台进程没有与前台应用进行通信时,则可确定没有进行通信的后台进程的资源限制等级为深度限制级别。移动终端可将没有与前台应用进行通信的具备关联关系的后台进程添加到与深度限制级别对应的资源组别中,并配置与深度限制级别对应的资源使用优先级,没有与前台应用进行通信的具备关联关系的后台进程可使用移动终端中极少的资源。当移运终端通过用户空间检测到具备关联关系的后台进程与前台应用进行通信时,可降低进行通信的后台进程的资源限制等级。例如,移动终端可确定与前台应用进行通信的具备关联关系的后台进程的资源限制等级为普通限制级别,并将与前台应用进行通信的具备关联关系的后台进程添加到与普通限制级别对应的资源组别中,配置与普通限制级别对应的资源使用优先级。当移运终端通过用户空间检测到具备关联关系的后台进程结束与前台应用的通信时,可提高结束通信的后台进程的资源限制等级。例如,移动终端可确定与前台应用结束通信的具备关联关系的后台进程的资源限制等级为深度限制级别等。
在本实施例中,可通过内核空间采集与前台应用具备关联关系的后台进程的运行特征,并将采集的运行特征传输至用户空间进行分析,可提供更多确定资源限制等级的线索依据,可使与前台应用具备关联关系的后台进程的资源限制等级调整更加准确,提高资源管理效果及系统性能。
在一个实施例中,上述信息处理方法,还包括:当满足预设条件时,将解冻的后台进程重新进行冻结,其中,预设条件包括解冻的后台进程在预设第一时间段内没有与前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、前台应用结束在前台的运行状态中的一种或多种。
移动终端对与前台应用具备关联关系的各个后台进程进行解冻后,解冻后的后台进程可使用移动终端的CPU、内存、I/O及网络等资源,可正常运行并执行任务等。当满足预设条件时,移动终端可将解冻的与前台应用具备关联关系的后台进程重新进行冻结。可选地,预设条件可包括解冻的后台进程在预设第一时间段内没有与前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、前台应用结束在前台的运行状态中的一种或多种。第一时间段及第二时间段可根据实际需求进行设定,比如第一时间段为10分钟,第二时间段为30分钟等,但不限于此。前台应用结束在前台的运行状态可以是前台应用从前台切换至后台运行,也可以是前台应用退出运行等。可以理解地,预设条件也可以是其他条件,并不仅限于上述几种。可选地,移动终端可将解冻的与前台应用具备关联关系的后台进程添加到与冻结级别对应的资源组别中,并配置与该资源组别对应的资源使用优先级,重新冻结该后台进程。
在本实施例中,当满足预设条件时,可重新将解冻的与前台应用具备关联关系的后台进程进行冻结,可以防止进程被唤醒后长期不进行冻结的情况,降低系统功耗。
如图7所示,在一个实施例中,上述信息处理方法,还包括以下操作:
操作702,通过用户空间发送终止信号。
当移动终端需要终止某个正在运行的进程时,可通过用户空间发送终止信号,该终止 信号可用于终止进程的运行,使进程退出运行并释放占用的CPU、内存等系统资源。
操作704,截获终止信号,当终止信号的目标进程处于冻结状态时,则解冻目标进程及目标进程下包含的各个线程。
移动终端可截获用户空间发送的终止信号,并判断该终止信号的目标进程是否处于冻结状态。当目标进程不处于冻结状态时,则移动终端可直接将终止信号发送给目标进程,目标进程可对该终止信号进行响应,终止目标进程的运行。当目标状态处于冻结状态时,由于处于冻结状态的进程无法正常接收其他进程发送的信号,因此不会对终止信号进行正常响应。而在传统的方式中,通常要编写两套不同的代码,分别用于终止冻结状态的进程及非冻结状态的进程,给系统的开发及维护造成了较大的障碍。移动终端截取终止信号后,当该终止信号的目标进程处于冻结状态时,则可先向目标进程发送解冻信号,对目标进程及目标进程下包含的各个线程进行解冻。线程也可被称为轻量级进程(Lightweight Process,LWP),是程序执行流的最小单元,线程是进程中的一个实体,是被系统独立调度和分派的基本单位。解冻目标进程及目标进程下包含的所有线程,可防止出现僵尸进程,造成系统资源的浪费,其中,僵尸进程指的是进程虽然已经退出了,但是在系统进程表中还为它保留了一些退出状态的信息,占用进程表项。
操作706,设置目标进程为不可冻结状态,并将终止信号发送给目标进程,终止信号用于终止目标进程。
移动终端解冻目标进程及目标进程下包含的各个线程后,可设置目标进程为不可冻结状态,不可冻结状态指的是无法重新对目标进程进行冻结。移动终端可将终止信号发送给目标进程,由于目标进程此时处于不可冻结状态,则可正常对终止信号进行响应,终止目标进程的运行,使目标进程退出运行并释放占用的CPU、内存等系统资源。
在本实施例中,可安全终止处于冻结状态的进程,不会出现如僵尸进程的情况。此外,用户空间对于冻结状态和非冻结状态的进程终止,均可发送统一的终止信号,无需编写两套不同的代码,可减少系统开发和维护成本。
在一个实施例中,提供一种信息处理方法,包括以下操作:
操作(1),当监听到前台应用启动时,记录前台应用启动后在前台的运行时间。
操作(2),当运行时间达到预设时间阈值时,则获取与前台应用具备关联关系的后台进程。
可选地,操作(2),包括:获取与前台应用具备通信机制的后台进程。
操作(3),确定与前台应用具备关联关系的后台进程的状态。
操作(4),当后台进程的状态为冻结状态时,则对后台进程进行解冻。
可选地,在操作(4)之后,还包括:获取与前台应用具备关联关系的后台进程的运行特征;根据运行特征确定具备关联关系的后台进程的资源限制等级;将具备关联关系的后台进程分配到与资源限制等级对应的资源组别中,并配置与资源限制等级对应的资源使用优先级。
可选地,获取与前台应用具备关联关系的后台进程的运行特征,包括:通过内核空间采集与前台应用具备关联关系的后台进程的运行特征,并将运行特征打包成数据包传送给用户空间;通过用户空间解析数据包,得到后台进程的运行特征;根据运行特征确定具备关联关系的后台进程的资源限制等级,包括:通过用户空间对运行特征进行分析,确定具备关联关系的后台进程的资源限制等级。
可选地,通过用户空间对运行特征进行分析,确定具备关联关系的后台进程的资源限制等级,包括:当具备关联关系的后台进程与前台应用进行通信时,降低进行通信的后台进程的资源限制等级;当具备关联关系的后台进程结束与前台应用的通信时,提高结束通信的后台进程的资源限制等级。
可选地,在操作(4)之后,还包括:当满足预设条件时,将解冻的后台进程重新进 行冻结,其中,预设条件包括解冻的后台进程在预设第一时间段内没有与前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、前台应用结束在前台的运行状态中的一种或多种。
可选地,上述信息处理方法,还包括:通过用户空间发送终止信号;截获终止信号,当终止信号的目标进程处于冻结状态时,则解冻目标进程及目标进程下包含的各个线程;设置目标进程为不可冻结状态,并将终止信号发送给目标进程,终止信号用于终止目标进程。
在本实施例中,当监听到前台应用启动时,记录前台应用启动后在前台的运行时间,当运行时间达到预设时间阈值时,获取与前台应用具备关联关系的后台进程,并对处于冻结状态的具备关联关系的后台进程进行解冻,可以对与前台应用具备关联关系的后台进程进行解冻,减少前台应用在运行中需要使用具备关联关系的后台进程再进行解冻的等待时间,加快系统响应速率。
应该理解的是,上述的流程示意图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,上述的流程示意图中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。
如图8所示,在一个实施例中,提供一种信息处理装置800,包括时间记录模块810、进程获取模块820、状态确定模块830及解冻模块840。
时间记录模块810,用于当监听到前台应用启动时,记录前台应用启动后在前台的运行时间。
进程获取模块820,用于当运行时间达到预设时间阈值时,则获取与前台应用具备关联关系的后台进程。
可选地,进程获取模块820,还用于获取与前台应用具备通信机制的后台进程。
状态确定模块830,用于确定与前台应用具备关联关系的后台进程的状态。
解冻模块840,用于当后台进程的状态为冻结状态时,则对后台进程进行解冻。
在本实施例中,当监听到前台应用启动时,记录前台应用启动后在前台的运行时间,当运行时间达到预设时间阈值时,获取与前台应用具备关联关系的后台进程,并对处于冻结状态的具备关联关系的后台进程进行解冻,可以对与前台应用具备关联关系的后台进程进行解冻,减少前台应用在运行中需要使用具备关联关系的后台进程再进行解冻的等待时间,加快系统响应速率。
如图9所示,在一个实施例中,上述信息处理装置800,除了包括时间记录模块810、进程获取模块820、状态确定模块830及解冻模块840,还包括特征获取模块850、等级确定模块860及配置模块870。
特征获取模块850,用于获取与前台应用具备关联关系的后台进程的运行特征。
等级确定模块860,用于根据运行特征确定具备关联关系的后台进程的资源限制等级。
配置模块870,用于将具备关联关系的后台进程分配到与资源限制等级对应的资源组别中,并配置与资源限制等级对应的资源使用优先级。
在本实施例中,可根据与前台应用具备关联关系的后台进程的运行特征确定资源限制等级,对与前台应用具备关联关系的后台进程动态实现不同等级的资源限制,在对与前台应用具备关联关系的后台进程进行解冻,提高系统响应速率的同时,减少具备关联关系的后台进程抢占前台应用的资源,优化系统性能,节省功耗。
在一个实施例中,特征获取模块850,包括采集单元及解析单元。
采集单元,用于通过内核空间采集与前台应用具备关联关系的后台进程的运行特征,并将运行特征打包成数据包传送给用户空间。
解析单元,用于通过用户空间解析数据包,得到后台进程的运行特征。
等级确定模块860,还用于通过用户空间对运行特征进行分析,确定具备关联关系的后台进程的资源限制等级。
可选地,等级确定模块860,还用于当具备关联关系的后台进程与前台应用进行通信时,降低进行通信的后台进程的资源限制等级。
等级确定模块860,还用于当具备关联关系的后台进程结束与前台应用的通信时,提高结束通信的后台进程的资源限制等级。
在本实施例中,可通过内核空间采集与前台应用具备关联关系的后台进程的运行特征,并将采集的运行特征传输至用户空间进行分析,可提供更多确定资源限制等级的线索依据,可使与前台应用具备关联关系的后台进程的资源限制等级调整更加准确,提高资源管理效果及系统性能。
在一个实施例中,上述信息处理装置800,除了包括时间记录模块810、进程获取模块820、状态确定模块830、解冻模块840、特征获取模块850、等级确定模块860及配置模块870,还包括冻结模块。
冻结模块,用于当满足预设条件时,将解冻的后台进程重新进行冻结,其中,预设条件包括解冻的后台进程在预设第一时间段内没有与前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、前台应用结束在前台的运行状态中的一种或多种。
在本实施例中,当满足预设条件时,可重新将解冻的与前台应用具备关联关系的后台进程进行冻结,可以防止进程被唤醒后长期不进行冻结的情况,降低系统功耗。
在一个实施例中,上述信息处理装置800,除了包括时间记录模块810、进程获取模块820、状态确定模块830、解冻模块840、特征获取模块850、等级确定模块860、配置模块870及冻结模块,还包括信号发送模块及终止模块。
信号发送模块,用于通过用户空间发送终止信号。
解冻模块840,还用于截获终止信号,当终止信号的目标进程处于冻结状态时,则解冻目标进程及目标进程下包含的各个线程。
终止模块,用于设置目标进程为不可冻结状态,并将终止信号发送给目标进程,终止信号用于终止目标进程。
在本实施例中,可安全终止处于冻结状态的进程,不会出现如僵尸进程的情况。此外,用户空间对于冻结状态和非冻结状态的进程终止,均可发送统一的终止信号,无需编写两套不同的代码,可减少系统开发和维护成本。
上述信息处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于移动终端中的处理器中,也可以以软件形式存储于移动终端中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
本申请实施例还提供了一种移动终端。如图10所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:
图10为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图10所示的 手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM、GPRS、码分多址(Code Division Multiple Access,CDMA)、W-CDMA、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1032以及其他输入设备1034。触控面板1032,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1032上或在触控面板1032附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1032可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1032。除了触控面板1032,输入单元1030还可以包括其他输入设备1034。具体地,其他输入设备1034可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1042。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1042。在一个实施例中,触控面板1032可覆盖显示面板1042,当触控面板1032检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1042上提供相应的视觉输出。虽然在图10中,触控面板1032与显示面板1042是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1032与显示面板1042集成而实现手机的输入和输出功能。
手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1042的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1042和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。
音频电路1060、扬声器1062和传声器1064可提供用户与手机之间的音频接口。音 频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1062,由扬声器1062转换为声音信号输出;另一方面,传声器1064将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调器主要处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1080中。比如,该处理器1080可集成应用处理器和基带处理器,基带处理器与和其它外围芯片等可组成调制解调器。手机1000还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。
在本申请实施例中,该移动终端所包括的处理器880执行存储在存储器上的计算机程序时实现上述的信息处理方法。
在一个实施例中,该移动终端可包括存储器1020及处理器1080,存储器1020中存储有计算机程序,该计算机程序被处理器1080执行时,使得处理器执行如下操作:
当监听到前台应用启动时,记录前台应用启动后在前台的运行时间;
当运行时间达到预设时间阈值时,则获取与前台应用具备关联关系的后台进程;
确定与前台应用具备关联关系的后台进程的状态;
当后台进程的状态为冻结状态时,则对后台进程进行解冻。
在一个实施例中,提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的信息处理方法。
在一个实施例中,提供一种包含计算机程序的计算机程序产品,当其在计算机设备上运行时,使得计算机设备执行时实现上述的信息处理方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例 中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。
Claims (20)
- 一种信息处理方法,包括:当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;当所述运行时间达到预设时间阈值时,则获取与所述前台应用具备关联关系的后台进程;确定与所述前台应用具备关联关系的后台进程的状态;及当所述后台进程的状态为冻结状态时,则对所述后台进程进行解冻。
- 根据权利要求1所述的方法,其特征在于,所述获取与所述前台进程具备关联关系的后台进程,包括:获取与所述前台应用具备通信机制的后台进程。
- 根据权利要求1所述的方法,其特征在于,在所述对所述后台进程进行解冻之后,还包括:获取与所述前台应用具备关联关系的后台进程的运行特征;根据所述运行特征确定所述具备关联关系的后台进程的资源限制等级;及将所述具备关联关系的后台进程分配到与所述资源限制等级对应的资源组别中,并配置与所述资源限制等级对应的资源使用优先级。
- 根据权利要求3所述的方法,其特征在于,所述获取与所述前台应用具备关联关系的后台进程的运行特征,包括:通过内核空间采集与所述前台应用具备关联关系的后台进程的运行特征,并将所述运行特征打包成数据包传送给用户空间;通过所述用户空间解析所述数据包,得到所述后台进程的运行特征;所述根据所述运行特征确定所述具备关联关系的后台进程的资源限制等级,包括:通过所述用户空间对所述运行特征进行分析,确定所述具备关联关系的后台进程的资源限制等级。
- 根据权利要求4所述的方法,其特征在于,所述通过所述用户空间对所述运行特征进行分析,确定所述具备关联关系的后台进程的资源限制等级,包括:当所述具备关联关系的后台进程与所述前台应用进行通信时,降低进行通信的后台进程的资源限制等级;及当所述具备关联关系的后台进程结束与所述前台应用的通信时,提高结束通信的后台进程的资源限制等级。
- 根据权利要求1至5任一所述的方法,其特征在于,还包括:当满足预设条件时,将解冻的后台进程重新进行冻结,其中,所述预设条件包括解冻的后台进程在预设第一时间段内没有与所述前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、所述前台应用结束在前台的运行状态中的一种或多种。
- 根据权利要求6所述的方法,其特征在于,还包括:通过用户空间发送终止信号;截获所述终止信号,当所述终止信号的目标进程处于冻结状态时,则解冻所述目标进程及所述目标进程下包含的各个线程;及设置所述目标进程为不可冻结状态,并将所述终止信号发送给所述目标进程,所述终止信号用于终止所述目标进程。
- 一种移动终端,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下操作:当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;当所述运行时间达到预设时间阈值时,则获取与所述前台应用具备关联关系的后台进 程;确定与所述前台应用具备关联关系的后台进程的状态;及当所述后台进程的状态为冻结状态时,则对所述后台进程进行解冻。
- 根据权利要求8所述的移动终端,其特征在于,所述处理器执行所述获取与所述前台进程具备关联关系的后台进程时,执行如下操作:获取与所述前台应用具备通信机制的后台进程。
- 根据权利要求8所述的移动终端,其特征在于,所述处理器执行所述在所述对所述后台进程进行解冻之后,还执行如下操作:获取与所述前台应用具备关联关系的后台进程的运行特征;根据所述运行特征确定所述具备关联关系的后台进程的资源限制等级;及将所述具备关联关系的后台进程分配到与所述资源限制等级对应的资源组别中,并配置与所述资源限制等级对应的资源使用优先级。
- 根据权利要求10所述的移动终端,其特征在于,所述处理器执行所述获取与所述前台应用具备关联关系的后台进程的运行特征时,还执行如下操作:通过内核空间采集与所述前台应用具备关联关系的后台进程的运行特征,并将所述运行特征打包成数据包传送给用户空间;通过所述用户空间解析所述数据包,得到所述后台进程的运行特征;所述处理执行所述根据所述运行特征确定所述具备关联关系的后台进程的资源限制等级时,还执行:通过所述用户空间对所述运行特征进行分析,确定所述具备关联关系的后台进程的资源限制等级。
- 根据权利要求11所述的移动终端,其特征在于,所述处理器执行所述通过所述用户空间对所述运行特征进行分析,确定所述具备关联关系的后台进程的资源限制等级时,还执行如下操作:当所述具备关联关系的后台进程与所述前台应用进行通信时,降低进行通信的后台进程的资源限制等级;及当所述具备关联关系的后台进程结束与所述前台应用的通信时,提高结束通信的后台进程的资源限制等级。
- 根据权利要求8至12任一项所述的移动终端,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:当满足预设条件时,将解冻的后台进程重新进行冻结,其中,所述预设条件包括解冻的后台进程在预设第一时间段内没有与所述前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、所述前台应用结束在前台的运行状态中的一种或多种。
- 根据权利要求13所述的移动终端,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:通过用户空间发送终止信号;截获所述终止信号,当所述终止信号的目标进程处于冻结状态时,则解冻所述目标进程及所述目标进程下包含的各个线程;及设置所述目标进程为不可冻结状态,并将所述终止信号发送给所述目标进程,所述终止信号用于终止所述目标进程。
- 一个或多个包含计算机程序的计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被一个或多个处理器执行时,使得所述处理器执行以下操作:当监听到前台应用启动时,记录所述前台应用启动后在前台的运行时间;当所述运行时间达到预设时间阈值时,则获取与所述前台应用具备关联关系的后台进程;确定与所述前台应用具备关联关系的后台进程的状态;及当所述后台进程的状态为冻结状态时,则对所述后台进程进行解冻。
- 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器执行所述在所述对所述后台进程进行解冻之后,还执行如下操作:获取与所述前台应用具备关联关系的后台进程的运行特征;根据所述运行特征确定所述具备关联关系的后台进程的资源限制等级;及将所述具备关联关系的后台进程分配到与所述资源限制等级对应的资源组别中,并配置与所述资源限制等级对应的资源使用优先级。
- 根据权利要求16所述的计算机可读存储介质,其特征在于,所述处理器执行所述获取与所述前台应用具备关联关系的后台进程的运行特征时,还执行如下操作:通过内核空间采集与所述前台应用具备关联关系的后台进程的运行特征,并将所述运行特征打包成数据包传送给用户空间;通过所述用户空间解析所述数据包,得到所述后台进程的运行特征;所述处理执行所述根据所述运行特征确定所述具备关联关系的后台进程的资源限制等级时,还执行:通过所述用户空间对所述运行特征进行分析,确定所述具备关联关系的后台进程的资源限制等级。
- 根据权利要求17所述的计算机可读存储介质,其特征在于,所述处理器执行所述通过所述用户空间对所述运行特征进行分析,确定所述具备关联关系的后台进程的资源限制等级时,还执行如下操作:当所述具备关联关系的后台进程与所述前台应用进行通信时,降低进行通信的后台进程的资源限制等级;及当所述具备关联关系的后台进程结束与所述前台应用的通信时,提高结束通信的后台进程的资源限制等级。
- 根据权利要求15至18任一项所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:当满足预设条件时,将解冻的后台进程重新进行冻结,其中,所述预设条件包括解冻的后台进程在预设第一时间段内没有与所述前台应用进行通信、解冻的后台进程进入解冻状态超过预设第二时间段、所述前台应用结束在前台的运行状态中的一种或多种。
- 根据权利要求19所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器还执行如下操作:通过用户空间发送终止信号;截获所述终止信号,当所述终止信号的目标进程处于冻结状态时,则解冻所述目标进程及所述目标进程下包含的各个线程;及设置所述目标进程为不可冻结状态,并将所述终止信号发送给所述目标进程,所述终止信号用于终止所述目标进程。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023233.1 | 2018-01-10 | ||
CN201810023233.1A CN110032267B (zh) | 2018-01-10 | 2018-01-10 | 信息处理方法、装置、移动终端及计算机可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019137170A1 true WO2019137170A1 (zh) | 2019-07-18 |
Family
ID=67218814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/122048 WO2019137170A1 (zh) | 2018-01-10 | 2018-12-19 | 信息处理方法、移动终端及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110032267B (zh) |
WO (1) | WO2019137170A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230012021A1 (en) * | 2021-07-08 | 2023-01-12 | EMC IP Holding Company LLC | Feature Resource Self-Tuning and Rebalancing |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221650A (zh) * | 2019-12-31 | 2020-06-02 | 青岛海尔科技有限公司 | 基于进程类型关联的系统资源回收方法及装置 |
CN114168203B (zh) * | 2020-09-10 | 2024-02-13 | 成都鼎桥通信技术有限公司 | 双系统运行状态控制方法、装置和电子设备 |
CN112256354B (zh) * | 2020-11-25 | 2023-05-16 | Oppo(重庆)智能科技有限公司 | 应用启动方法、装置、存储介质及电子设备 |
CN112671672B (zh) * | 2020-12-16 | 2023-12-08 | 深圳Tcl新技术有限公司 | 应用流量控制方法、装置、设备和可读存储介质 |
CN112860439A (zh) * | 2021-03-01 | 2021-05-28 | 北京字节跳动网络技术有限公司 | 应用启动方法、装置、终端及存储介质 |
CN115016631B (zh) * | 2021-11-22 | 2023-07-18 | 荣耀终端有限公司 | 进程调度方法和终端设备 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873616A (zh) * | 2010-06-21 | 2010-10-27 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端自检的方法、系统及移动终端 |
CN102331965A (zh) * | 2011-09-15 | 2012-01-25 | 深圳桑菲消费通信有限公司 | 终端资源管理的方法 |
CN106506815A (zh) * | 2016-10-19 | 2017-03-15 | 北京奇虎科技有限公司 | 一种应用的启用方法及相关设备 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8527996B2 (en) * | 2010-01-07 | 2013-09-03 | International Business Machines Corporation | Method and system for performing a combination of throttling server, throttling network and throttling a data storage device by employing first, second and third single action tools |
US8990819B2 (en) * | 2012-09-30 | 2015-03-24 | International Business Machines Corporation | Efficient rollback and retry of conflicted speculative threads using distributed tokens |
CN103645954B (zh) * | 2013-11-21 | 2018-12-14 | 华为技术有限公司 | 一种基于异构多核体系的cpu调度方法、装置和系统 |
CN105979095B (zh) * | 2016-06-27 | 2019-08-16 | 努比亚技术有限公司 | 移动终端及应用功耗控制方法 |
CN106648849A (zh) * | 2016-10-18 | 2017-05-10 | 上海传英信息技术有限公司 | 进程的冷冻方法和移动终端 |
CN106843450A (zh) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | 一种终端应用的存储处理方法和装置 |
CN107436779A (zh) * | 2017-05-22 | 2017-12-05 | 努比亚技术有限公司 | 一种应用程序管理方法、设备及计算机可读存储介质 |
CN107479951B (zh) * | 2017-07-31 | 2020-02-11 | Oppo广东移动通信有限公司 | 进程管控方法、装置、存储介质及电子设备 |
CN107526640B (zh) * | 2017-08-17 | 2020-03-27 | Oppo广东移动通信有限公司 | 资源管理方法、装置、移动终端及计算机可读存储介质 |
-
2018
- 2018-01-10 CN CN201810023233.1A patent/CN110032267B/zh active Active
- 2018-12-19 WO PCT/CN2018/122048 patent/WO2019137170A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873616A (zh) * | 2010-06-21 | 2010-10-27 | 宇龙计算机通信科技(深圳)有限公司 | 一种移动终端自检的方法、系统及移动终端 |
CN102331965A (zh) * | 2011-09-15 | 2012-01-25 | 深圳桑菲消费通信有限公司 | 终端资源管理的方法 |
CN106506815A (zh) * | 2016-10-19 | 2017-03-15 | 北京奇虎科技有限公司 | 一种应用的启用方法及相关设备 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230012021A1 (en) * | 2021-07-08 | 2023-01-12 | EMC IP Holding Company LLC | Feature Resource Self-Tuning and Rebalancing |
US11928517B2 (en) * | 2021-07-08 | 2024-03-12 | EMC IP Holding Company LLC | Feature resource self-tuning and rebalancing |
Also Published As
Publication number | Publication date |
---|---|
CN110032267B (zh) | 2021-05-18 |
CN110032267A (zh) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019137170A1 (zh) | 信息处理方法、移动终端及计算机可读存储介质 | |
WO2019128540A1 (zh) | 资源管理方法、移动终端及计算机可读存储介质 | |
EP3851956B1 (en) | Method and apparatus for accelerating cold-starting of application | |
CN110032429B (zh) | 信息处理方法、装置、移动终端及计算机可读存储介质 | |
WO2019128546A1 (zh) | 应用程序处理方法、电子设备、计算机可读存储介质 | |
CN107577508B (zh) | 应用程序处理方法、装置、可读存储介质和移动终端 | |
WO2019137173A1 (zh) | 资源管理方法、移动终端及计算机可读存储介质 | |
CN109992399B (zh) | 资源管理方法、装置、移动终端及计算机可读存储介质 | |
WO2019024804A1 (zh) | Cpu监测方法、计算机可读存储介质和移动终端 | |
CN108334345B (zh) | 应用程序处理方法、装置、可读存储介质和移动终端 | |
WO2019128537A1 (zh) | 应用冻结方法、计算机设备和计算机可读存储介质 | |
CN110032266B (zh) | 信息处理方法、装置、计算机设备和计算机可读存储介质 | |
WO2019128573A1 (zh) | 信息处理方法、装置、计算机设备和计算机可读存储介质 | |
WO2019128588A1 (zh) | 进程处理方法和装置、电子设备、计算机可读存储介质 | |
CN109992323B (zh) | 进程处理方法和装置、电子设备、计算机可读存储介质 | |
WO2019128574A1 (zh) | 信息处理方法、装置、计算机设备和计算机可读存储介质 | |
CN109992380B (zh) | 应用程序处理方法和装置、电子设备、计算机可读存储介质 | |
CN110018905B (zh) | 信息处理方法、装置、计算机设备和计算机可读存储介质 | |
WO2019128586A1 (zh) | 应用程序处理方法、电子设备、计算机可读存储介质 | |
WO2019128569A1 (zh) | 应用程序冻结方法、装置、存储介质和终端 | |
WO2019128553A1 (zh) | 应用程序处理方法、电子设备、计算机可读存储介质 | |
CN110046032A (zh) | 应用程序处理方法和装置、电子设备、计算机可读存储介质 | |
CN109992360B (zh) | 进程处理方法和装置、电子设备、计算机可读存储介质 | |
CN110032397B (zh) | 应用处理方法和装置、电子设备、计算机可读存储介质 | |
WO2019137187A1 (zh) | 资源管理方法、装置、移动终端及计算机可读存储介质 |
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: 18900204 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18900204 Country of ref document: EP Kind code of ref document: A1 |