技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种信息处理方法、装置、计算机设备和计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to an information processing method, apparatus, computer device, and computer-readable storage medium.
背景技术Background technique
随着智能计算机设备的发展和用户需求的不断提升,越来越多的智能计算机设备的屏幕越来越大,可运行的应用程序越来越多,智能计算机设备的功耗也越来越大。为了节省智能计算机设备的功耗,智能计算机设备可对运行的应用程序进行资源限制,限制应用程序可用的系统资源。With the development of intelligent computer equipment and the continuous improvement of user needs, more and more intelligent computer equipment have larger and larger screens, more and more applications that can be run, and the power consumption of intelligent computer equipment is also increasing. . In order to save the power consumption of the intelligent computer device, the intelligent computer device may perform resource restriction on the running application program, and limit the system resources available to the application program.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种信息处理方法、装置、计算机设备和计算机可读存储介质,可以对计算机设备中后台应用程序进行资源限制。The embodiments of the present application provide an information processing method, an apparatus, a computer device, and a computer-readable storage medium, which can limit the resources of a background application program in the computer device.
一种信息处理方法,包括:An information processing method, comprising:
获取计算机设备中当前运行的应用程序的数量、应用程序占用的内存之和;Obtain the number of applications currently running in the computer device and the sum of the memory occupied by the applications;
若检测到所述应用程序的数量大于第一阈值和所述应用程序占用的内存之和大于第二阈值中至少一种,对后台应用程序进行资源限制;所述第一阈值是根据电池容量预设的值,所述第二阈值是根据总内存值预设的值。If it is detected that at least one of the number of the applications is greater than the first threshold and the sum of the memory occupied by the applications is greater than the second threshold, the background application is limited in resources; the first threshold is based on the battery capacity The second threshold is a preset value according to the total memory value.
一种信息处理装置,包括:An information processing device, comprising:
获取模块,用于获取计算机设备中当前运行的应用程序的数量、应用程序占用的内存之和;an acquisition module, used to acquire the number of currently running applications in the computer device and the sum of the memory occupied by the applications;
处理模块,用于若检测到所述应用程序的数量大于第一阈值和所述应用程序占用的内存之和大于第二阈值中至少一种,对后台应用程序进行资源限制;所述第一阈值是根据电池容量预设的值,所述第二阈值是根据总内存值预设的值。A processing module, configured to perform resource limitation on the background application if it is detected that the number of the application is greater than a first threshold and the sum of the memory occupied by the application is greater than a second threshold; the first threshold is a preset value according to the battery capacity, and the second threshold is a preset value according to the total memory value.
一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的方法的步骤。A computer device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above method.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the method as described above.
本申请实施例中,当检测到计算机设备中当前运行的应用程序较多,或当前运行的应用程序占用的内存之和较大时,对后台应用程序进行资源限制,可避免当前可用系统资源不够导致前台应用程序运行缓慢的问题,提高了计算机设备的运行流畅度。In the embodiment of the present application, when it is detected that there are many application programs currently running in the computer device, or the sum of the memory occupied by the currently running application programs is large, the background application program is limited in resources, so as to avoid insufficient currently available system resources The problem that causes the foreground application to run slowly improves the running smoothness of the computer equipment.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中计算机设备的内部结构示意图;1 is a schematic diagram of the internal structure of a computer device in one embodiment;
图2为一个实施例中计算机设备的部分架构图;FIG. 2 is a partial architecture diagram of a computer device in one embodiment;
图3为一个实施例中信息处理方法的流程图;3 is a flowchart of an information processing method in one embodiment;
图4为另一个实施例中信息处理方法的流程图;4 is a flowchart of an information processing method in another embodiment;
图5为另一个实施例中信息处理方法的流程图;5 is a flowchart of an information processing method in another embodiment;
图6为另一个实施例中信息处理方法的流程图;6 is a flowchart of an information processing method in another embodiment;
图7为一个实施例中信息处理装置的结构框图;7 is a structural block diagram of an information processing apparatus in one embodiment;
图8为另一个实施例中信息处理装置的结构框图;8 is a structural block diagram of an information processing apparatus in another embodiment;
图9为另一个实施例中信息处理装置的结构框图;9 is a structural block diagram of an information processing apparatus in another embodiment;
图10与本申请实施例提供的计算机设备相关的手机的部分结构的框图。FIG. 10 is a block diagram of a partial structure of a mobile phone related to a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
图1为一个实施例中计算机设备的内部结构示意图。如图1所示,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个计算机设备的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于计算机设备的内存回收方法。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种内存回收方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的计算机设备进行通信。该计算机设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。FIG. 1 is a schematic diagram of the internal structure of a computer device in one embodiment. As shown in Figure 1, the computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire computer equipment. The memory is used to store data, programs, etc., and at least one computer program is stored in the memory, and the computer program can be executed by the processor to implement the memory recovery method applicable to the computer device provided in the embodiments of the present application. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a memory reclamation method provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The network interface can be an Ethernet card or a wireless network card, etc., and is used to communicate with external computer equipment. The computer device may be a mobile phone, a tablet computer, a personal digital assistant or a wearable device, or the like.
本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。如该计算机设备还包括通过系统总线连接的网络接口,网络接口可以是以太网卡或无线网卡等,用于与外部的计算机设备进行通信,比如可用于同服务器进行通信。Those skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components. For example, the computer device further includes a network interface connected through a system bus, and the network interface may be an Ethernet card or a wireless network card, etc., for communicating with external computer devices, such as for communicating with a server.
图2为一个实施例中计算机设备的部分架构图。如图2所示,计算机设备的架构系统中包括Java空间层210、本地框架层220以及内核(Kernel)空间层230。Java空间层中包括冻结和解冻模块212,上述冻结和解冻模块212用于实现对各个应用程序的冻结策略,例如对后台耗电的应用程序进行冻结等。Figure 2 is a partial architectural diagram of a computer device in one embodiment. As shown in FIG. 2 , the architecture system of the computer device includes a Java space layer 210 , a native framework layer 220 and a kernel space layer 230 . The Java space layer includes a freezing and thawing module 212, and the above freezing and thawing module 212 is used to implement a freezing strategy for each application, such as freezing an application that consumes power in the background.
本地框架层220中包括资源优先级和限制管理模块222、平台冻结管理模块224。上述资源优先级和限制管理模块222可对不同的应用程序进行不同的资源限制,使不同的应用程序处于不同的资源优先级中。资源优先级和限制管理模块222还可根据上层的需求调整应用程序的资源优先级,使得计算机设备可合理应用程序可使用资源。平台冻结管理模块224可根据应用程序进入后台的时长来确定对进程应用程序进行资源限制的等级,平台冻结管理模块224可预设不同的资源限制的等级,应用程序进入后台的时间越长,平台冻结管理模块224对应用程序进行资源限制的等级越高,即对应用程序的资源限制程度越高。可选地,上述资源限制等级可包括:CPU限制睡眠模式、CPU冻结睡眠模式和进程深度冻结模式。上述CPU限制睡眠模式是指对应用程序的进程可使用的中央处理器(CentralProcessing Unit,CPU)资源进行限制,使应用程序的进程可使用较少的CPU资源;在CPU限制睡眠模式下还可进一步限制应用程序的进程可使用的网络资源和输入/输出接口(input/output,I/O)资源。CPU冻结睡眠模式是指禁止应用程序的进程使用CPU资源、网络资源和I/O资源,但对应用程序的进程占用的内存资源不进行回收,上述CPU冻结睡眠模式是对应用程序可使用资源的深度限制模式。进程深度冻结模式是指禁止应用程序的进程使用CPU资源、网络资源和I/O资源,同时回收应用程序的进程占用的内存资源。其中,本地框架层220的接口模块包含开发给上层的binder接口,上层的框架或应用程序通过上述binder接口可发送资源限制指令给资源限制管理模块222、发送冻结指令给平台冻结管理模块224。The local framework layer 220 includes a resource priority and restriction management module 222 and a platform freeze management module 224. The above-mentioned resource priority and restriction management module 222 can perform different resource restrictions on different applications, so that different applications are in different resource priorities. The resource priority and limit management module 222 can also adjust the resource priority of the application program according to the requirements of the upper layer, so that the computer device can reasonably use the resources of the application program. The platform freeze management module 224 can determine the level of resource restriction for the process application according to the duration of the application entering the background. The platform freeze management module 224 can preset different resource restriction levels. The longer the application enters the background, the platform freezes. The higher the level of resource restriction performed by the freezing management module 224 on the application, the higher the degree of resource restriction on the application. Optionally, the above-mentioned resource restriction level may include: a CPU-limited sleep mode, a CPU-freeze sleep mode, and a process deep freeze mode. The above CPU-limited sleep mode refers to limiting the central processing unit (Central Processing Unit, CPU) resources that can be used by the process of the application program, so that the process of the application program can use less CPU resources; in the CPU-limited sleep mode, further Limit the network resources and input/output interface (input/output, I/O) resources that can be used by the process of the application. The CPU freeze sleep mode means that the process of the application program is prohibited from using CPU resources, network resources and I/O resources, but the memory resources occupied by the process of the application program are not recycled. The above CPU freeze sleep mode is for the resources available to the application program. Depth-limited mode. The process deep freeze mode means that the process of the application program is prohibited from using CPU resources, network resources and I/O resources, and at the same time, the memory resources occupied by the process of the application program are reclaimed. Wherein, the interface module of the local framework layer 220 includes a binder interface developed to the upper layer, and the upper layer framework or application program can send resource restriction instructions to the resource restriction management module 222 and freeze instructions to the platform freeze management module 224 through the above-mentioned binder interface.
内核空间层230中包括UID管理模块231、Cgroup模块232、binder管控模块233、进程内存回收模块234和超时冻结退出模块235。当前对应用程序的进程管理是基于进程识别号(Process Identification,PID)来实现的,进程与应用程序没有对应,不利于统一管理一个应用程序的所有进程对应的资源。上述UID管理模块231可通过应用程序的用户身份标识(User Identifier,UID)来管理应用程序的资源,也可通过应用程序的UID对应用程序进行冻结。Cgroup模块232可提供基于CPU、CPUSET、内存(memory)、I/O资源和Net相关的资源限制机制。binder管控模块233可用于限制后台进程间binder通信的优先级。进程内存回收模块234用于实现进程深度冻结模式,在进程进入进程深度冻结模式时,释放掉进程的文件区,从而实现节省内存,加快进程对应的应用程序下次启动时的速度。超时冻结退出模块235用于解决进程在冻结超时发生异常的问题。The kernel space layer 230 includes a UID management module 231 , a Cgroup module 232 , a binder management and control module 233 , a process memory recovery module 234 and a timeout freeze exit module 235 . The current process management of an application is implemented based on a process identification number (Process Identification, PID), and a process does not correspond to an application, which is not conducive to unified management of resources corresponding to all processes of an application. The above-mentioned UID management module 231 can manage the resources of the application through the user identifier (User Identifier, UID) of the application, and can also freeze the application through the UID of the application. The Cgroup module 232 can provide resource limitation mechanisms based on CPU, CPUSET, memory, I/O resources and Net-related resources. The binder control module 233 can be used to limit the priority of binder communication between background processes. The process memory recovery module 234 is used to realize the process deep freeze mode. When the process enters the process deep freeze mode, the file area of the process is released, so as to save memory and speed up the next startup of the application corresponding to the process. The timeout freezing and exiting module 235 is used to solve the problem that the process is abnormal during the freezing timeout.
通过上述的架构,可实现本申请各个实施例中的内存回收方法。Through the above-mentioned architecture, the memory recycling methods in the various embodiments of the present application can be implemented.
图3为一个实施例中信息处理方法的流程图。如图3所示,一种信息处理方法,包括:FIG. 3 is a flowchart of an information processing method in one embodiment. As shown in Figure 3, an information processing method includes:
步骤302,获取计算机设备中当前运行的应用程序的数量、应用程序占用的内存之和。Step 302: Obtain the number of currently running application programs in the computer device and the sum of the memory occupied by the application programs.
计算机设备在运行时,可获取当前运行的应用程序的数量、应用程序占用的内存之和。上述当前运行的应用程序的数量包括前台运行的应用程序与后台运行的应用程序之和。上述应用程序占用的内存之和包括前台运行的应用程序与后台运行的应用程序占用的内存资源的累计值。When the computer device is running, it can obtain the number of currently running applications and the sum of the memory occupied by the applications. The above number of currently running applications includes the sum of the applications running in the foreground and the applications running in the background. The sum of the memory occupied by the above applications includes the cumulative value of the memory resources occupied by the applications running in the foreground and the applications running in the background.
步骤304,若检测到应用程序的数量大于第一阈值和应用程序占用的内存之和大于第二阈值中至少一种,对后台应用程序进行资源限制。第一阈值是根据电池容量预设的值,第二阈值是根据总内存值预设的值。Step 304 , if it is detected that the number of applications is greater than at least one of the first threshold and the sum of the memory occupied by the applications is greater than the second threshold, limit the resources of the background applications. The first threshold is a preset value according to the battery capacity, and the second threshold is a preset value according to the total memory value.
计算机设备中预设有电池容量对应的第一阈值,上述第一阈值是计算机设备中可运行的应用程序的阈值。计算机设备中还预设总内存值对应的第二阈值,上述第二阈值是计算机设备中运行的应用程序占用内存的阈值。可选地,上述第一阈值可与电池容量呈正比关系,当电池容量小时,第一阈值较小;当电池容量大时,第一阈值较大。上述第二阈值可与总内存值呈正比关系,当总内存值较小时,第二阈值较小;当总内存值较大时,第二阈值较大。A first threshold corresponding to the battery capacity is preset in the computer device, and the first threshold is a threshold of an application program that can be run in the computer device. A second threshold corresponding to the total memory value is also preset in the computer device, where the second threshold is a threshold of memory occupied by an application running in the computer device. Optionally, the first threshold value may be proportional to the battery capacity. When the battery capacity is small, the first threshold value is relatively small; when the battery capacity is large, the first threshold value is relatively large. The above-mentioned second threshold value may be proportional to the total memory value. When the total memory value is small, the second threshold value is small; when the total memory value is large, the second threshold value is large.
当计算机设备中运行的应用程序的数量超过第一阈值时,计算机设备判定当前运行的应用程序过多,需要对后台应用程序进行资源限制。当计算机设备检测到运行的应用程序占用的内存之和大于第二阈值时,计算机设备判定当前运行的应用程序占用的内存资源过多,需要对后台应用程序进行资源限制。When the number of application programs running in the computer device exceeds the first threshold, the computer device determines that there are too many application programs currently running, and it is necessary to limit the resources of the background application program. When the computer device detects that the sum of the memory occupied by the running application program is greater than the second threshold, the computer device determines that the currently running application program occupies too many memory resources and needs to limit the resources of the background application program.
计算机设备对后台应用程序进行资源限制可包括:限制后台应用程序使用CPU资源、I/O资源、网络资源和内存资源。其中,计算机设备对后台应用程序进行资源限制时,可对后台应用程序占用的系统资源均进行资源限制,也可对后台应用程序占用的某一类系统资源进行资源限制。计算机设备在对后台应用程序进行资源限制时,可禁止该后台应用程序使用系统资源,也可限制该后台应用程序可用的系统资源。The resource limitation on the background application by the computer device may include: restricting the background application from using CPU resources, I/O resources, network resources and memory resources. Wherein, when the computer device restricts the resources of the background application, it may restrict all the system resources occupied by the background application, and may also restrict the resources of a certain type of system resources occupied by the background application. When the computer device restricts the resources of the background application, it can prohibit the background application from using system resources, and can also limit the system resources available to the background application.
本申请实施例中方法,当检测到计算机设备中当前运行的应用程序较多,或当前运行的应用程序占用的内存之和较大时,对后台应用程序进行资源限制,可避免当前可用系统资源不够导致前台应用程序运行缓慢的问题,提高了计算机设备的运行流畅度。In the method in the embodiment of the present application, when it is detected that there are many application programs currently running in the computer device, or the sum of the memory occupied by the currently running application programs is large, the background application program is limited in resources, which can avoid currently available system resources It is not enough to cause the problem of slow running of the foreground application, which improves the running smoothness of the computer equipment.
在一个实施例中,步骤304中对后台应用程序进行资源限制包括:In one embodiment, the resource limitation on the background application in step 304 includes:
(1)获取后台应用程序的权值,权值是根据后台应用程序的运行信息获取的。(1) Obtain the weight of the background application, and the weight is obtained according to the running information of the background application.
(2)根据后台应用程序的权重确定对后台应用程序进行资源限制的顺序。(2) Determine the sequence of resource limitation on the background applications according to the weight of the background applications.
(3)根据顺序对后台应用程序分别进行资源限制。(3) Resource restrictions are respectively performed on the background applications according to the order.
计算机设备可获取应用程序的运行信息,上述应用程序的运行信息包括应用程序在计算机设备前台运行时的运行信息、应用程序在计算机设备后台运行时的运行信息。上述应用程序的运行信息可包括:应用程序在前台运行的时间段、应用程序在前台运行的日期类型(上述日期类型包括工作日和休息日)、应用程序在前台运行时的网络类型和网络状态(上述网络类型可包括无线局域网和蜂窝数据网,上述网络状态可包括网络速度)、应用程序在后台运行的时间段、应用程序在后台冻结的时间段、应用程序在后台冻结的冻结等级、应用程序在前台运行时耳机的插拔状态、应用程序在前台运行时计算机设备是否在充电、应用程序在前台运行时计算机设备的电量,应用程序的类型等。The computer device can obtain the running information of the application, and the above-mentioned running information of the application includes the running information when the application is running in the foreground of the computer device, and the running information when the application is running in the background of the computer device. The running information of the above application may include: the time period when the application is running in the foreground, the date type when the application is running in the foreground (the above date type includes working days and rest days), the network type and network status when the application is running in the foreground (The above-mentioned network types may include wireless local area networks and cellular data networks, and the above-mentioned network status may include network speed), the time period during which the application runs in the background, the time period during which the application freezes in the background, the freeze level at which the application freezes in the background, the application Plug and unplug status of the headset when the program is running in the foreground, whether the computer device is charging when the application is running in the foreground, the power of the computer device when the application is running in the foreground, the type of the application, etc.
计算机设备可通过机器学习模型来获取应用程序的权重,上述机器学习模型是根据机器学习算法构建的决策模型,通过对机器学习模型进行训练,可使得机器学习模型能构建应用程序的运行信息和应用程序的权重之间的关系。计算机设备在获取到各个应用程序的运行信息后,可根据上述应用程序的运行信息获取应用程序的权重。其中,机器学习模型还具有学习和更新功能,随着学习和决策的样本数量的增加,机器学习模型还可以动态的调整应用程序的运行信息应用程序的权重之间的关系。上述应用程序的权重表示用户使用应用程序的深度,应用程序的权重越高,则用户使用该应用程序的深度越深,应用程序的权重越低,则用户使用该应用程序的深度越浅。具体地,应用程序的权重可用0至1之间的数字表示,数字越大,应用程序的权重越高,表示用户越经常使用该应用程序;数字越小,应用程序的权重越低,表示用户越不常使用该应用程序。The computer equipment can obtain the weight of the application program through the machine learning model. The above-mentioned machine learning model is a decision-making model constructed according to the machine learning algorithm. By training the machine learning model, the machine learning model can be used to construct the operation information and application of the application program. The relationship between the weights of the program. After acquiring the running information of each application, the computer device can acquire the weight of the application according to the running information of the application. Among them, the machine learning model also has the function of learning and updating. With the increase of the number of samples for learning and decision-making, the machine learning model can also dynamically adjust the relationship between the weights of the application's running information. The weight of the above application represents the depth of the user's use of the application. The higher the weight of the application, the deeper the user uses the application, and the lower the weight of the application, the shallower the user uses the application. Specifically, the weight of an application can be represented by a number between 0 and 1. The larger the number, the higher the weight of the application, indicating that the user uses the application more often; the smaller the number, the lower the weight of the application, indicating that the user The less often the app is used.
计算机设备可将后台应用程序按照权重由低到高的顺序进行排序,按照权重由低到高的顺序对后台应用程序进行资源限制。其中,计算机设备在对后台应用程序进行资源限制时,若检测到当前运行的应用程序的数量不大于第一阈值且应用程序占用的内存之和不大于第二阈值,不再对后台应用程序进行资源限制。The computer device may sort the background applications in order of weight from low to high, and limit the resources of the background applications in the order of weight from low to high. Wherein, when the computer device restricts the resources of the background application, if it detects that the number of the currently running application is not greater than the first threshold and the sum of the memory occupied by the application is not greater than the second threshold, the background application will no longer be executed. Resource constraints.
本申请实施例中方法,计算机设备可根据后台应用程序的权值确定对后台应用程序进行资源限制的顺序,对后台应用程序进行资源限制的方法更加智能化。In the method in the embodiment of the present application, the computer device can determine the sequence of resource limitation on the background application program according to the weight of the background application program, and the method for resource limitation on the background application program is more intelligent.
在一个实施例中,步骤304中对后台应用程序进行资源限制包括:In one embodiment, the resource limitation on the background application in step 304 includes:
(1)获取后台应用程序进入后台的时长,根据时长确定对后台应用程序进行资源限制的限制等级。(1) Obtain the duration of the background application entering the background, and determine the restriction level of resource restriction on the background application according to the duration.
(2)根据限制等级对后台应用程序进行资源限制。(2) Restrict resources to background applications according to the restriction level.
计算机设备可获取后台应用程序进入后台的时长,根据上述时长确定对后台应用程序进行资源限制的限制等级。可选地,计算机设备对进入后台时间越长的应用程序进行资源限制的等级越高。计算机设备对应用程序进行资源限制的限制等级包括:CPU限制睡眠模式、CPU冻结睡眠模式和进程深度冻结模式。其中,CPU限制睡眠模式是指对应用程序的进程可使用的CPU资源进行限制,例如总CPU资源的10%,使应用程序的进程可使用较少的CPU资源;在CPU限制睡眠模式下还可进一步限制应用程序的进程可使用的网络资源和I/O资源。CPU冻结睡眠模式是指禁止应用程序的进程使用CPU资源、网络资源和I/O资源,但对应用程序的进程占用的内存资源不进行回收,上述CPU冻结睡眠模式是对应用程序可使用资源的深度限制模式。进程深度冻结模式是指禁止应用程序的进程使用CPU资源、网络资源和I/O资源,同时回收应用程序的进程占用的内存资源。The computer device may obtain the duration of the background application program entering the background, and determine the restriction level for resource restriction on the background application program according to the aforementioned duration. Optionally, the computer device has a higher level of resource restriction on applications that have been in the background for a longer time. Restriction levels of the computer device to limit the resources of applications include: CPU-limited sleep mode, CPU freeze sleep mode, and process deep freeze mode. Among them, the CPU-limited sleep mode refers to limiting the CPU resources that can be used by the process of the application, such as 10% of the total CPU resources, so that the process of the application can use less CPU resources; in the CPU-limited sleep mode, it is also possible to Further limit the network and I/O resources available to the application's processes. The CPU freeze sleep mode means that the process of the application program is prohibited from using CPU resources, network resources and I/O resources, but the memory resources occupied by the process of the application program are not recycled. The above CPU freeze sleep mode is for the resources available to the application program. Depth-limited mode. The process deep freeze mode means that the process of the application program is prohibited from using CPU resources, network resources and I/O resources, and at the same time, the memory resources occupied by the process of the application program are reclaimed.
计算机设备可根据上述后台应用程序进入后台的时长来确定对后台应用程序进行资源限制的限制等级The computer device may determine the restriction level of resource restriction on the background application according to the duration of the above background application entering the background
本申请实施例中方法,计算机设备可根据后台应用程序进入后台的时长确定对后台应用程序进行资源限制的限制等级,对后台应用程序进行资源限制的方式更加智能化。In the method in the embodiment of the present application, the computer device can determine the restriction level of resource restriction on the background application program according to the duration of the background application program entering the background, and the way of resource restriction on the background application program is more intelligent.
在一个实施例中,步骤304中对后台应用程序进行资源限制包括:In one embodiment, the resource limitation on the background application in step 304 includes:
(1)获取与电池容量对应的资源限制策略。(1) Obtain the resource restriction policy corresponding to the battery capacity.
(2)根据资源限制策略对后台应用程序进行资源限制。(2) Restrict resources to background applications according to resource restriction policies.
计算机设备中可预设与电池容量对应的资源限制策略,计算机设备也可通过服务器获取与电池容量对应的资源限制策略。在电池容量较小时,计算机设备要考虑续航能力,对应用程序的资源限制等级较高;当电池容量较大时,计算机设备对应用程序的资源限制等级较低。The resource limitation policy corresponding to the battery capacity may be preset in the computer device, and the computer device may also obtain the resource limitation policy corresponding to the battery capacity through the server. When the battery capacity is small, the computer equipment should consider the battery life, and the resource restriction level of the application program is higher; when the battery capacity is large, the resource restriction level of the computer device to the application program is lower.
计算机设备在获取与电池容量对应的资源限制策略后,可根据上述资源限制策略对后台应用程序进行资源限制。计算机设备可对应用程序进行分类,上述资源限制策略中可包括对各种类型的应用程序的资源限制等级,例如,对即时通讯类应用程序不进行资源限制,对音视频播放类应用程序设定资源限制等级为CPU限制睡眠模式。计算机设备也可对应用程序设定权值,上述资源限制策略中可对权值划分等级,对各个等级的权值设定对应的资源限制等级,例如,计算机设备可将权值由低到高划分为3个等级,对最低等级内权值对应的应用程序设定的资源限制等级为CPU限制睡眠模式,对最高等级内权值对应的应用程序设定的资源限制等级为进程深度冻结模式,对中间等级内权值对应的应用程序设定的资源限制等级为CPU冻结睡眠模式。After acquiring the resource restriction policy corresponding to the battery capacity, the computer device can perform resource restriction on the background application according to the above resource restriction policy. Computer equipment can classify applications, and the above resource restriction policies can include resource restriction levels for various types of applications. The resource limit level is CPU-bound sleep mode. The computer equipment can also set weights for the application programs. In the above resource restriction strategy, the weights can be divided into grades, and the corresponding resource restriction grades can be set for the weights of each grade. For example, the computer equipment can set the weights from low to high. Divided into 3 levels, the resource restriction level set for the application corresponding to the weight in the lowest level is the CPU-limited sleep mode, and the resource restriction level set for the application corresponding to the weight in the highest level is the process deep freeze mode. The resource restriction level set for the application program corresponding to the weight in the middle level is the CPU freeze sleep mode.
本申请实施例中方法,获取与电池容量对应的资源限制策略,根据上述资源限制策略对后台应用程序进行冻结,增强了计算机设备的续航能力。In the method in the embodiment of the present application, the resource restriction policy corresponding to the battery capacity is obtained, and the background application program is frozen according to the resource restriction policy, thereby enhancing the battery life of the computer device.
在一个实施例中,上述方法还包括:In one embodiment, the above method further includes:
步骤306,对后台应用程序设置资源优先级。Step 306 , set the resource priority for the background application.
步骤308,若检测到后台应用程序与前台应用程序具有通信机制和同步机制中至少一种,提升后台应用程序的资源优先级。Step 308, if it is detected that the background application and the foreground application have at least one of a communication mechanism and a synchronization mechanism, increase the resource priority of the background application.
计算机设备可对应用程序设置资源优先级。其中,计算机设备可根据应用程序的类型、应用程序的使用频次等对应用程序设定资源优先级。上述资源优先级是指对应用程序可使用资源的限制等级,应用程序对应的资源优先级不同,则应用程序可使用的资源的限制等级不同。应用程序对应的资源优先级越高,对应用程序可使用的资源的限制越少。上述可使用资源包括:CPU资源、内存资源、I/O资源和网络资源。例如,计算机设备可对应用程序设置5级优先级包括:第1级、第2级、第3级、第4级和第5级。其中,第1级优先级最高,第5级优先级最低。当应用程序处于第1级优先级时,各项资源可使用的比例为80%,即可使用CPU资源为总CPU资源的80%,可使用的内存资源为总内存资源的80%,可使用的I/O资源为总I/O资源的80%,可使用网络资源为总网络资源的80%。当应用程序处于第2级优先级时,各项资源可使用的比例为60%;当应用程序处于第3级优先级时,各项资源可使用的比例为40%;当应用程序处于第4级优先级时,各项资源可使用的比例为20%;当应用程序处于第5级优先级时,各项资源可使用的比例为10%。The computing device may set resource priorities for applications. The computer device may set resource priorities for the applications according to the type of the application, the frequency of use of the application, and the like. The above-mentioned resource priority refers to the restriction level of the resources that the application can use. If the resource priority corresponding to the application is different, the restriction level of the resource that the application can use is different. The higher the resource priority corresponding to the application, the less restrictive the resources that the application can use. The above usable resources include: CPU resources, memory resources, I/O resources, and network resources. For example, a computer device may set five levels of priority for applications including: level 1, level 2, level 3, level 4, and level 5. Among them, level 1 has the highest priority and level 5 has the lowest priority. When the application is at the first priority level, the available ratio of each resource is 80%, that is, the available CPU resources are 80% of the total CPU resources, and the available memory resources are 80% of the total memory resources. The available I/O resources are 80% of the total I/O resources, and the available network resources are 80% of the total network resources. When the application is at the second priority level, the available ratio of each resource is 60%; when the application is at the third priority level, the available ratio of each resource is 40%; when the application is at the fourth priority When the application is at the 5th priority level, the available ratio of each resource is 20%; when the application is at the 5th priority level, the available ratio of each resource is 10%.
应用程序的进程间通信机制包括socket、binder、共享内存等。网络上的两个程序通过一个双向的通信连接实现数据的交换,这个连接的一端称为一个socket。binder是一种进程间通信机制,提供远程过程调用功能。共享内存就是允许两个不相关的进程访问同一个逻辑内存,共享内存是在两个正在运行的进程之间共享和传递数据的一种非常有效的方式,不同进程之间共享的内存通常安排为同一段物理内存。应用程序的进程间同步机制是指并发程序设计中,各进程对公共变量的访问必须加以制约,这种制约称为同步。在操作系统中,用户态(user mode)的同步机制可通过调用futex系统调用实现。同步机制包括信号量、互斥锁等。当通过futex系统调用检测到与前台应用程序的进程存在任意一种同步机制的后台应用程序的进程时,可将检测到的后台应用程序作为被依赖应用程序。当后台应用程序与前台应用程序具有通信机制和同步机制中一种或多种时,可认为后台应用程序是前台应用程序的被依赖应用程序,即前台应用程序需要调用后台应用程序的数据才能顺利执行。The inter-process communication mechanism of the application includes socket, binder, shared memory, etc. Two programs on the network exchange data through a two-way communication connection, and one end of this connection is called a socket. Binder is an inter-process communication mechanism that provides remote procedure call functionality. Shared memory is all about allowing two unrelated processes to access the same logical memory. Shared memory is a very efficient way of sharing and passing data between two running processes. Memory shared between different processes is usually arranged as the same physical memory. The inter-process synchronization mechanism of an application program means that in the concurrent program design, the access of each process to the common variables must be restricted, and this restriction is called synchronization. In the operating system, the synchronization mechanism of user mode can be implemented by calling the futex system call. Synchronization mechanisms include semaphores, mutex locks, etc. When a process of a background application that has any synchronization mechanism with the process of the foreground application is detected through the futex system call, the detected background application can be used as a dependent application. When the background application and the foreground application have one or more of the communication mechanism and the synchronization mechanism, the background application can be considered as a dependent application of the foreground application, that is, the foreground application needs to call the data of the background application to be smooth. implement.
通常情况下,计算机设备对前台应用程序设定的资源优先级较高,对后台应用程序设定的资源优先级较低。当计算机设备检测到后台应用程序是前台应用程序所依赖的应用程序时,可检测后台应用程序的资源优先级与前台应用程序的资源优先级是否相同,若后台应用程序的资源优先级低于前台应用程序的资源优先级,则计算机设备可将后台应用程序的资源优先级提升到前台应用程序的资源优先级。In general, the computer device sets a higher resource priority for foreground applications, and lowers resource priorities for background applications. When the computer device detects that the background application is an application that the foreground application depends on, it can detect whether the resource priority of the background application is the same as that of the foreground application. If the resource priority of the background application is lower than that of the foreground application the resource priority of the application, the computer device may raise the resource priority of the background application to the resource priority of the foreground application.
本申请实施例中方法,当检测到后台应用程序是前台应用程序所依赖的应用程序时,可提高后台应用程序的资源优先级,后台应用程序可使用的资源增加,加快了后台应用程序响应前台应用程序的速度。In the method in the embodiment of the present application, when it is detected that the background application program is an application program that the foreground application program depends on, the resource priority of the background application program can be increased, the resources available for the background application program are increased, and the response of the background application program to the foreground program is accelerated. application speed.
在一个实施例中,还包括:当检测到前台应用程序结束对后台应用程序的依赖,降低上述后台应用程序的资源优先级。当后台应用程序不再是前台应用程序所依赖的应用程序时,将后台应用程序的资源优先级恢复到调整前较低的资源优先级。In one embodiment, the method further includes: when it is detected that the foreground application ends its dependence on the background application, reducing the resource priority of the background application. When the background application is no longer a dependent application of the foreground application, restore the resource priority of the background application to the lower resource priority before adjustment.
在一个实施例中,对后台应用程序进行资源限制包括:对后台应用程序进行冻结,禁止后台应用程序使用系统资源。In one embodiment, the resource limitation on the background application includes: freezing the background application, and prohibiting the background application from using system resources.
上述方法还包括:The above method also includes:
步骤310,若接收到对处于冻结状态的后台应用程序的唤醒消息,获取后台应用程序对应的唤醒时长。Step 310, if a wake-up message for the background application in the frozen state is received, obtain the wake-up duration corresponding to the background application.
步骤312,在当前时刻与后台应用程序上一次被唤醒的时刻之间的时间差不小于唤醒时长时,将处于冻结状态的后台应用程序唤醒。Step 312 , when the time difference between the current moment and the moment when the background application program was woken up last time is not less than the wake-up duration, wake up the background application program in the frozen state.
计算机设备还可对应用程序进行资源限制,其中,可根据应用程序进入后台的时长来确定对应用程序进行资源限制的等级。应用程序进入后台的时长越长,对应用程序进行资源限制的等级越高。计算机设备在对应用程序进行资源限制时,若将应用程序切换到进程深度冻结模式,则应用程序处于冻结状态。当应用程序处于冻结状态时,应用程序无法使用系统资源,因此无法响应其他应用程序的通信消息。上述冻结唤醒时长即为计算机设备预设的两次将应用程序由冻结状态唤醒的时间差。The computer device may also perform resource limitation on the application program, wherein the level of resource limitation on the application program may be determined according to the duration of the application program entering the background. The longer the application is in the background, the higher the level of resource throttling for the application. When the computer device restricts the resources of the application, if the application is switched to the process deep freeze mode, the application is in a frozen state. When an application is frozen, the application cannot use system resources and therefore cannot respond to communication messages from other applications. The above freezing and waking up duration is the time difference between two times preset by the computer device for waking up the application program from the frozen state.
当计算机设备接收到对处于冻结状态的应用程序的通信消息或系统消息时,可将计算机设备由冻结状态切换到可使用系统资源的状态,使得应用程序可响应上述通信消息或系统消息。其中,将应用程序由冻结状态切换到可使用系统资源的状态可为将应用程序由进程冻结状态切换到CPU限制睡眠状态,使得应用程序可使用系统资源。计算机设备也可对应用程序进行解冻,不限制应用程序使用系统资源。When the computer device receives a communication message or system message for the application program in the frozen state, the computer device can be switched from the frozen state to a state in which system resources can be used, so that the application program can respond to the above communication message or system message. The switching of the application program from a frozen state to a state in which system resources can be used may be switching the application program from a process frozen state to a CPU-limited sleep state, so that the application program can use system resources. The computer device can also unfreeze the application without restricting the application to use system resources.
在接收到对处于冻结状态的后台应用程序的唤醒消息后,计算机设备不会在每次接收到唤醒消息时就将后台应用程序唤醒。计算机设备可将当前时刻与后台应用程序上一次被唤醒时刻之间的时间差与上述唤醒时长进行对比。若上述时间差大于或等于唤醒时长,则计算机设备根据上述唤醒消息立刻将后台应用程序唤醒。若上述时间差小于唤醒时长,则计算机设备在当前时刻与上述后台应用程序上一次被唤醒的时刻之间的时间差等于上述唤醒时长时,将上述后台应用程序唤醒。即计算机设备在检测到当前时刻与上一次应用程序被唤醒时刻之间的时间差小于上述唤醒时长时,将在唤醒时长内接收到的唤醒消息积累,在当前时刻与上述后台应用程序上一次被唤醒的时刻之间的时间差等于上述唤醒时长时,根据积累的唤醒消息唤醒后台应用程序。若在上一次应用程序被唤醒后,在唤醒时长内未接收到唤醒消息,则在超过唤醒时长后接收到唤醒消息时,计算机设备可立即将上述后台应用程序唤醒。After receiving a wake-up message for a frozen background application, the computer device does not wake the background application each time it receives a wake-up message. The computer device may compare the time difference between the current moment and the moment when the background application was woken up last time with the above-mentioned wake-up duration. If the above-mentioned time difference is greater than or equal to the wake-up duration, the computer device immediately wakes up the background application program according to the above-mentioned wake-up message. If the time difference is less than the wake-up duration, the computer device wakes up the background application when the time difference between the current moment and the last time the background application was woken up is equal to the wake-up duration. That is, when the computer device detects that the time difference between the current moment and the last time when the application is woken up is less than the above-mentioned wake-up duration, it will accumulate the wake-up messages received during the wake-up duration, and the current moment and the last time the background application was woken up. When the time difference between the moments is equal to the above wake-up duration, wake up the background application according to the accumulated wake-up messages. If no wake-up message is received within the wake-up time period after the application program is woken up last time, the computer device can immediately wake up the above-mentioned background application program when the wake-up message is received after the wake-up time period expires.
通常情况下,为了节省计算机设备功耗和提高前台应用程序的可用资源,会对后台应用程序可用的资源进行限制,例如,对后台应用程序进行冻结。计算机设备在接收到对上述后台应用程序的唤醒消息时,需要将上述后台应用程序唤醒,否则上述后台应用程序会发生无响应的错误,但是频繁的将后台应用程序唤醒会导致计算机设备对后台应用程序的资源限制率降低,无法提高前台应用程序可用的资源。Generally, in order to save power consumption of computer equipment and increase the available resources of foreground applications, the resources available to background applications are restricted, for example, background applications are frozen. When the computer device receives the wake-up message for the above-mentioned background application, it needs to wake up the above-mentioned background application, otherwise the above-mentioned background application will have an unresponsive error, but frequently awakening the background application will cause the computer device to wake up the background application The resource limit rate of the program is reduced, and the resources available to the foreground application cannot be increased.
本申请实施例中方法,计算机设备可对对于冻结状态的应用程序设置唤醒时长,使得应用程序不会频繁被唤醒而浪费计算机设备功耗,又避免了应用程序长期处于冻结状态无响应的问题。In the method in the embodiment of the present application, the computer device can set the wake-up duration for the application program in the frozen state, so that the application program is not frequently woken up and wastes the power consumption of the computer device, and the problem that the application program is in the frozen state for a long time and does not respond is avoided.
在一个实施例中,上述方法还包括:In one embodiment, the above method further includes:
步骤314,若接收到对处于冻结状态的后台应用程序的终止命令,将后台应用程序解冻并将后台应用程序设定为不可冻结状态。Step 314, if a termination command for the background application program in the frozen state is received, unfreeze the background application program and set the background application program to a non-freeze state.
步骤316,根据终止命令关闭后台应用程序。Step 316, close the background application according to the termination command.
若计算机设备资源紧缺,计算机设备会对处于冻结状态的应用程序发送终止命令,关闭上述处于冻结状态的应用程序,释放上述应用程序占用的系统资源。但当应用程序处于冻结状态时,应用程序无法接收到任何消息,即使处于冻结状态的应用程序被唤醒,唤醒后应用程序也会快速恢复到冻结状态,因此计算机设备无法关闭处于冻结状态的应用程序。通常情况下,计算机设备会使用两套代码来终止应用程序,其中一套代码用于终止冻结状态应用程序,另一套代码用于终止其他应用程序。If the resources of the computer equipment are in short supply, the computer equipment will send a termination command to the application program in the frozen state, close the application program in the frozen state, and release the system resources occupied by the application program. But when the application is in the frozen state, the application cannot receive any messages, even if the application in the frozen state is woken up, the application will quickly recover to the frozen state after waking up, so the computer device cannot close the application in the frozen state . Typically, computer devices use two sets of codes to terminate applications, one set of codes for terminating frozen state applications and another set of codes for terminating other applications.
当计算机设备接收到对处于冻结状态的应用程序的终止命令时,若检测到上述应用程序处于冻结状态的处于冻结状态,对上述处于冻结状态的应用程序进行解冻,并将解冻后应用程序设置为不可冻结状态,则解冻后的应用程序可对上述终止命令正确响应,即上述解冻后的应用程序可被关闭。其中,对应用程序进行解冻可为不再限制应用程序使用的系统资源,也可为将应用程序由不可使用系统资源的状态切换到可使用系统资源的状态,如将应用程序切换到CPU限制睡眠模式。When the computer device receives the termination command for the application program in the frozen state, if it detects that the application program in the frozen state is in the frozen state, it unfreezes the application program in the frozen state, and sets the thawed application program to In the non-freeze state, the thawed application program can correctly respond to the above termination command, that is, the above thawed application program can be closed. Among them, unfreezing the application can no longer limit the system resources used by the application, or can switch the application from a state in which system resources cannot be used to a state in which system resources can be used, such as switching the application to CPU-limited sleep model.
本申请实施例中方法,可安全终止处于冻结状态的应用程序,避免出现应用程序无法终止的情况,计算机设备可根据统一的终止指令来终止处于冻结状态的应用程序和其他应用程序,实现了终止处于冻结状态的应用程序和其他应用程序的兼容性,减少了软件开发的困难,方便对移动操作系统进行维护。The method in the embodiment of the present application can safely terminate the application program in the frozen state, avoiding the situation that the application program cannot be terminated, and the computer device can terminate the application program in the frozen state and other application programs according to a unified termination instruction, realizing the termination The compatibility of the frozen application and other applications reduces the difficulty of software development and facilitates the maintenance of the mobile operating system.
在一个实施例中,一种信息处理方法,包括:In one embodiment, an information processing method includes:
(1)获取计算机设备中当前运行的应用程序的数量、应用程序占用的内存之和。(1) Obtain the number of applications currently running in the computer device and the sum of the memory occupied by the applications.
(2)若检测到应用程序的数量大于第一阈值和应用程序占用的内存之和大于第二阈值中至少一种,对后台应用程序进行资源限制;第一阈值是根据电池容量预设的值,第二阈值是根据总内存值预设的值。(2) If it is detected that the number of applications is greater than the first threshold and the sum of the memory occupied by the applications is greater than at least one of the second thresholds, limit the resources of the background applications; the first threshold is a value preset according to the battery capacity , the second threshold is a preset value according to the total memory value.
可选地,对后台应用程序进行资源限制包括:获取后台应用程序的权值,权值是根据后台应用程序的运行信息获取的;根据后台应用程序的权重确定对后台应用程序进行资源限制的顺序;根据顺序对后台应用程序分别进行资源限制。Optionally, performing resource limitation on the background application includes: acquiring the weight of the background application, where the weight is obtained according to the running information of the background application; and determining the sequence of performing resource limitation on the background application according to the weight of the background application. ; Resource limits for background applications separately according to the order.
可选地,对后台应用程序进行资源限制包括:获取后台应用程序进入后台的时长,根据时长确定对后台应用程序进行资源限制的限制等级;根据限制等级对后台应用程序进行资源限制。Optionally, performing resource restriction on the background application includes: acquiring the duration of the background application entering the background, determining a restriction level for resource restriction on the background application according to the duration; and performing resource restriction on the background application according to the restriction level.
可选地,对后台应用程序进行资源限制包括:获取与电池容量对应的资源限制策略;根据资源限制策略对后台应用程序进行资源限制。Optionally, performing resource limitation on the background application includes: acquiring a resource limitation policy corresponding to the battery capacity; and performing resource limitation on the background application according to the resource limitation policy.
可选地,上述方法还包括:对后台应用程序设置资源优先级;若检测到后台应用程序与前台应用程序具有通信机制和同步机制中至少一种,提升后台应用程序的资源优先级。Optionally, the above method further includes: setting a resource priority for the background application; if it is detected that the background application and the foreground application have at least one of a communication mechanism and a synchronization mechanism, increasing the resource priority of the background application.
可选地,对后台应用程序进行资源限制包括:对后台应用程序进行冻结,禁止后台应用程序使用系统资源。上述方法还包括:若接收到对处于冻结状态的后台应用程序的唤醒消息,获取后台应用程序对应的唤醒时长;在当前时刻与后台应用程序上一次被唤醒的时刻之间的时间差不小于唤醒时长时,将处于冻结状态的后台应用程序唤醒。Optionally, the resource limitation on the background application includes: freezing the background application, and prohibiting the background application from using system resources. The above method also includes: if a wake-up message for a background application program in a frozen state is received, obtaining the wake-up duration corresponding to the background application; the time difference between the current moment and the moment when the background application was woken up last time is not less than the wake-up duration , wake up a frozen background application.
可选地,上述方法还包括:若接收到对处于冻结状态的后台应用程序的终止命令,将后台应用程序解冻并将后台应用程序设定为不可冻结状态;根据终止命令关闭后台应用程序。Optionally, the above method further includes: if a termination command for a background application program in a frozen state is received, unfreezing the background application program and setting the background application program to a non-freeze state; and closing the background application program according to the termination command.
应该理解的是,虽然上述流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the above flow charts are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the above flow chart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The order of execution is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.
图7为一个实施例中信息处理装置的结构框图。如图7所示,一种信息处理装置,包括:FIG. 7 is a structural block diagram of an information processing apparatus in an embodiment. As shown in Figure 7, an information processing device, comprising:
获取模块702,用于获取计算机设备中当前运行的应用程序的数量、应用程序占用的内存之和。The acquiring module 702 is configured to acquire the number of currently running application programs in the computer device and the sum of the memory occupied by the application programs.
处理模块704,用于若检测到应用程序的数量大于第一阈值和应用程序占用的内存之和大于第二阈值中至少一种,对后台应用程序进行资源限制;第一阈值是根据电池容量预设的值,第二阈值是根据总内存值预设的值。The processing module 704 is configured to limit the resources of the background application if it is detected that the number of applications is greater than the first threshold and the sum of the memory occupied by the applications is greater than the second threshold; the first threshold is determined according to the battery capacity. The second threshold is a preset value based on the total memory value.
在一个实施例中,处理模块704对后台应用程序进行资源限制包括:获取后台应用程序的权值,权值是根据后台应用程序的运行信息获取的;根据后台应用程序的权重确定对后台应用程序进行资源限制的顺序;根据顺序对后台应用程序分别进行资源限制。In one embodiment, the processing module 704 performing resource limitation on the background application includes: acquiring the weight of the background application, the weight is obtained according to the running information of the background application; The order in which the resource limits are performed; the background applications are individually resource-limited according to the order.
在一个实施例中,处理模块704对后台应用程序进行资源限制包括:获取后台应用程序进入后台的时长,根据时长确定对后台应用程序进行资源限制的限制等级;根据限制等级对后台应用程序进行资源限制。In one embodiment, the processing module 704 performs resource restriction on the background application includes: acquiring the duration of the background application entering the background, and determining a restriction level for performing resource restriction on the background application according to the duration; performing resource restriction on the background application according to the restriction level limit.
在一个实施例中,处理模块704对后台应用程序进行资源限制包括:获取与电池容量对应的资源限制策略;根据资源限制策略对后台应用程序进行资源限制。In one embodiment, the processing module 704 performing resource limitation on the background application includes: acquiring a resource limitation policy corresponding to the battery capacity; and performing resource limitation on the background application according to the resource limitation policy.
在一个实施例中,处理模块704还用于对后台应用程序设置资源优先级;若检测到后台应用程序与前台应用程序具有通信机制和同步机制中至少一种,提升后台应用程序的资源优先级。In one embodiment, the processing module 704 is further configured to set the resource priority of the background application; if it is detected that the background application and the foreground application have at least one of a communication mechanism and a synchronization mechanism, the resource priority of the background application is increased .
图8为另一个实施例中信息处理方法的流程图。如图8所示,一种信息处理方法,包括:获取模块802、处理模块804、唤醒模块806。其中,获取模块802、处理模块804与图7中对应的模块功能相同。FIG. 8 is a flowchart of an information processing method in another embodiment. As shown in FIG. 8 , an information processing method includes: an acquisition module 802 , a processing module 804 , and a wake-up module 806 . The acquisition module 802 and the processing module 804 have the same functions as the corresponding modules in FIG. 7 .
处理模块804对后台应用程序进行资源限制包括:对后台应用程序进行冻结,禁止后台应用程序使用系统资源。The processing module 804 performing resource limitation on the background application includes: freezing the background application, and prohibiting the background application from using system resources.
获取模块802还用于若接收到对处于冻结状态的后台应用程序的唤醒消息,获取后台应用程序对应的唤醒时长。The obtaining module 802 is further configured to obtain the wake-up duration corresponding to the background application if a wake-up message for the background application in the frozen state is received.
唤醒模块806还用于在当前时刻与后台应用程序上一次被唤醒的时刻之间的时间差不小于唤醒时长时,将处于冻结状态的后台应用程序唤醒。The wake-up module 806 is further configured to wake up the background application in the frozen state when the time difference between the current moment and the moment when the background application was woken up last time is not less than the wake-up duration.
图9为另一个实施例中信息处理方法的流程图。如图9所示,一种信息处理方法,包括:获取模块902、处理模块904、解冻模块906、关闭模块908。其中,获取模块902、处理模块904与图7中对应的模块功能相同。FIG. 9 is a flowchart of an information processing method in another embodiment. As shown in FIG. 9 , an information processing method includes: an obtaining module 902 , a processing module 904 , a defrosting module 906 , and a closing module 908 . The acquisition module 902 and the processing module 904 have the same functions as the corresponding modules in FIG. 7 .
解冻模块906,用于若接收到对处于冻结状态的后台应用程序的终止命令,将后台应用程序解冻并将后台应用程序设定为不可冻结状态;The thawing module 906 is configured to unfreeze the background application and set the background application to a non-freeze state if a termination command for the background application in the frozen state is received;
关闭模块908,用于根据终止命令关闭后台应用程序。The closing module 908 is used to close the background application according to the termination command.
上述信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将信息处理装置按照需要划分为不同的模块,以完成上述信息处理装置的全部或部分功能。The division of each module in the above information processing apparatus is only used for illustration. In other embodiments, the information processing apparatus may be divided into different modules as required to complete all or part of the functions of the above information processing apparatus.
关于信息处理装置的具体限定可以参见上文中对于信息处理方法的限定,在此不再赘述。上述信息处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the information processing apparatus, reference may be made to the limitation on the information processing method above, which will not be repeated here. Each module in the above-mentioned information processing apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
本申请实施例中提供的信息处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the information processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行本申请实施例中信息处理方法的步骤。The embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to perform the steps of the information processing method in the embodiments of the present application.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例中信息处理方法的步骤。A computer program product containing instructions, when run on a computer, causes the computer to execute the steps of the information processing method in the embodiments of the present application.
本申请实施例还提供了一种计算机设备。如图10所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该计算机设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为手机为例:The embodiments of the present application also provide a computer device. As shown in FIG. 10 , for the convenience of description, only the parts related to the embodiments of the present application are shown, and the specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The computer device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, etc. The computer device is a mobile phone as an example :
图10为与本申请实施例提供的计算机设备相关的手机的部分结构的框图。参考图10,手机包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图10所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 10 is a block diagram of a partial structure of a mobile phone related to a computer device provided by an embodiment of the present application. Referring to FIG. 10 , 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 components such as the power supply 1090. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 10 does not constitute a limitation on the mobile phone, and may include more or less components than shown, or combine some components, or arrange different components.
其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 1010 can be used for receiving and sending signals during transmission and reception of information or during a call. After receiving the downlink information of the base station, it can be processed by the processor 1080; it can also send uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1010 can also communicate with networks and other devices via wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。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 the 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 program required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc.; The data storage area may store data (such as audio data, address book, etc.) created according to the usage of the mobile phone, and the like. Additionally, memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1030 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile phone 1000 . Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032 . The touch panel 1031, also referred to as a touch screen, can collect the user's touch operations on or near it (for example, the user uses a finger, a stylus, etc., any suitable object or accessory on or near the touch panel 1031 ). operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 1031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the 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 it into contact coordinates, and then sends it to the touch controller. To the processor 1080, and can receive the command sent by the processor 1080 and execute it. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. Besides the touch panel 1031 , the input unit 1030 may also include other input devices 1032 . Specifically, other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。在一个实施例中,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041 . In one embodiment, the display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, the touch panel 1031 transmits it to the processor 1080 to determine the type of the touch event, and then the processor 1080 determines the type of the touch event according to the The type of touch event provides a corresponding visual output on the display panel 1041 . Although in FIG. 10, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form Realize the input and output functions of the mobile phone.
手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The cell phone 1000 may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, 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 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. or backlight. Motion sensors can include acceleration sensors, which can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of mobile phones (such as switching between horizontal and vertical screens), and vibration recognition related functions (such as Pedometer, tapping), etc.; in addition, the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc.
音频电路1060、扬声器1061和传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。Audio circuit 1060, speaker 1061 and microphone 1062 may provide an audio interface between the user and the cell phone. The audio circuit 1060 can convert the received audio data into an electrical signal, and transmit it to the speaker 1061, and the speaker 1061 converts it into a sound signal and outputs it; After receiving, it is converted into audio data, and then the audio data is output to the processor 1080 for processing, and can be sent to another mobile phone via the RF circuit 1010, or the audio data can be output to the memory 1020 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1070, which provides users with wireless broadband Internet access. Although FIG. 10 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone 1000 and can be omitted as required.
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。The processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. In one embodiment, the processor 1080 may include one or more processing units. In one embodiment, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and application programs, etc.; the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1080.
手机1000还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 1000 also includes a power supply 1090 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 1000 may further include a camera, a Bluetooth module, and the like.
在本申请实施例中,该计算机设备所包括的处理器1080执行存储在存储器上的计算机程序时本申请实施例中信息处理方法的步骤。In the embodiment of the present application, the processor 1080 included in the computer device executes the steps of the information processing method in the embodiment of the present application when the computer program stored in the memory is executed.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. For those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810032310.XACN110045809A (en) | 2018-01-12 | 2018-01-12 | Information processing method, information processing device, computer equipment and computer readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810032310.XACN110045809A (en) | 2018-01-12 | 2018-01-12 | Information processing method, information processing device, computer equipment and computer readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN110045809Atrue CN110045809A (en) | 2019-07-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810032310.XAPendingCN110045809A (en) | 2018-01-12 | 2018-01-12 | Information processing method, information processing device, computer equipment and computer readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN110045809A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110505679A (en)* | 2019-08-15 | 2019-11-26 | Oppo广东移动通信有限公司 | Power consumption control method and device of communication terminal and storage medium |
| CN110727473A (en)* | 2019-10-10 | 2020-01-24 | Oppo广东移动通信有限公司 | Resource control method, device, system, storage medium and electronic equipment |
| CN112004150A (en)* | 2020-08-14 | 2020-11-27 | 深圳创维-Rgb电子有限公司 | Television control method, system, television and storage medium |
| CN112286690A (en)* | 2020-11-09 | 2021-01-29 | 珠海格力电器股份有限公司 | Method and device for dynamically adjusting CPU core, electronic equipment and storage medium |
| CN112463626A (en)* | 2020-12-10 | 2021-03-09 | 网易(杭州)网络有限公司 | Memory leak positioning method and device, computer equipment and storage medium |
| CN113220552A (en)* | 2021-05-12 | 2021-08-06 | 湖北亿咖通科技有限公司 | Method and electronic equipment for limiting application operation number in vehicle-mounted information entertainment system |
| CN113268438A (en)* | 2021-05-19 | 2021-08-17 | 维沃移动通信有限公司 | Memory recovery method and device and electronic equipment |
| CN115469823A (en)* | 2022-09-22 | 2022-12-13 | 聚好看科技股份有限公司 | Display device and background processing method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103914342A (en)* | 2013-01-06 | 2014-07-09 | 联想(北京)有限公司 | Electronic equipment process control method, system and electronic equipment |
| CN104636144A (en)* | 2015-02-26 | 2015-05-20 | 北京数字天域科技有限责任公司 | Background program management method and device of mobile terminal |
| CN104699218A (en)* | 2013-12-10 | 2015-06-10 | 华为终端有限公司 | Method and device for task management |
| CN104866069A (en)* | 2015-06-12 | 2015-08-26 | 广东小天才科技有限公司 | Method and device for automatically cleaning background application program |
| CN105094936A (en)* | 2015-09-24 | 2015-11-25 | 广东小天才科技有限公司 | Background application program cleaning method and device applied to mobile terminal |
| CN105354093A (en)* | 2015-12-09 | 2016-02-24 | 广东欧珀移动通信有限公司 | Memory management method and mobile terminal |
| CN106713490A (en)* | 2017-01-19 | 2017-05-24 | 努比亚技术有限公司 | Network application-based process freezing and unfreezing apparatus and method |
| CN107402783A (en)* | 2017-07-04 | 2017-11-28 | 广东小天才科技有限公司 | Management control method of background application program and user terminal |
| CN107491348A (en)* | 2017-08-01 | 2017-12-19 | 广州三星通信技术研究有限公司 | Electric terminal middle pipe ought to method and device |
| CN107562539A (en)* | 2017-08-25 | 2018-01-09 | 广东欧珀移动通信有限公司 | Applied program processing method and device, computer equipment, storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103914342A (en)* | 2013-01-06 | 2014-07-09 | 联想(北京)有限公司 | Electronic equipment process control method, system and electronic equipment |
| CN104699218A (en)* | 2013-12-10 | 2015-06-10 | 华为终端有限公司 | Method and device for task management |
| CN104636144A (en)* | 2015-02-26 | 2015-05-20 | 北京数字天域科技有限责任公司 | Background program management method and device of mobile terminal |
| CN104866069A (en)* | 2015-06-12 | 2015-08-26 | 广东小天才科技有限公司 | Method and device for automatically cleaning background application program |
| CN105094936A (en)* | 2015-09-24 | 2015-11-25 | 广东小天才科技有限公司 | Background application program cleaning method and device applied to mobile terminal |
| CN105354093A (en)* | 2015-12-09 | 2016-02-24 | 广东欧珀移动通信有限公司 | Memory management method and mobile terminal |
| CN106713490A (en)* | 2017-01-19 | 2017-05-24 | 努比亚技术有限公司 | Network application-based process freezing and unfreezing apparatus and method |
| CN107402783A (en)* | 2017-07-04 | 2017-11-28 | 广东小天才科技有限公司 | Management control method of background application program and user terminal |
| CN107491348A (en)* | 2017-08-01 | 2017-12-19 | 广州三星通信技术研究有限公司 | Electric terminal middle pipe ought to method and device |
| CN107562539A (en)* | 2017-08-25 | 2018-01-09 | 广东欧珀移动通信有限公司 | Applied program processing method and device, computer equipment, storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110505679A (en)* | 2019-08-15 | 2019-11-26 | Oppo广东移动通信有限公司 | Power consumption control method and device of communication terminal and storage medium |
| CN110505679B (en)* | 2019-08-15 | 2022-08-16 | Oppo广东移动通信有限公司 | Power consumption control method and device of communication terminal and storage medium |
| CN110727473A (en)* | 2019-10-10 | 2020-01-24 | Oppo广东移动通信有限公司 | Resource control method, device, system, storage medium and electronic equipment |
| CN110727473B (en)* | 2019-10-10 | 2023-11-03 | Oppo广东移动通信有限公司 | Resource control method, device, system, storage medium and electronic equipment |
| CN112004150A (en)* | 2020-08-14 | 2020-11-27 | 深圳创维-Rgb电子有限公司 | Television control method, system, television and storage medium |
| CN112286690A (en)* | 2020-11-09 | 2021-01-29 | 珠海格力电器股份有限公司 | Method and device for dynamically adjusting CPU core, electronic equipment and storage medium |
| CN112463626A (en)* | 2020-12-10 | 2021-03-09 | 网易(杭州)网络有限公司 | Memory leak positioning method and device, computer equipment and storage medium |
| CN112463626B (en)* | 2020-12-10 | 2023-07-11 | 网易(杭州)网络有限公司 | Memory leakage positioning method and device, computer equipment and storage medium |
| CN113220552A (en)* | 2021-05-12 | 2021-08-06 | 湖北亿咖通科技有限公司 | Method and electronic equipment for limiting application operation number in vehicle-mounted information entertainment system |
| CN113268438A (en)* | 2021-05-19 | 2021-08-17 | 维沃移动通信有限公司 | Memory recovery method and device and electronic equipment |
| CN113268438B (en)* | 2021-05-19 | 2024-03-08 | 维沃移动通信有限公司 | Memory recycling method and device and electronic equipment |
| CN115469823A (en)* | 2022-09-22 | 2022-12-13 | 聚好看科技股份有限公司 | Display device and background processing method |
| Publication | Publication Date | Title |
|---|---|---|
| CN110018904A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
| CN110045809A (en) | Information processing method, information processing device, computer equipment and computer readable storage medium | |
| CN110018901B (en) | Memory recovery method, apparatus, computer device, and computer-readable storage medium | |
| CN110032266B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN112703714B (en) | Application processing method and device, computer equipment and computer readable storage medium | |
| CN109992438A (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN109992370A (en) | Application program processing method and device, electronic equipment and computer readable storage medium | |
| CN110008008A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
| CN109992364B (en) | Application freezing method, apparatus, computer device, and computer-readable storage medium | |
| CN106775685B (en) | Wake lock release method and device, and mobile terminal | |
| CN109992375B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN110018905B (en) | Information processing method, device, computer device, and computer-readable storage medium | |
| CN109992397A (en) | Process processing method and device, electronic equipment and computer readable storage medium | |
| CN109992425B (en) | Information processing method, apparatus, computer device, and computer-readable storage medium | |
| CN110032397B (en) | Application processing method and device, electronic equipment and computer readable storage medium | |
| WO2019128569A1 (en) | Method and apparatus for freezing application, and storage medium and terminal | |
| CN110018886A (en) | Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing | |
| CN110046032A (en) | Application program processing method and device, electronic equipment and computer readable storage medium | |
| WO2019128586A1 (en) | Application processing method, electronic device, and computer readable storage medium | |
| CN109992395A (en) | Application freezing method, device, terminal and computer-readable storage medium | |
| CN109992360A (en) | Process processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN109992362A (en) | Application processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN110035169A (en) | Process processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN109993525B (en) | Application processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN112997132A (en) | Application freezing method and device and electronic equipment |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20190723 | |
| RJ01 | Rejection of invention patent application after publication |