CN112306714A - Control method and device - Google Patents
Control method and device Download PDFInfo
- Publication number
- CN112306714A CN112306714A CN202011190334.1A CN202011190334A CN112306714A CN 112306714 A CN112306714 A CN 112306714A CN 202011190334 A CN202011190334 A CN 202011190334A CN 112306714 A CN112306714 A CN 112306714A
- Authority
- CN
- China
- Prior art keywords
- application process
- target application
- operating system
- electronic device
- running
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 385
- 230000008569 process Effects 0.000 claims abstract description 330
- 238000011084 recovery Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000003993 interaction Effects 0.000 description 6
- 238000005457 optimization Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000000203 mixture Substances 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004886 process control Methods 0.000 description 2
- 239000000725 suspension Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- 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/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- 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/329—Power saving characterised by the action undertaken by task scheduling
-
- 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/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- 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/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- 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/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本申请涉及控制技术领域,更具体地说,涉及一种控制方法及装置。The present application relates to the field of control technology, and more particularly, to a control method and device.
背景技术Background technique
目前,电子设备中具有的游戏等涉及复杂数据处理的应用日益增多。At present, there are more and more applications involving complex data processing such as games in electronic devices.
其中,该类应用的运行需要占用较多的资源。很多情况下,用户虽然并未关闭应用但是暂时并不需要操作该应用,如,以游戏为例,用户由于临时有事可能会暂停游戏。然而,只要应用未被关闭,电子设备就会由于运行应用而消耗较多的资源,导致电子设备的资源消耗较高。Among them, the operation of this type of application needs to occupy more resources. In many cases, although the user does not close the application, he does not need to operate the application temporarily. For example, taking the game as an example, the user may suspend the game due to a temporary event. However, as long as the application is not closed, the electronic device will consume more resources due to running the application, resulting in high resource consumption of the electronic device.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种控制方法及装置。The present application provides a control method and device.
其中,一种控制方法,包括:Among them, a control method includes:
在运行应用进程过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,控制电子设备从当前的第一运行模式调至第二运行模式,其中,所述电子设备在第一运行模式下的性能高于其在第二运行模式下的性能。In the process of running the application process, if the operating system of the electronic device obtains the first notification of entering the suspended operation state sent from the target application process, the electronic device is controlled to switch from the current first running mode to the second running mode, wherein the said The performance of the electronic device in the first mode of operation is higher than its performance in the second mode of operation.
在一种实现方式中,电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,包括:In an implementation manner, the operating system of the electronic device obtains the first notification sent from the target application process to enter the suspended operation state, including:
如果获得作用于电子设备的输入部件的第一预设操作,所述第一预设操作用于使目标应用进程进入暂停运行状态,通知所述目标应用进程,以使所述目标应用进程进入暂停运行状态并向所述操作系统发送进入暂停运行状态的第一通知,其中,所述目标应用进程至少包括显示窗口当前位于电子设备的显示部件的最前端的应用进程。If the first preset operation acting on the input component of the electronic device is obtained, the first preset operation is used to make the target application process enter the suspended operation state, and the target application process is notified, so that the target application process enters the suspension state A first notification of entering a suspended operation state is sent to the operating system in the running state, wherein the target application process at least includes an application process whose display window is currently located at the forefront of the display component of the electronic device.
在又一种实现方式中,其中,目标应用进程进入暂停运行状态,包括:In yet another implementation manner, wherein the target application process enters a suspended running state, including:
目标应用进程的全部子进程进入暂停运行状态;且/或,All child processes of the target application process enter the suspended state; and/or,
暂停目标应用进程的显示窗口的更新。Pauses the update of the display window of the target application process.
在一种实现方式中,控制电子设备从当前的第一运行模式调至第二运行模式,包括:In an implementation manner, controlling the electronic device to adjust from the current first operation mode to the second operation mode includes:
在获得所述第一通知以后,由所述操作系统或预置驱动程序至少对与所述目标应用进程相关的系统资源进行优化,以使得电子设备从当前的第一运行模式调至第二运行模式。After the first notification is obtained, at least the system resources related to the target application process are optimized by the operating system or the preset driver, so that the electronic device is adjusted from the current first operation mode to the second operation mode model.
在又一种实现方式中,由所述操作系统或预置驱动程序至少对与所述目标应用进程相关的系统资源进行优化,包括:In another implementation manner, at least system resources related to the target application process are optimized by the operating system or a preset driver, including:
通过所述操作系统或预置驱动程序对所述目标应用进程占用的硬件资源进行释放,并将相关的缓存资源和/或内存资源释放至预置存储位置;或,Release the hardware resources occupied by the target application process through the operating system or the preset driver, and release the relevant cache resources and/or memory resources to the preset storage location; or,
通过所述操作系统或预置驱动程序对所述目标应用进程和与所述目标应用进程不同的其他应用进程占用的硬件资源进行释放,并将相关的缓存资源和/或内存资源释放至预置存储位置;或,Release the hardware resources occupied by the target application process and other application processes different from the target application process through the operating system or the preset driver, and release the relevant cache resources and/or memory resources to the preset storage location; or,
通过所述操作系统或预置驱动程序调低供所述目标应用进程运行的硬件部件的运行参数;或,Adjust the operating parameters of the hardware components for the target application process to run through the operating system or the preset driver; or,
通过所述操作系统或预置驱动程序调低供所述目标应用进程和与所述目标应用进程不同的其他应用进程运行的硬件部件的运行参数。在又一种实现方式中,在获得所述第一通知以后,如果电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,控制电子设备从当前的第二运行模式调至第一运行模式。The operating parameters of the hardware components for the target application process and other application processes different from the target application process to be run are adjusted down by the operating system or the preset driver. In yet another implementation manner, after obtaining the first notification, if the operating system of the electronic device obtains the second notification of resuming the running state sent from the target application process, the electronic device is controlled to adjust from the current second running mode to The first operating mode.
在又一种实现方式中,电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,包括:In yet another implementation manner, the operating system of the electronic device obtains a second notification sent from the target application process for resuming the running state, including:
如果获得作用于电子设备的输入部件的第二预设操作,所述第二预设操作用于使目标应用进程进入继续运行状态,通知所述目标应用进程,以使所述目标应用进程进入恢复运行状态并向所述操作系统发送进入恢复运行状态的第二通知。If a second preset operation acting on the input component of the electronic device is obtained, the second preset operation is used to make the target application process enter the continuous running state, and notify the target application process, so that the target application process enters the recovery state running state and sending a second notification to the operating system to enter a resume running state.
在又一种实现方式中,在获得所述目标应用进程发送的恢复运行状态的第二通知以后,还包括:In yet another implementation manner, after obtaining the second notification sent by the target application process for resuming the running state, the method further includes:
通过所述操作系统或预置驱动程序至少将释放至预置存储位置的与所述目标应用进程相关的缓存资源和/或内存资源加载至电子设备的内存和/或缓存;At least the cache resources and/or memory resources related to the target application process released to the preset storage location are loaded into the memory and/or cache of the electronic device through the operating system or the preset driver;
或,or,
通过所述操作系统或预置驱动程序调回供所述目标应用进程运行的硬件部件的运行参数。The operating parameters of the hardware components for the target application process to run are called back through the operating system or the preset driver.
在又一种实现方式中,在获得所述第一通知以后,如果预设时间段内未获得任何通知或获得作用于电子设备的第三预设操作,控制电子设备从当前的第二运行模式调至第三运行模式,其中,所述电子设备在第二运行模式下的功耗高于其在第三运行模式下的功耗。In yet another implementation manner, after obtaining the first notification, if no notification is obtained within a preset time period or a third preset operation acting on the electronic device is obtained, the electronic device is controlled from the current second operating mode A third mode of operation is adjusted, wherein the power consumption of the electronic device in the second mode of operation is higher than its power consumption in the third mode of operation.
其中,一种控制装置,包括:Among them, a control device, including:
通知接收单元,用于通过操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知;a notification receiving unit, configured to obtain, through the operating system, a first notification sent from the target application process to enter the suspended operation state;
模式控制单元,用于在运行应用进程过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,控制电子设备从当前的第一运行模式调至第二运行模式,其中,所述电子设备在第一运行模式下的性能高于其在第二运行模式下的性能。The mode control unit is used to control the electronic device to adjust from the current first operation mode to the second operation mode if the operating system of the electronic device obtains the first notification of entering the suspended operation state sent from the target application process during the process of running the application process mode, wherein the performance of the electronic device in the first mode of operation is higher than its performance in the second mode of operation.
又一方面,本申请还提供了一种电子设备,该电子设备至少包括存储器和处理器;In yet another aspect, the present application also provides an electronic device, the electronic device including at least a memory and a processor;
其中,该处理器用于执行如上任意一项所述的控制方法。Wherein, the processor is used to execute the control method described in any one of the above.
该存储器用于存储处理器执行操作所需的程序。The memory is used to store programs required by the processor to perform operations.
又一方面,本申请还提供了一种存储介质,用于存储程序,该程序被执行时,用于实现如上任意一项所述的控制方法。In another aspect, the present application also provides a storage medium for storing a program, which, when executed, is used to implement the control method described in any one of the above.
通过以上方案可知,在运行应用进程的过程中,如果应用进程向操作系统发送了进入暂停运行状态的通知,操作系统会控制电子设备从较高性能的第一运行模式切换到较低性能的第二运行模式,从而可以在应用进程进入暂停状态的情况下,降低电子设备的资源消耗。It can be seen from the above solutions that during the process of running the application process, if the application process sends a notification to the operating system to enter the suspended operation state, the operating system will control the electronic device to switch from the first operating mode with higher performance to the second operating mode with lower performance. Two operating modes, so that the resource consumption of the electronic device can be reduced when the application process enters a suspended state.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1为本申请提供的一种控制方法一个实施例的流程示意图;1 is a schematic flowchart of an embodiment of a control method provided by the present application;
图2为本申请提供的控制方法又一个实施例的流程示意图;2 is a schematic flowchart of another embodiment of the control method provided by the present application;
图3为本申请提供的控制方法又一个实施例的流程示意图;3 is a schematic flowchart of another embodiment of the control method provided by the present application;
图4为本申请提供的控制方法又一个实施例的流程示意图;4 is a schematic flowchart of another embodiment of the control method provided by the present application;
图5为本申请的控制方法在一种应用场景中的实现流程示意图;FIG. 5 is a schematic flowchart of the implementation of the control method of the present application in an application scenario;
图6为本申请的控制方法应用游戏场景中的一种实现原理示意图;6 is a schematic diagram of an implementation principle in an application game scene of the control method of the present application;
图7为本申请提供的控制装置一个实施例的组成结构示意图;FIG. 7 is a schematic diagram of the composition and structure of an embodiment of the control device provided by the application;
图8为本申请提供的电子设备一个实施例的组成架构示意图。FIG. 8 is a schematic diagram of a composition structure of an embodiment of an electronic device provided by the present application.
说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的部分,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示的以外的顺序实施。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims and the above-mentioned drawings are used to distinguish similar parts and not necessarily to describe a particular order or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated herein.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present application.
请参阅图1,图1为本申请实施例提供的一种控制方法一个实施例的流程示意图,本实施例的方法可以应用于电子设备,该电子设备可以为手机、平板电脑或者个人计算机等。Please refer to FIG. 1 , which is a schematic flowchart of an embodiment of a control method provided by an embodiment of the present application. The method of this embodiment can be applied to an electronic device, and the electronic device can be a mobile phone, a tablet computer, or a personal computer.
本实施例的方法可以包括:The method of this embodiment may include:
S101,在运行应用进程的过程中,电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知。S101 , in the process of running the application process, the operating system of the electronic device obtains a first notification sent from the target application process to enter a suspended operation state.
可以理解的是,该电子设备可以安装并运行至少一款应用的应用进程。该至少一款应用可以包括:至少一款能够实现人机交互的应用,该类应用运行所耗费的资源相对较多。实现人机交互的应用是指能够接收用户输入并能针对用户输入作为响应的应用。It can be understood that the electronic device can install and run the application process of at least one application. The at least one application may include: at least one application capable of realizing human-computer interaction, and the operation of this type of application consumes relatively more resources. An application that implements human-computer interaction refers to an application that can receive user input and respond to user input.
如,能够实现人机交互的应用可以向电子设备的显示单元中输出显示窗口,以使得用户可以通过应用界面向应用内输入信息。例如,实现人机交互的应用可以为游戏应用、虚拟现实应用、娱乐应用、办公应用等等。For example, an application capable of human-computer interaction can output a display window to the display unit of the electronic device, so that the user can input information into the application through the application interface. For example, applications for realizing human-computer interaction may be game applications, virtual reality applications, entertainment applications, office applications, and so on.
在应用进程运行过程中,如果用户离开电子设备,用户可能会通过操作电子设备来控制应用进程进入暂停状态,使得应用进程控制自身进入暂停运行状态。During the running process of the application process, if the user leaves the electronic device, the user may control the application process to enter the suspended state by operating the electronic device, so that the application process controls itself to enter the suspended running state.
如,用户通过对电子设备的鼠标或者键盘等输入部件进行点击等预设操作,可以使得应用获得进入暂停指示,相应的,应用进程会进入暂停运行状态。For example, the user can make the application obtain a pause instruction by performing a preset operation such as clicking on an input component such as a mouse or a keyboard of the electronic device, and correspondingly, the application process will enter a pause state.
又如,应用进程在检测到该应用进程对应的应用界面上的运行控制按键被触按,例如“暂停/运行”按键被用户触按,则应用进程会进入暂停运行状态。For another example, when the application process detects that the operation control button on the application interface corresponding to the application process is pressed, for example, the "pause/run" button is pressed by the user, the application process will enter the suspended operation state.
在一种可能的情况中,如果获得作用于电子设备的输入部件的第一预设操作,电子设备会通知该目标应用进程,以使该目标应用进程进入暂停运行状态并向操作系统发送进入暂停运行状态的第一通知。如,在电子设备的输入部件存在第一预设操作的情况下,电子设备中的基本输入输出系统(Basic Input Output System,BIOS)或者嵌入式控制器(Embed Controller,EC)可以获得输入部件的第一预设操作对应的消息(或者称为输入事件),并通过BIOS或者EC将该消息通知给目标应用进程。该目标应用在获得该消息后,进入暂停运行状态,并向操作系统发送该进入暂停运行状态的第一通知。In a possible situation, if the first preset operation acting on the input component of the electronic device is obtained, the electronic device will notify the target application process, so that the target application process enters the suspend running state and sends the operating system to enter the suspend operation First notification of running status. For example, in the case that the input component of the electronic device has a first preset operation, a basic input output system (Basic Input Output System, BIOS) or an embedded controller (Embed Controller, EC) in the electronic device can obtain the input component A message (or called an input event) corresponding to the first preset operation, and the message is notified to the target application process through the BIOS or the EC. After obtaining the message, the target application enters the suspended operation state, and sends the first notification of entering the suspended operation state to the operating system.
其中,电子设备的输入部件可以为电子设备的鼠标、键盘、触摸屏、遥控器或者控制手柄等。Wherein, the input component of the electronic device may be a mouse, a keyboard, a touch screen, a remote control or a control handle, etc. of the electronic device.
该第一预设操作用于使目标应用进程进入暂停运行状态。The first preset operation is used to make the target application process enter a suspended running state.
在该种情况中,该目标应用进程至少包括显示窗口当前位于电子设备的显示部件的最前端的应用进程。可以理解的是,在目标应用进程处于电子设备的显示部件的最前端的情况下,通过鼠标或者键盘等输入部件进行点击等第一预设操作,可以控制目标应用程序进入暂停运行状态。In this case, the target application process includes at least the application process whose display window is currently located at the frontmost of the display part of the electronic device. It can be understood that when the target application process is at the forefront of the display component of the electronic device, the target application can be controlled to enter the suspended state by performing a first preset operation such as clicking through an input component such as a mouse or a keyboard.
例如,在游戏应用中,在光标处于游戏应用的显示界面的基础上,用户通过点击鼠标便可以触发控制游戏暂停。For example, in a game application, on the basis that the cursor is on the display interface of the game application, the user can trigger and control the game to pause by clicking the mouse.
在又一种可能的实现方式中,应用进程还可以根据用户的操作状态,监测是否满足进入暂停运行状态的条件。如果应用程序检测到当前满足进入暂停运行状态的条件,则自动进入暂停运行状态,并向操作系统发送进入暂停运行状态的第一通知。In yet another possible implementation manner, the application process can also monitor whether the conditions for entering the suspended operation state are met according to the operation state of the user. If the application detects that the conditions for entering the suspended operation state are currently met, it automatically enters the suspended operation state, and sends the first notification of entering the suspended operation state to the operating system.
如,应用进程检测用户是否离开电子设备以及离开电子设备的时长,如果用户离开电子设备的时长超过设定时长,则确定满足进入暂停运行状态的条件,自然进入暂停运行状态,并向操作系统发送第一通知。For example, the application process detects whether the user leaves the electronic device and the length of time. If the user leaves the electronic device for longer than the set time, it is determined that the conditions for entering the suspended operation state are met, and the suspended operation state is naturally entered, and a message is sent to the operating system. First notice.
又如,如果应用进程超过设定时长未检测到用户的输入操作,则进入暂停运行状态,并向操作系统发送第一通知。可以理解的是,由于应用进程运行需要占用内存以及一些硬件资源,因此,如果仅仅是应用进程控制自身处于暂停运行状态,实际上应用进程相关的一些子进程仍然在后台运行,只不过是用户未看到应用进程对应界面的更新。For another example, if the application process does not detect the user's input operation for a set period of time, it enters a suspended operation state, and sends a first notification to the operating system. It is understandable that since the running of the application process requires memory and some hardware resources, if only the application process controls itself in a suspended state, some sub-processes related to the application process are actually still running in the background, but the user does not See the update of the interface corresponding to the application process.
如,应用进程进入暂停运行状态可以是目标应用进程暂停该目标应用进程的显示窗口的更新;或者是,目标应用进程的全部子进程进入暂停状态。例如,目标应用进程暂停后,可以暂停更新显示窗口相关的子进程,以减少内存和硬件资源消耗;也可以是将全部子进程暂停,以减少硬件资源的消耗。当然,在实际应用中,也可能是在暂停目标应用进程的显示窗口的更新的同时,该目标应用进程的全部子进程进入暂停状态。For example, when the application process enters the suspended running state, the target application process suspends the update of the display window of the target application process; or, all sub-processes of the target application process enter the suspended state. For example, after the target application process is suspended, the sub-processes related to the update display window can be suspended to reduce the consumption of memory and hardware resources; or all sub-processes can be suspended to reduce the consumption of hardware resources. Of course, in an actual application, it is also possible that all sub-processes of the target application process enter a suspended state while the update of the display window of the target application process is suspended.
由此可知,虽然用户控制应用进程进入暂停运行状态,但是应用进程的数据仍然可能在后台运行,仍然会占用并消耗电子设备的内存以及硬件等资源。It can be seen from this that although the user controls the application process to enter the suspended running state, the data of the application process may still run in the background, which will still occupy and consume resources such as memory and hardware of the electronic device.
为了减少应用进程进入暂停运行状态后所耗费的资源,本申请,应用进程可以向操作系统发送进入暂停运行状态的通知,使得操作系统可以获得该应用进程已进入暂停运行状态;或者是,通知操作系统控制该应用进程进入暂停运行状态。In order to reduce the resources consumed after the application process enters the suspended operation state, in the present application, the application process can send a notification of entering the suspended operation state to the operating system, so that the operating system can obtain that the application process has entered the suspended operation state; or, the notification operation The system controls the application process to enter the suspended running state.
为了便于区分,将应用进程向操作系统发送进入暂停运行状态的通知称为第一通知,并将发送该第一通知的应用进程称为目标应用进程。该目标应用进程属于电子设备运行的应用进程。For convenience of distinction, the notification that the application process sends to the operating system to enter the suspended operation state is called the first notification, and the application process that sends the first notification is called the target application process. The target application process belongs to the application process run by the electronic device.
S102,响应于该第一通知,控制电子设备从当前的第一运行模式调至第二运行模式。S102, in response to the first notification, control the electronic device to adjust from the current first operation mode to the second operation mode.
其中,电子设备在第一运行模式下的性能高于其在第二运行模式下的性能。Wherein, the performance of the electronic device in the first operating mode is higher than its performance in the second operating mode.
可以理解的是,如目标应用进程向操作系统发送进入暂停运行状态的通知,则说明用户暂时不需要使用该应用,甚至有可能不需要使用电子设备。It can be understood that, if the target application process sends a notification to the operating system to enter the suspended operation state, it means that the user does not need to use the application temporarily, and may not even need to use the electronic device.
如,在目标应用程序至少包括显示窗口当前位于该电子设备的显示部件的最前端的应用进程的情况下,则目标应用程序向操作系统发送进入暂停运行状态的通知,则说明用户可能会由于离开电子设备等原因,则暂时离开电子设备的显示部件,因此,电子设备的操作系统可以控制调整电子设备处于相对较低性能的第二运行模式。For example, if the target application program includes at least the application process whose display window is currently located at the front end of the display part of the electronic device, the target application program sends a notification to the operating system to enter the suspended operation state, indicating that the user may For reasons such as the electronic device, the display part of the electronic device is temporarily left. Therefore, the operating system of the electronic device can control and adjust the electronic device to be in the second operating mode with relatively low performance.
在一种可能的实现方式中,在获得该第一通知以后,可以由该操作系统或预置驱动程序至少对与该目标应用进程相关的系统资源进行优化,以使得电子设备从当前的第一运行模式调至第二运行模式。In a possible implementation manner, after the first notification is obtained, the operating system or the preset driver may at least optimize the system resources related to the target application process, so that the electronic device can change from the current first notification The operating mode is switched to the second operating mode.
其中,对目标应用进程相关的系统资源进行优化可以减少目标应用进程所占用的内存等系统资源。具体优化方式本申请不加限制。Wherein, optimizing the system resources related to the target application process can reduce system resources such as memory occupied by the target application process. The specific optimization method is not limited in this application.
可见,在本申请中,在运行应用进程的过程中,如果应用进程向操作系统发送了进入暂停运行状态的通知,操作系统会控制电子设备从较高性能的第一运行模式切换到较低性能的第二运行模式,从而可以在应用进程进入暂停运行状态的情况下,降低电子设备的资源消耗。It can be seen that in the present application, in the process of running the application process, if the application process sends a notification to the operating system to enter the suspended operation state, the operating system will control the electronic device to switch from the first operating mode of higher performance to the lower performance. The second operation mode of the electronic device can reduce the resource consumption of the electronic device when the application process enters the suspended operation state.
同时,通过降低电子设备的资源消耗,可以延长电池的使用时间和电子设备使用寿命。At the same time, by reducing the resource consumption of the electronic device, the use time of the battery and the service life of the electronic device can be extended.
为了便于理解电子设备从当前的第一运行模式调至第二运行模式的具体实现,下面以通过至少对与该目标应用进程相关的系统资源进行优化为例进行说明。In order to facilitate the understanding of the specific implementation of adjusting the electronic device from the current first operation mode to the second operation mode, the following description is given by taking at least the optimization of system resources related to the target application process as an example.
首先以一种系统资源优化方式为例说明,如参见图2,其示出了本申请一种控制方法又一个实施例的流程示意图,本实施例的方法可以包括:First, a system resource optimization method is used as an example to illustrate. Referring to FIG. 2, it shows a schematic flowchart of another embodiment of a control method of the present application. The method of this embodiment may include:
S201,在运行应用进程的过程中,如果获得作用于电子设备的输入部件的第一预设操作,通知该目标应用进程,以使其进入暂停运行状态并向该操作系统发送进入暂停运行状态的第一通知。S201, in the process of running the application process, if a first preset operation acting on an input component of the electronic device is obtained, notify the target application process so that it enters a suspended operation state and sends to the operating system a message that enters the suspended operation state First notice.
其中,该第一预设操作用于使目标应用进程进入暂停运行状态,其中,所述目标应用进程至少包括显示窗口当前位于电子设备的显示部件的最前端的应用进程。The first preset operation is used to make the target application process enter a suspended running state, wherein the target application process at least includes an application process whose display window is currently located at the forefront of the display component of the electronic device.
为了便于理解,本实施例以获得第一通知的一种情况为例。但是可以理解的是,如果目标应用进程通过电子设备获得作用于目标应用进程的虚拟按键、语音输入或手势输入,该目标应用进程同样可以进入暂停运行状态,在该种情况下,该目标应用进程仍可以向操作系统发送该第一通知。本申请对于目标应用进程进入暂停运行状态的方式不加限制,在本申请中,无论通过哪种方式使得目标应用进程进入暂停运行状态,该目标应用进程均会向电子设备的操作系统发送该第一通知。For ease of understanding, this embodiment takes a situation in which the first notification is obtained as an example. However, it can be understood that if the target application process obtains virtual keys, voice input or gesture input acting on the target application process through the electronic device, the target application process can also enter the suspended running state. In this case, the target application process This first notification can still be sent to the operating system. This application does not limit the way in which the target application process enters the suspended operation state. In this application, no matter which method is used to make the target application process enter the suspended operation state, the target application process will send the first information to the operating system of the electronic device. a notice.
S202,通过该操作系统或预置驱动程序对目标应用进程占用的硬件资源进行释放,并将相关的缓存资源和/或内存资源释放至预置存储位置。S202, release the hardware resources occupied by the target application process through the operating system or the preset driver, and release the relevant cache resources and/or memory resources to the preset storage location.
其中,该预置的驱动程序可以为操作系统内的驱动程序。Wherein, the preset driver may be a driver in the operating system.
如,可以通过将目标应用进程挂起等操作来实现将目标应用进程占用的硬件资源释放,并将相关缓存或内存资源释放到预置存储位置。For example, the hardware resources occupied by the target application process can be released by suspending the target application process, and the related cache or memory resources can be released to the preset storage location.
可以理解的是,在该目标应用进程处于暂停运行状态后,通过对该目标应用进程占用的应用资源释放,并将该目标应用进程相关的缓存资源和/或内存资源释放到预置存储位置,可以减少由于目标应用进程仍在内存中运行所导致的硬件和内存资源的耗费。It can be understood that, after the target application process is in a suspended state, the application resources occupied by the target application process are released, and the cache resources and/or memory resources related to the target application process are released to the preset storage location, The consumption of hardware and memory resources caused by the target application process still running in memory can be reduced.
作为一种可选方式,本申请在释放目标应用进程的硬件资源以及内存或缓存等资源的同时,本申请还可以通过该操作系统或预置驱动程序将与目标应用进程不同的其他应用进程占用的硬件资源进行释放,并将该其他应用进程相关的缓存资源和/或内存资源释放至预置存储位置。As an optional method, the present application can also use the operating system or the preset driver to occupy other application processes different from the target application process while releasing the hardware resources and resources such as memory or cache of the target application process. The hardware resources are released, and the cache resources and/or memory resources related to the other application process are released to the preset storage location.
其中,与该目标应用进程不同的其他应用进程可以是电子设备中前台运行的应用进程,也可以是后台运行的应用进程。The other application process different from the target application process may be an application process running in the foreground in the electronic device, or an application process running in the background.
可以理解的是,考虑到目标应用进程的显示窗口处于电子设备的显示部件的顶层等情况下,目标应用进程进入暂停运行状态,则用户可能会由于离开电子设备等原因而暂时不需要使用电子设备,因此,在该种情况下,将该目标应用进程与其他应用进程所占用的硬件以及内存等资源释放,可以进一步减少资源耗费。It can be understood that, considering that the display window of the target application process is at the top layer of the display component of the electronic device, and the target application process enters the suspended state, the user may temporarily not need to use the electronic device due to reasons such as leaving the electronic device. , therefore, in this case, resources such as hardware and memory occupied by the target application process and other application processes can be released, which can further reduce resource consumption.
可以理解的是,图2是以至少对与该目标应用进程相关的系统资源进行优化的一种方式为例说明。在实际应用中,本申请对目标应用进程相关的系统资源进行优化还可以为:通过操作系统或预置驱动程序调低供该目标应用进程运行的硬件部件的运行参数。It can be understood that FIG. 2 is taken as an example to illustrate at least one way of optimizing system resources related to the target application process. In practical applications, the present application may also optimize the system resources related to the target application process by adjusting the operating parameters of the hardware components for the target application process to run through the operating system or a preset driver.
其中,硬件部件的运行参数可以影响到电子设备资源耗费的各种运行参数,如硬件部件可以为CPU以及内部存储器等等,相应的,运行参数可以运行该目标应用进程所需的CPU的运行速率,内部存储器的存储速度等等。The operating parameters of the hardware components can affect various operating parameters of the resource consumption of the electronic device, for example, the hardware components can be CPU and internal memory, etc. Correspondingly, the operating parameters can be the operating speed of the CPU required to run the target application process , the storage speed of the internal memory, etc.
如,调低硬件部件的运行参数可以通过向相应的硬件部件下发控制指令,以指示硬件部件调低自身的运行参数。当然,还可以有其他可能实现方式,对此不加限制。For example, to lower the operating parameters of the hardware components, a control instruction can be issued to the corresponding hardware components to instruct the hardware components to lower their own operating parameters. Of course, there may also be other possible implementation manners, which are not limited.
可以理解的是,在目标应用进程向操作系统发送了进入暂停运行状态的通知后,通过调低供该目标应用进程运行的硬件部件的运行参数,可以降低电子设备的性能,从而减少暂停目标应用进程后所需耗费的资源。It can be understood that, after the target application process sends a notification to the operating system to enter the suspended operation state, by reducing the operating parameters of the hardware components for the target application process to run, the performance of the electronic device can be reduced, thereby reducing the suspension of the target application process. The resources consumed after the process.
作为一种可选方式,在电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知后,对目标应用进程相关的系统资源进行优化还可以是:通过操作系统或预置驱动程序调低供该目标应用进程和与该目标应用进程不同的其他应用进程运行的硬件部件的运行参数。As an optional method, after the operating system of the electronic device obtains the first notification sent from the target application process to enter the suspended operation state, optimizing the system resources related to the target application process may also be: through the operating system or preset The driver adjusts the operating parameters of the hardware components for the target application process and other application processes different from the target application process to run.
其中,供其他应用进程运行的硬件部件的运行参数以及调整方式可以参见上面介绍,在此不再赘述。The operating parameters and adjustment methods of the hardware components for other application processes to run may refer to the above introduction, and will not be repeated here.
可以理解的是,在本申请以上实施例中,在电子设备的操作系统获得第一通知之后,如果电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,控制电子设备从当前的第二运行模式调至第一运行模式。It can be understood that, in the above embodiments of the present application, after the operating system of the electronic device obtains the first notification, if the operating system of the electronic device obtains the second notification from the target application The current second operating mode is switched to the first operating mode.
其中,第二通知实际上目标应用进程请求由暂停运行状态恢复到正常运行状态的通知。Wherein, the second notification is actually a notification that the target application process requests to resume from the suspended running state to the normal running state.
通过控制电子设备从第二运行模式调整到第一运行模式可以提高电子设备的性能,以有利于目标应用进程的运行性能。By controlling the electronic device to adjust from the second operation mode to the first operation mode, the performance of the electronic device can be improved, so as to facilitate the operation performance of the target application process.
如,目标应用进程发送恢复运行状态的第二通知可以是目标应用进程从暂停运行状态转换为恢复运行状态后,该目标应用进程向操作系统发送的通知,以使得操作系统控制恢复目标应用进程运行所需的相关系统资源进行恢复,使得系统资源恢复到优化前的状态,使得目标应用进程恢复到正常运行状态。For example, the second notification sent by the target application process to resume the running state may be a notification sent by the target application process to the operating system after the target application process transitions from the suspended running state to the running state, so that the operating system controls the resumption of the running of the target application process The required related system resources are restored, so that the system resources are restored to the state before optimization, and the target application process is restored to the normal running state.
与获得第一通知类似,在一种可能的实现方式中,如果获得作用于电子设备的输入部件的第二预设操作,通知该目标应用进程,以使该目标应用进程进入恢复运行状态并向该操作系统发送进入恢复运行状态的第二通知。Similar to obtaining the first notification, in a possible implementation manner, if the second preset operation acting on the input component of the electronic device is obtained, the target application process is notified, so that the target application process enters the resume operation state and sends a message to the target application process. The operating system sends a second notification to enter a resumed state.
其中,该第二预设操作用于使目标应用进程进入继续运行状态。Wherein, the second preset operation is used to make the target application process enter a continuous running state.
如,第二预设操作可以是点击电子设备的鼠标或者键盘中的指定按键。在通过点击鼠标等预设操作触发目标应用进程进入暂停运行状态后,再次通过点击鼠标等预设操作可以触发目标应用进程从暂停运行状态恢复到正常的运行状态。For example, the second preset operation may be clicking a mouse or a designated key in a keyboard of the electronic device. After the target application process is triggered to enter the suspended running state through a preset operation such as clicking the mouse, the target application process can be triggered to resume from the suspended running state to the normal running state through the preset operation such as clicking the mouse again.
其中,获得该第二预设操作以及通知该目标应用进程过程与电子设备获得第一预设操作并通知目标应用进程的过程相似,在此不再赘述。The process of obtaining the second preset operation and notifying the target application process is similar to the process of the electronic device obtaining the first preset operation and notifying the target application process, and details are not repeated here.
可以理解的是,如果目标应用进程获得作用于该目标应用进程的显示窗口上的虚拟按键的第二预设操作,为了使得目标应用进程能够恢复正常运行,该目标应用进程也会向该操作系统发送该第二通知。It can be understood that if the target application process obtains the second preset operation acting on the virtual keys on the display window of the target application process, in order to enable the target application process to resume normal operation, the target application process will also report to the operating system. Send the second notification.
在又一种可能的实现方式中,目标应用进程也可以在检测到用户从离开到回到电子设备前,或者是检测到用户的输入操作,则目标应用进程进入恢复运行状态,并向操作系统发送第二通知。In another possible implementation manner, the target application process may also enter the resume running state and report to the operating system before detecting that the user has left the electronic device or has detected an input operation by the user. Send a second notification.
可以理解的是,目标应用进程进入暂停运行状态,该目标应用进程会暂停更新显示界面或者一些子进程的运行。如果目标应用进程确认检测到第二预设操作,目标应用程序会重新恢复更新显示界面或者暂停的子进程的运行,同时,为了保证目标应用程序的子进程可以在内存中正常运行,该目标应用进程会向操作系统发送该第二通知,以使得操作系统恢复目标应用程序运行相关的处理。It can be understood that the target application process enters a suspended running state, and the target application process suspends the updating of the display interface or the running of some sub-processes. If the target application process confirms that the second preset operation is detected, the target application will resume updating the display interface or running the suspended sub-process. The process sends the second notification to the operating system, so that the operating system resumes the processing related to the running of the target application.
可以理解的是,在操作系统获得第二通知之后,操作系统或者预置驱动程序控制电子设备从第二运行模式调整到第一运行模式可以为目标应用进程恢复到正常运行状态提供可能。进一步的,为了使得目标应用进程恢复到正常运行状态,在操作系统获得第二通知以后,还可以将目标应用进程相关的内存资源或者缓存资源回调到内存或者缓存中;或者是,调回供该目标应用进程运行的硬件部件的运行参数。It can be understood that, after the operating system obtains the second notification, the operating system or the preset driver controls the electronic device to adjust from the second operating mode to the first operating mode, which may provide a possibility for the target application process to return to the normal operating state. Further, in order to restore the target application process to the normal running state, after the operating system obtains the second notification, the memory resources or cache resources related to the target application process can also be called back into the memory or cache; The operating parameters of the hardware components on which the target application process runs.
为了便于理解,以一种可能的情况为例说明,如图3所示,其示出了本申请一种控制方法又一个实施例的流程示意图,本实施例的方法可以包括:For ease of understanding, a possible situation is taken as an example to illustrate, as shown in FIG. 3 , which shows a schematic flowchart of another embodiment of a control method of the present application. The method of this embodiment may include:
S301,在运行应用进程的过程中,电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知。S301 , in the process of running the application process, the operating system of the electronic device obtains a first notification sent from the target application process to enter a suspended operation state.
S302,响应于该第一通知,通过该操作系统或预置驱动程序对目标应用进程占用的硬件资源进行释放,并将相关的缓存资源和/或内存资源释放至预置存储位置。S302, in response to the first notification, release the hardware resources occupied by the target application process through the operating system or the preset driver, and release the relevant cache resources and/or memory resources to the preset storage location.
如上步骤S301和S302可以参见前面实施例的相关介绍,在此不再赘述。For the above steps S301 and S302, reference may be made to the relevant introductions in the previous embodiments, and details are not repeated here.
S303,如果电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,通过操作系统或预置驱动程序至少将释放至预置存储位置的且与该目标应用进程相关的缓存资源和/或内存资源加载至电子设备的缓存和/或内存。S303, if the operating system of the electronic device obtains the second notification from the target application process of restoring the running state, at least the cache resources related to the target application process that are released to the preset storage location and are related to the target application process are released through the operating system or the preset driver. and/or memory resources are loaded into the cache and/or memory of the electronic device.
在本实施例中,在目标应用进程进入暂停运行状态并向操作系统发送第一通知后,操作系统或者预置驱动程序将该目标应用进程相关的缓存资源和内存资源中的一种或者两种释放至预置存储位置,以挂起该目标应用进程。在需要恢复该目标应用进程的正常运行状态的情况下,操作系统或者预置的驱动程序会将该预置存储位置中与该目标应用进程相关的缓存或内存资源重新加载到该缓存和/或内存,以使得该目标应用进程可以重新正常运行。In this embodiment, after the target application process enters the suspended running state and sends the first notification to the operating system, the operating system or the preset driver program may select one or both of cache resources and memory resources related to the target application process. Release to a preset storage location to suspend the target application process. When it is necessary to restore the normal running state of the target application process, the operating system or the preset driver will reload the cache or memory resources related to the target application process in the preset storage location into the cache and/or memory so that the target application process can resume normal operation.
其中,重新加载到缓存和/或内存中资源与释放前该目标应用进程相关的缓存和/或内存资源可以保持一致。The resources reloaded into the cache and/or memory may be consistent with the cache and/or memory resources related to the target application process before the release.
如,如果目标应用进程挂起前,仅仅存在内存资源,则在挂起该目标应用进程时,将该目标应用进程的内存释放到该预置存储位置。相应的,在需要恢复该目标应用进程的正常运行时,可以将预置存储位置中该目标应用进程的内存资源加载到内存中。For example, if there are only memory resources before the target application process is suspended, when the target application process is suspended, the memory of the target application process is released to the preset storage location. Correspondingly, when the normal operation of the target application process needs to be restored, the memory resources of the target application process in the preset storage location can be loaded into the memory.
可以理解的是,在将目标应用进程相关的缓存和/或内存资源重新加载到缓存和/或内存资源后,还可以恢复该目标应用进程所占据的硬件资源。It can be understood that, after the cache and/or memory resources related to the target application process are reloaded into the cache and/or memory resources, the hardware resources occupied by the target application process can also be restored.
在一种可选方式中,如果在将目标应用进程相关的缓存资源和/或内存资源释放到预置存储位置的同时,也将该目标应用进程之外的其他应用进程相关的缓存资源和/或内存资源释放到预置存储位置,那么在执行该步骤S303的同时,还可以将该预置存储位置中与该目标应用进程之外的其他应用进程的缓存资源和/或内存资源重新加载到缓存和/或内存中。In an optional manner, if the cache resources and/or memory resources related to the target application process are released to the preset storage location, the cache resources and/or memory resources related to other application processes other than the target application process are also released. Or the memory resources are released to the preset storage location, then while performing this step S303, the cache resources and/or memory resources of other application processes other than the target application process in the preset storage location can also be reloaded to the preset storage location. cache and/or in memory.
可以理解的是,在本实施例中,在获得第二通知之后,仍会控制电子设备从当前的第二运行模式调至第一运行模式。在此基础上,将目标应用进程对应的已释放的资源重新加载的内存或者缓存中,可以更为可靠的保证目标应用进程恢复到正常运行状态。It can be understood that, in this embodiment, after the second notification is obtained, the electronic device is still controlled to be adjusted from the current second operation mode to the first operation mode. On this basis, reloading the released resources corresponding to the target application process in the memory or cache can more reliably ensure that the target application process returns to a normal running state.
下面以获得第二通知之后,电子设备调回供目标应用程序运行的硬件部件的运行参数为例说明,如图4所示,其示出了本申请一种控制方法又一个实施例的流程示意图,本实施例的方法可以包括:After obtaining the second notification, the electronic device calls back the running parameters of the hardware components for the target application to run as an example, as shown in FIG. 4 , which shows a schematic flowchart of another embodiment of a control method of the present application , the method of this embodiment may include:
S401,在运行应用进程的过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,通过该操作系统或预置驱动程序调低供目标应用进程运行的硬件部件的运行参数。S401, in the process of running the application process, if the operating system of the electronic device obtains the first notification sent from the target application process to enter the suspended operation state, adjust down the hardware for the target application process to run through the operating system or the preset driver The operating parameters of the component.
其中,获得第一通知的过程可以参见前面实施例的相关介绍,在此不再赘述。For the process of obtaining the first notification, reference may be made to the relevant introduction of the foregoing embodiment, and details are not described herein again.
S402,如果获得作用于电子设备的输入部件的第二预设操作,通知该目标应用进程,以使该目标应用进程进入恢复运行状态并向该操作系统发送进入恢复运行状态的第二通知。S402 , if a second preset operation acting on the input component of the electronic device is obtained, notify the target application process so that the target application process enters the resumption state and sends a second notification of entering the resumption state to the operating system.
为了便于理解,本实施例以通过作用于电子设备的输入部件的第二预设操作来触发目标应用进程进入恢复运行状态为例说明,但是对于前面提到的其他情况,本申请同样适用,对此不加限制。For ease of understanding, this embodiment is described by taking as an example that the target application process is triggered to enter the resumption state by the second preset operation acting on the input component of the electronic device. However, for the other situations mentioned above, this application is also applicable. There is no limit to this.
S403,响应于第二通知,通过操作系统或预置驱动程序调回供该目标应用进程运行的硬件部件的运行参数。S403, in response to the second notification, call back the running parameters of the hardware components for the target application process to run through the operating system or a preset driver.
在本实施例中,如果目标应用进程进入暂停运行状态,操作系统或者操作系统预置的驱动程序至少会调低该目标应用进程运行的硬件部件的运行参数,以减少目标应用进程进入暂停运行状态下仍需耗费的资源。相应的,在需要恢复该目标应用进程的运行状态时,可以回调相应的硬件部件的运行参数,以满足目标应用进程的正常运行需求。In this embodiment, if the target application process enters the suspended running state, the operating system or a driver preset by the operating system will at least lower the operating parameters of the hardware components running the target application process, so as to reduce the target application process entering the suspended running state resources that still need to be expended. Correspondingly, when the running state of the target application process needs to be restored, the running parameters of the corresponding hardware components can be called back to meet the normal running requirements of the target application process.
在一种可选实现方式中,如果操作系统获得第一通知后,通过操作系统或者预置驱动程序调低供目标应用进程以及目标应用进程之外的其他应用进程运行的硬件部件的运行参数,那么在操作系统获得第二通知后,可以通过操作系统或者预置驱动程序调回供该目标应用进程及该其他应用进程运行的硬件部件的运行参数。In an optional implementation manner, if the operating system, after obtaining the first notification, adjusts the operating parameters of the hardware components for the target application process and other application processes other than the target application process to run through the operating system or a preset driver, Then, after the operating system obtains the second notification, the operating parameters of the hardware components for the target application process and the other application processes to run can be recalled through the operating system or the preset driver.
需要说明的是,在本实施例中,在获得第二通知之后,仍可以控制电子设备从当前的第二运行模式调至第一运行模式。It should be noted that, in this embodiment, after the second notification is obtained, the electronic device can still be controlled to be adjusted from the current second operation mode to the first operation mode.
可以理解的是,在本申请以上任意一个实施例中,在操作系统获得该第一通知以后,如果预设时间段内未获得任何通知或获得作用于电子设备的第三预设操作,还可以控制电子设备从当前的第二运行模式调至第三运行模式。其中,该电子设备在第二运行模式下的功耗高于其在第三运行模式下的功耗。It can be understood that, in any of the above embodiments of the present application, after the operating system obtains the first notification, if no notification is obtained within a preset time period or a third preset operation acting on the electronic device is obtained, the system may also The control electronics are switched from the current second operating mode to the third operating mode. Wherein, the power consumption of the electronic device in the second operation mode is higher than that in the third operation mode.
如,第二运行模式下可以暂停目标应用进程在内存中的运行,而如果长时间操作系统未接收到任何通知或者检测到任意操作,则说明用户较为时间未操作电子设备,在该种情况下,可以将电子设备调整为更低功能的休眠模式等。For example, in the second operation mode, the running of the target application process in the memory can be suspended, and if the operating system does not receive any notification or detects any operation for a long time, it means that the user has not operated the electronic device for a relatively long time, in this case , you can adjust the electronic device to a lower functional sleep mode, etc.
为了便于理解本申请的方案,下面结合一种应用场景进行介绍。以运行的应用进程包括游戏应用的游戏进程为例。如图5所示,其示出了本申请一种控制方法应用于游戏场景中的一种流程交互示意图,本实施例的方法应用于电子设备,该电子设备中运行有至少一个游戏应用,可以包括:In order to facilitate understanding of the solution of the present application, an application scenario is combined to introduce the following. Take the running application process including the game process of the game application as an example. As shown in FIG. 5 , which shows a schematic diagram of a flow interaction in which a control method of the present application is applied to a game scene, the method of this embodiment is applied to an electronic device, and the electronic device runs at least one game application, which can include:
S501,在运行游戏应用进程的过程中,如果获得作用于电子设备的输入部件的第一预设操作,通知该游戏应用进程。S501 , in the process of running the game application process, if a first preset operation acting on the input component of the electronic device is obtained, the game application process is notified.
在本实施例中,游戏应用进程的显示窗口当前位于电子设备的显示部件的最前端。在该种情况下,电子设备检测到鼠标或者键盘等输入部件的第一预设操作之后,操作系统可以向游戏进程通知存在该第一预设操作。In this embodiment, the display window of the game application process is currently located at the forefront of the display component of the electronic device. In this case, after the electronic device detects the first preset operation of an input component such as a mouse or a keyboard, the operating system may notify the game process that the first preset operation exists.
S502,游戏应用进程暂停显示窗口的更新。S502, the game application process suspends the update of the display window.
在本实施例中,游戏应用进程基于第一预设操作可以确认用户输入暂停游戏的指令,在该种情况下,游戏应用控制自身进入暂停状态,停止向显示窗口(游戏窗口)更新游戏数据。In this embodiment, the game application process can confirm that the user inputs an instruction to pause the game based on the first preset operation. In this case, the game application controls itself to enter the pause state and stops updating game data to the display window (game window).
如,通过鼠标使得光标位于正在运行的游戏应用的游戏窗口,并通过鼠标点击,与生成用于触发游戏窗口暂停的第一预设操作。或者,通过触摸屏在运行中的游戏应用的游戏窗口上点击,以使得操作系统检测到该第一预设操作。For example, the cursor is positioned on the game window of the running game application through the mouse, and the mouse is clicked to generate the first preset operation for triggering the pause of the game window. Alternatively, click on the game window of the running game application through the touch screen, so that the operating system detects the first preset operation.
S503,游戏应用进程向操作系统发送进入暂停运行状态的第一通知。S503, the game application process sends a first notification to the operating system for entering a suspended running state.
游戏应用进程接收到用户输入的暂停指示的情况下,仅仅是游戏应用进程暂停游戏窗口的数据更新,操作系统无法获得游戏已经暂停,游戏应用进程仍运行在内存中,仍然需要耗费内存等资源。When the game application process receives the pause instruction input by the user, only the game application process suspends the data update of the game window, the operating system cannot obtain that the game has been paused, the game application process is still running in the memory, and still needs to consume resources such as memory.
基于此,本申请中,游戏应用暂停显示显示窗口的更新的同时,还会向操作系统发送进入暂停运行状态的通知,以使得操作系统可以控制暂停内存中游戏应用进程的运行。Based on this, in the present application, when the game application suspends the update of the display window, it also sends a notification to the operating system to enter the suspended operation state, so that the operating system can control to suspend the running of the game application process in the memory.
S504,操作系统对游戏应用进程相关的内存资源释放至预置存储位置。S504, the operating system releases the memory resources related to the game application process to a preset storage location.
如,操作系统可以通过对游戏应用进程进行挂起,以暂时将游戏应用进程从内存中调离。For example, the operating system may suspend the game application process to temporarily transfer the game application process from the memory.
可以理解的是,对于单机游戏而言,游戏运行过程中不涉及到与服务器侧的数据交互,在该种情况下,本申请可以将游戏应用进程相关的所有内存资源释放到预置存储位置,以使得游戏应用进程在内存中全部子进程均停止运行。It can be understood that, for a single-player game, data interaction with the server side is not involved in the game running process. In this case, the application can release all memory resources related to the game application process to the preset storage location, So that all child processes of the game application process in the memory stop running.
如果游戏应用为在线网络游戏等,为了保证在游戏能够与服务器通信,以使得游戏从暂停状态恢复到正常状态后,仍能够与服务器的数据同步,本申请还可以将游戏应用进程中除了用于负责数据通信处理的进程之外的其他进程相关的内存资源释放,而仅仅在内存中运行负责数据通信处理的进程。If the game application is an online game, etc., in order to ensure that the game can communicate with the server, so that the game can still synchronize with the data of the server after the game is restored from the suspended state to the normal state, the application can also use the game application process in addition to being used for Memory resources related to other processes other than the process responsible for data communication processing are released, and only the process responsible for data communication processing runs in memory.
如图6,本申请的方案应用于游戏场景中的一种实现原理示意图。FIG. 6 is a schematic diagram of an implementation principle in which the solution of the present application is applied to a game scene.
在图6中,在游戏场景中,用于控制游戏操作的手柄或者键盘中设置有用于暂停以及恢复游戏的暂停按键。In FIG. 6 , in the game scene, a handle or keyboard for controlling game operations is provided with a pause button for pausing and resuming the game.
如果用户希望暂停游戏,则可以点击该手柄或者键盘中的该暂停按键,在该种情况中,电子设备的BIOS或者EC可以感应到该暂停按键被触按的事件并通知给游戏应用进程。If the user wants to pause the game, he can click the pause button in the handle or keyboard. In this case, the BIOS or EC of the electronic device can sense the event of the pause button being touched and notify the game application process.
游戏应用进程在获得该暂停按键被触按的通知后,暂停游戏应用进程的游戏窗口的更新。同时,该游戏应用进程会向操作系统发送进入暂停运行状态的第一通知。在该种情况下,该操作系统或者预置驱动程序(图中未示出)会控制挂起内存中运行的该游戏应用进程,即释放内存中该游戏应用进程的内存资源到预置存储位置。The game application process suspends the update of the game window of the game application process after obtaining the notification that the pause button is pressed. At the same time, the game application process will send the first notification to the operating system to enter the suspended running state. In this case, the operating system or the preset driver (not shown in the figure) will control to suspend the game application process running in the memory, that is, release the memory resources of the game application process in the memory to the preset storage location .
当然,本实施例中,操作系统获得该第一通知后,还可以是通过操作系统或者预置驱动程序调低供该游戏应用进程运行的硬件设备的硬件参数。如,可以降低CPU主频;还可以是释放内存中该游戏进程相关内存资源到预置位置的同时,降低CPU主频等相关硬件的硬件参数。Of course, in this embodiment, after the operating system obtains the first notification, the operating system or a preset driver may also adjust the hardware parameters of the hardware device for the game application process to run. For example, the main frequency of the CPU can be reduced; it can also be that the hardware parameters of the related hardware such as the main frequency of the CPU can be reduced while releasing the memory resources related to the game process in the memory to the preset positions.
S505,如果操作系统获得作用于电子设备的输入部件的第二预设操作,通知该目标应用进程。S505, if the operating system obtains the second preset operation acting on the input component of the electronic device, notify the target application process.
S506,游戏应用进程进入恢复运行状态,向该操作系统发送进入恢复运行状态的第二通知。S506, the game application process enters the running resume state, and sends a second notification of entering the running resume state to the operating system.
其中,所述第二预设操作用于使目标应用进程进入继续运行状态。Wherein, the second preset operation is used to make the target application process enter a continuous running state.
如,在通过鼠标点击游戏窗口,以使得游戏应用的游戏窗口暂停的情况下,还可以通过鼠标点击该游戏窗口,以使得操作系统检测到第二预设操作,并通知游戏应用,使得游戏应用中止执行暂停游戏窗口的更新的暂停操作,且为了使得游戏应用的相关进程仍能够在后台运行,还需要通知操作系统,以使得操作系统将挂起的游戏应用进程重新调回内存。For example, in the case where the game window of the game application is paused by clicking the game window with the mouse, the game window can also be clicked with the mouse, so that the operating system detects the second preset operation and notifies the game application, so that the game application Suspend the suspend operation of suspending the update of the game window, and in order to enable the related process of the game application to still run in the background, the operating system needs to be notified so that the operating system can recall the suspended game application process back to the memory.
S507,通过该操作系统或预置驱动程序至少将释放至预置存储位置的与所述目标应用进程相关的内存资源加载至电子设备的内存。S507, at least load the memory resources related to the target application process released to the preset storage location into the memory of the electronic device through the operating system or the preset driver.
经研究发现,与现有游戏应用检测到第一预测操作仅仅暂停游戏窗口的更新相比,通过本实施例的方案可以使得电子设备的CPU使用率从67%左右,降低为3%左右,大大降低了内存资源以及CPU等硬件资源的消耗。After research, it is found that, compared with the existing game application that only suspends the update of the game window when the first prediction operation is detected, the solution of this embodiment can reduce the CPU usage rate of the electronic device from about 67% to about 3%, which is greatly improved. The consumption of memory resources and hardware resources such as CPU is reduced.
对应本申请的一种控制方法,本申请还提供了一种控制装置。Corresponding to a control method of the present application, the present application also provides a control device.
如图7所示,其示出了本申请一种控制装置一个实施例的组成结构示意图,本实施例的装置可以包括:As shown in FIG. 7 , which shows a schematic structural diagram of an embodiment of a control device of the present application, the device of this embodiment may include:
通知接收单元701,用于通过操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知;a
模式控制单元702,用于在运行应用进程过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,控制电子设备从当前的第一运行模式调至第二运行模式,其中,所述电子设备在第一运行模式下的性能高于其在第二运行模式下的性能。The
在一种可能的实现方式中,通知接收单元具体为,用于如果获得作用于电子设备的输入部件的第一预设操作,通知所述目标应用进程,以使所述目标应用进程进入暂停运行状态并向所述操作系统发送进入暂停运行状态的第一通知,所述第一预设操作用于使目标应用进程进入暂停运行状态,其中,所述目标应用进程至少包括显示窗口当前位于电子设备的显示部件的最前端的应用进程。In a possible implementation manner, the notification receiving unit is specifically configured to notify the target application process if the first preset operation acting on the input component of the electronic device is obtained, so that the target application process enters the suspended operation state and send to the operating system a first notification of entering the suspended operation state, the first preset operation is used to make the target application process enter the suspended operation state, wherein the target application process at least includes the display window currently located in the electronic device. The frontmost application process of the display widget.
可选的,目标应用进程进入暂停运行状态,包括:Optionally, the target application process enters a suspended running state, including:
目标应用进程的全部子进程进入暂停运行状态;且/或,All child processes of the target application process enter the suspended state; and/or,
暂停目标应用进程的显示窗口的更新。Pauses the update of the display window of the target application process.
在又一种可能的实现方式中,模式控制单元包括:In yet another possible implementation, the mode control unit includes:
资源优化单元,用于在运行应用进程过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,由所述操作系统或预置驱动程序至少对与所述目标应用进程相关的系统资源进行优化,以使得电子设备从当前的第一运行模式调至第二运行模式。The resource optimization unit is configured to, during the process of running the application process, if the operating system of the electronic device obtains the first notification sent from the target application process to enter the suspended operation state, the operating system or the preset driver shall at least match the The system resources related to the target application process are optimized, so that the electronic device is adjusted from the current first operation mode to the second operation mode.
在一种可选方式中,资源优化单元包括:In an optional manner, the resource optimization unit includes:
第一资源释放单元,用于在运行应用进程过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,通过所述操作系统或预置驱动程序对所述目标应用进程占用的硬件资源进行释放,并将相关的缓存资源和/或内存资源释放至预置存储位置;The first resource release unit is configured to, during the process of running the application process, if the operating system of the electronic device obtains the first notification sent from the target application process to enter the suspended running state, the The hardware resources occupied by the target application process are released, and the relevant cache resources and/or memory resources are released to the preset storage location;
或者,or,
第二资源释放单元,用于运行应用进程过程中,如果电子设备的操作系统获得来自目标应用进程发送的进入暂停运行状态的第一通知,通过所述操作系统或预置驱动程序对所述目标应用进程和与所述目标应用进程不同的其他应用进程占用的硬件资源进行释放,并将相关的缓存资源和/或内存资源释放至预置存储位置;The second resource release unit is used for running the application process, if the operating system of the electronic device obtains the first notification sent from the target application process to enter the suspended operation state, the operating system or the preset driver Release the hardware resources occupied by the application process and other application processes different from the target application process, and release the relevant cache resources and/or memory resources to the preset storage location;
或者,or,
第一参数调低单元,用于通过所述操作系统或预置驱动程序调低供所述目标应用进程运行的硬件部件的运行参数;a first parameter lowering unit, configured to lower the running parameters of the hardware components for the target application process to run through the operating system or a preset driver;
或者,or,
第二参数调低单元,用于通过所述操作系统或预置驱动程序调低供所述目标应用进程和与所述目标应用进程不同的其他应用进程运行的硬件部件的运行参数。A second parameter lowering unit, configured to lower the running parameters of the hardware components for the target application process and other application processes different from the target application process to run through the operating system or a preset driver.
在有一种可能的实现方式中,在以上任意一个装置实施例中还包括:In a possible implementation manner, any one of the above device embodiments further includes:
模式回调单元,用于在获得所述第一通知以后,如果电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,控制电子设备从当前的第二运行模式调至第一运行模式。The mode callback unit is configured to control the electronic device to adjust from the current second operation mode to the first operation mode if the operating system of the electronic device obtains the second notification from the target application process to restore the running state after obtaining the first notification run mode.
在一种可选方式中,模式回调单元包括:In an optional manner, the modal callback unit includes:
通知获得子单元,用于在获得所述第一通知以后,如果获得作用于电子设备的输入部件的第二预设操作,通知所述目标应用进程,以使所述目标应用进程进入恢复运行状态并向所述操作系统发送进入恢复运行状态的第二通知,其中,所述第二预设操作用于使目标应用进程进入继续运行状态;The notification obtaining subunit is configured to notify the target application process if the second preset operation acting on the input component of the electronic device is obtained after the first notification is obtained, so that the target application process enters the resume operation state and sending a second notification to the operating system for entering a running resume state, wherein the second preset operation is used to make the target application process enter a running state;
模式回调子单元,用于如操作系统获得第二通知,控制电子设备从当前的第二运行模式调至第一运行模式。The mode callback subunit is used for, for example, the operating system obtains the second notification, and controls the electronic device to adjust from the current second operation mode to the first operation mode.
在一种可选方式中,该装置还包括:In an optional manner, the device further includes:
第一模式回调子单元,用于在获得所述第一通知以后,如果电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,通过所述操作系统或预置驱动程序至少将释放至预置存储位置的与所述目标应用进程相关的缓存资源和/或内存资源加载至电子设备的内存和/或缓存;The first mode callback subunit is configured to, after obtaining the first notification, if the operating system of the electronic device obtains the second notification of resuming the running state sent from the target application process, through the operating system or the preset driver at least Loading the cache resources and/or memory resources related to the target application process released to the preset storage location into the memory and/or cache of the electronic device;
或,or,
第二模式回调子单元,用于在获得所述第一通知以后,如果电子设备的操作系统获得来自目标应用进程发送的恢复运行状态的第二通知,通过所述操作系统或预置驱动程序调回供所述目标应用进程运行的硬件部件的运行参数。The second mode callback subunit is configured to, after obtaining the first notification, if the operating system of the electronic device obtains the second notification of resuming the running state sent from the target application process, the operating system or the preset driver will call the The running parameters of the hardware components for running the target application process are returned.
在又一种可能的实现方式中,本申请以上任意一个装置中,还包括:In another possible implementation manner, any one of the above devices in the present application further includes:
模式变动单元,用于在获得所述第一通知以后,如果预设时间段内未获得任何通知或获得作用于电子设备的第三预设操作,控制电子设备从当前的第二运行模式调至第三运行模式,其中,所述电子设备在第二运行模式下的功耗高于其在第三运行模式下的功耗。The mode changing unit is configured to, after obtaining the first notification, control the electronic device to adjust from the current second operation mode to A third mode of operation, wherein the power consumption of the electronic device in the second mode of operation is higher than its power consumption in the third mode of operation.
另一方面,本申请还提供了一种电子设备,如,该电子设备可以为前面提到的第二电子设备的具体结构。如图8所示,其示出了本申请一种电子设备的组成结构示意图,本实施例的电子设备至少包括:处理器801和存储器802。On the other hand, the present application also provides an electronic device, for example, the electronic device can be the specific structure of the aforementioned second electronic device. As shown in FIG. 8 , which shows a schematic diagram of the composition and structure of an electronic device of the present application, the electronic device in this embodiment at least includes: a
其中,该处理器用于执行如上任意一个实施例的控制方法。Wherein, the processor is configured to execute the control method of any one of the above embodiments.
该存储器用于存储处理器执行操作所需的程序。The memory is used to store programs required by the processor to perform operations.
该存储器还可以用于操作系统以及BIOS程序等。The memory can also be used for operating systems and BIOS programs, among others.
可以理解的是,该电子设备还包括其他部件,如图8所示,该电子设备还可以包括显示器803、电子设备连接的输入装置804以及通信总线805。该处理器、存储器和显示器以及输入装置之间可以通过通信总线相连。It can be understood that the electronic device further includes other components. As shown in FIG. 8 , the electronic device may further include a
当然,电子设备还可以包括比如图8更多或者更少的部件,对此不加限制。Of course, the electronic device may also include more or less components as shown in FIG. 8 , which is not limited.
又一方面,本申请还提供了一种存储介质,用于存储程序,该程序被执行时,用于实现如上任意一个实施例所述的控制方法。In another aspect, the present application also provides a storage medium for storing a program, which, when executed, is used to implement the control method described in any one of the above embodiments.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。同时,本说明书中各实施例中记载的特征可以相互替换或者组合,使本领域专业技术人员能够实现或使用本申请。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts among the various embodiments, refer to each other Can. Meanwhile, the features described in each embodiment in this specification can be replaced or combined with each other, so that those skilled in the art can realize or use the present application. As for the apparatus-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011190334.1A CN112306714B (en) | 2020-10-30 | 2020-10-30 | Control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011190334.1A CN112306714B (en) | 2020-10-30 | 2020-10-30 | Control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112306714A true CN112306714A (en) | 2021-02-02 |
CN112306714B CN112306714B (en) | 2024-12-20 |
Family
ID=74332793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011190334.1A Active CN112306714B (en) | 2020-10-30 | 2020-10-30 | Control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306714B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113031868A (en) * | 2021-03-24 | 2021-06-25 | 联想(北京)有限公司 | Control method and device of memory |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5696897A (en) * | 1994-01-31 | 1997-12-09 | Sun Microsystems, Inc. | Method and apparatus for a multi-layer system quiescent suspend and resume operation |
CN101395894A (en) * | 2006-03-03 | 2009-03-25 | 日本电气株式会社 | Mobile telephone and application program |
CN104572283A (en) * | 2015-01-06 | 2015-04-29 | 曾小荟 | Method for pausing and restoring MPI (message passing interface) parallel application running |
CN105260316A (en) * | 2015-11-16 | 2016-01-20 | 浪潮软件股份有限公司 | Dynamic testing method, device and system for software system |
CN105677141A (en) * | 2015-12-29 | 2016-06-15 | 深圳市金立通信设备有限公司 | Application program management method and terminal |
CN106292994A (en) * | 2016-07-25 | 2017-01-04 | 北京小米移动软件有限公司 | The control method of virtual reality device, device and virtual reality device |
CN107735772A (en) * | 2016-04-22 | 2018-02-23 | 华为技术有限公司 | A method and device for writing data |
CN111045824A (en) * | 2019-12-12 | 2020-04-21 | Oppo广东移动通信有限公司 | Application control method and device, electronic equipment and computer readable medium |
-
2020
- 2020-10-30 CN CN202011190334.1A patent/CN112306714B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5696897A (en) * | 1994-01-31 | 1997-12-09 | Sun Microsystems, Inc. | Method and apparatus for a multi-layer system quiescent suspend and resume operation |
CN101395894A (en) * | 2006-03-03 | 2009-03-25 | 日本电气株式会社 | Mobile telephone and application program |
CN104572283A (en) * | 2015-01-06 | 2015-04-29 | 曾小荟 | Method for pausing and restoring MPI (message passing interface) parallel application running |
CN105260316A (en) * | 2015-11-16 | 2016-01-20 | 浪潮软件股份有限公司 | Dynamic testing method, device and system for software system |
CN105677141A (en) * | 2015-12-29 | 2016-06-15 | 深圳市金立通信设备有限公司 | Application program management method and terminal |
CN107735772A (en) * | 2016-04-22 | 2018-02-23 | 华为技术有限公司 | A method and device for writing data |
CN106292994A (en) * | 2016-07-25 | 2017-01-04 | 北京小米移动软件有限公司 | The control method of virtual reality device, device and virtual reality device |
CN111045824A (en) * | 2019-12-12 | 2020-04-21 | Oppo广东移动通信有限公司 | Application control method and device, electronic equipment and computer readable medium |
Non-Patent Citations (2)
Title |
---|
谢素芬: "基于PROFINET的节能技术PROFlenergy-节能技术新趋势", 仪器仪表标准化与计量, no. 6, pages 36 - 39 * |
马德成: "计算机监控管理系统的设计与实现", 中国优秀博硕士学位论文全文数据库(硕士)信息科技辑(月刊), no. 03, 15 March 2005 (2005-03-15), pages 139 - 24 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113031868A (en) * | 2021-03-24 | 2021-06-25 | 联想(北京)有限公司 | Control method and device of memory |
Also Published As
Publication number | Publication date |
---|---|
CN112306714B (en) | 2024-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108055693B (en) | Terminal application control method, terminal and computer readable storage medium | |
US9116704B1 (en) | Delaying the initiation of transitioning to a lower power mode by placing a computer system into an intermediate power mode between a normal power mode and the lower power mode | |
CN102156532B (en) | Computer and method that reduces power consumption while maintaining a specific function | |
US9760413B2 (en) | Power efficient brokered communication supporting notification blocking | |
CN111290561A (en) | Terminal control method, device and terminal | |
CN111338838A (en) | Method for controlling frequency of central processing unit and related device | |
CN107861602B (en) | Terminal CPU performance control method, terminal and computer readable storage medium | |
CN106775809A (en) | A kind of method of mobile terminal internal memory cleaning, device and mobile terminal | |
CN108401453B (en) | Method and device for controlling display screen and intelligent terminal | |
CN112306714A (en) | Control method and device | |
CN107608521B (en) | Touch screen failure processing method, storage medium and mobile terminal | |
CN114222355A (en) | Terminal power saving display method and device and electronic equipment | |
CN113703896A (en) | Event trigger control method and device, electronic equipment and medium | |
JP7231535B2 (en) | Smart device control method, smart device control device, electronic device, and storage medium | |
WO2024199275A1 (en) | Application management and control method and apparatus, electronic device and computer readable storage medium | |
CN107291213A (en) | Mode Selection Method, Device, Terminal, and Computer-Readable Storage Medium | |
CN107277906A (en) | Mode Selection Method, Device, Terminal, and Computer-Readable Storage Medium | |
CN111884906A (en) | Information notification method and device and electronic equipment | |
CN106339268B (en) | Application program control method and intelligent terminal | |
WO2022161218A1 (en) | Icon moving method and apparatus, and electronic device | |
CN109673043B (en) | Control method and device of split type electronic equipment, storage medium and electronic equipment | |
CN106445778A (en) | Information processing method and mobile terminal | |
WO2018157364A1 (en) | Method for freezing application program, and terminal | |
US20250060979A1 (en) | Android-based system for touch input handling | |
US9471123B2 (en) | Reducing unnecessary power consumed by peripheral devices while displaying a moving image |
Legal Events
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |