CN107832128A - Application freezing methods and related products - Google Patents
Application freezing methods and related products Download PDFInfo
- Publication number
- CN107832128A CN107832128A CN201710985958.4A CN201710985958A CN107832128A CN 107832128 A CN107832128 A CN 107832128A CN 201710985958 A CN201710985958 A CN 201710985958A CN 107832128 A CN107832128 A CN 107832128A
- Authority
- CN
- China
- Prior art keywords
- party applications
- background
- game
- freezing
- frozen
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/482—Application
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/484—Precedence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/485—Resource constraint
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动终端技术领域,具体涉及一种应用冻结方法及相关产品。The invention relates to the technical field of mobile terminals, in particular to an application freezing method and related products.
背景技术Background technique
随着移动终端(手机、平板电脑等)的大量普及应用,移动终端能够支持的应用越来越多,功能越来越强大,移动终端向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the popularization and application of mobile terminals (mobile phones, tablet computers, etc.), mobile terminals can support more and more applications, and their functions are becoming more and more powerful. Missing electronics.
目前来看,游戏使用与游戏对战移动终端的一种比较重要的用户场景。用户对于游戏使用时的速度与性能是非常重视的,如果用户在使用游戏时时,游戏速度与性能,网络状态不能得到充分资源的保证,那么用户将会感受到卡顿、掉线等不良的体验,例如:游戏关键场景卡死、掉线,导致团战失败、对战失败等情况,其中,很重要的一个原因在于,很多三方应用可能会在用户使用游戏场景时在后台进行一些活动,抢占了前台游戏使用的资源,使用户在玩游戏时,游戏资源得不到充分的保障,因此,如何实现减少后台活动的问题亟待解决。At present, the use of games and games against mobile terminals is a relatively important user scenario. Users attach great importance to the speed and performance of the game. If the game speed and performance and the network status cannot be guaranteed by sufficient resources when the user is using the game, the user will experience bad experiences such as lagging and disconnection. , For example: the key scene of the game is stuck or disconnected, resulting in the failure of the team battle and the failure of the battle. One of the important reasons is that many third-party applications may carry out some activities in the background when the user uses the game scene, preempting the The resources used by the foreground game make the game resources not fully guaranteed when the user is playing the game. Therefore, the problem of how to reduce background activities needs to be solved urgently.
发明内容Contents of the invention
本发明实施例提供了一种应用冻结方法及相关产品,可以减少后台活动,以达到保障游戏环境的目的。Embodiments of the present invention provide an application freezing method and related products, which can reduce background activities to achieve the purpose of ensuring the game environment.
第一方面,本发明实施例提供一种应用冻结方法,包括:In a first aspect, an embodiment of the present invention provides an application freezing method, including:
在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数;When the target game is in game mode, obtain N third-party applications running in the background, where N is a positive integer;
从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数;Determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N;
冻结所述M个第三方应用。The M third-party applications are frozen.
第二方面,本发明实施例提供了一种应用冻结装置,包括:In a second aspect, an embodiment of the present invention provides an application freezing device, including:
获取单元,用于在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数;An acquisition unit, configured to acquire N third-party applications running in the background when the target game is in game mode, where N is a positive integer;
确定单元,用于从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数;A determining unit, configured to determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N;
冻结单元,用于冻结所述M个第三方应用。A freezing unit, configured to freeze the M third-party applications.
第三方面,本发明实施例提供了一种移动终端,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。In a third aspect, an embodiment of the present invention provides a mobile terminal, including: a processor and a memory; and one or more programs, the one or more programs are stored in the memory and configured to be executed by the The processor executes, and the program includes instructions for some or all of the steps described in the first aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables the computer to perform the first aspect of the present invention. instructions for some or all of the steps described in .
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present invention provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the Part or all of the steps described in the first aspect of the invention embodiment. The computer program product may be a software installation package.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
可以看出,上述本发明实施例所描述的应用冻结方法及相关产品,在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,N为正整数,从N个第三方应用中确定出待冻结的M个第三方应用,M为不大于N的正整数,冻结M个第三方应用,从而,可以在游戏模式,对运行在后台的一些第三方应用进行冻结,从而,降低了后台活动,游戏可以争取更多的资源,保障了游戏环境,提升了用户体验。It can be seen that the application freezing method and related products described in the above-mentioned embodiments of the present invention acquire N third-party applications running in the background when the target game is in game mode, where N is a positive integer, and from the N third-party applications Determine the M third-party applications to be frozen, M is a positive integer not greater than N, and freeze the M third-party applications, so that some third-party applications running in the background can be frozen in the game mode, thereby reducing Background activities, the game can strive for more resources, guarantee the game environment, and improve the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例公开的一种应用冻结方法的流程示意图;FIG. 1 is a schematic flowchart of an application freezing method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种应用冻结方法的流程示意图;Fig. 2 is a schematic flowchart of another application freezing method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的另一种应用冻结方法的流程示意图;Fig. 3 is a schematic flowchart of another application freezing method disclosed in an embodiment of the present invention;
图4A是本发明实施例提供的一种应用冻结装置的结构示意图;FIG. 4A is a schematic structural diagram of an application freezing device provided by an embodiment of the present invention;
图4B是本发明实施例提供的图4A所描述的应用冻结装置的获取单元的结构示意图;FIG. 4B is a schematic structural diagram of an acquisition unit of the application freezing device described in FIG. 4A provided by an embodiment of the present invention;
图4C是本发明实施例提供的图4A所描述的应用冻结装置的冻结单元的结构示意图;FIG. 4C is a schematic structural diagram of the freezing unit of the application freezing device described in FIG. 4A provided by an embodiment of the present invention;
图4D是本发明实施例提供的图4A所描述的应用冻结装置的确定单元的结构示意图;FIG. 4D is a schematic structural diagram of a determining unit of the application freezing device described in FIG. 4A provided by an embodiment of the present invention;
图4E是本发明实施例提供的一种应用冻结装置的另一结构示意图;FIG. 4E is another schematic structural diagram of an application freezing device provided by an embodiment of the present invention;
图4F是本发明实施例提供的一种应用冻结装置的另一结构示意图;FIG. 4F is another schematic structural diagram of an application freezing device provided by an embodiment of the present invention;
图5是本发明实施例公开的另一种移动终端的结构示意图。Fig. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种应用冻结方法及相关产品,可以减少后台活动,以达到保障游戏环境的目的。Embodiments of the present invention provide an application freezing method and related products, which can reduce background activities to achieve the purpose of ensuring the game environment.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本发明实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。The mobile terminals involved in the embodiments of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on.
具体应用中,由于第三方应用运行在后台,在运行过程中,第三方应用产生的缓存数据,另外,也会与服务器进行通信,占用一定的网络资源。例如,视频应用B产生的缓存数据,后台三方应用的话,也可能进行升级,推送消息等操作,进而,也会产生缓存数据。通常情况下,只要第三方应用未关闭,其均会运行在后台,从而,不断产生缓存数据。如此,本发明实施例提供一种应用冻结方法,包括:In a specific application, since the third-party application runs in the background, during the running process, the cached data generated by the third-party application will also communicate with the server, occupying a certain amount of network resources. For example, for the cached data generated by video application B, the three-party application in the background may also perform operations such as upgrading and pushing messages, and then cached data will also be generated. Normally, as long as the third-party application is not closed, it will run in the background, thereby continuously generating cached data. Thus, an embodiment of the present invention provides an application freezing method, including:
在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数;When the target game is in game mode, obtain N third-party applications running in the background, where N is a positive integer;
从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数;Determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N;
冻结所述M个第三方应用。The M third-party applications are frozen.
可以看出,上述本发明实施例所描述的应用冻结方法,在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,N为正整数,从N个第三方应用中确定出待冻结的M个第三方应用,M为不大于N的正整数,冻结M个第三方应用,从而,可以在游戏模式,对运行在后台的一些第三方应用进行冻结,从而,降低了后台活动,游戏可以争取更多的资源,保障了游戏环境,提升了用户体验。It can be seen that the application freezing method described in the above-mentioned embodiments of the present invention obtains N third-party applications running in the background when the target game is in the game mode, where N is a positive integer, and determines the number of pending applications from the N third-party applications. The M third-party applications that are frozen, M is a positive integer not greater than N, and the M third-party applications are frozen, so that some third-party applications running in the background can be frozen in the game mode, thereby reducing background activities. The game can strive for more resources, guarantee the game environment, and improve the user experience.
以下对本发明实施例提供的应用冻结方法,以及实施该应用冻结方法的装置进行描述:The application freezing method provided by the embodiment of the present invention and the device for implementing the application freezing method are described below:
请参阅图1,为本发明实施例提供的一种应用冻结方法的实施例流程示意图。本实施例中所描述的应用冻结方法,其包括以下步骤:Please refer to FIG. 1 , which is a schematic flowchart of an embodiment of an application freezing method provided by an embodiment of the present invention. The application freezing method described in this embodiment includes the following steps:
101、在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数。101. When the target game is in the game mode, acquire N third-party applications running in the background, where N is a positive integer.
其中,目标游戏可以由用户自行设置或者系统默认。当然,目标游戏可以为运行在前台的游戏。上述N个第三方应用可以为全部第三方应用,或者,部分第三方应用。上述目标游戏还可以是网络游戏或者单机游戏,网络游戏的话,对网络资源需求较多,其需要一个良好的网络环境,例如,网络是否畅通,信号是否较强等等,而单机游戏的话,其对CPU性能有一定的需求,例如,内存资源是否满足,等等。Wherein, the target game can be set by the user or defaulted by the system. Of course, the target game may be a game running in the foreground. The aforementioned N third-party applications may be all third-party applications, or some third-party applications. The above-mentioned target game can also be an online game or a stand-alone game. For an online game, there are more demands on network resources, which require a good network environment, such as whether the network is smooth, whether the signal is strong, etc., and for a stand-alone game, the There are certain requirements on CPU performance, for example, whether memory resources are satisfied, and so on.
可选地,上述游戏模式可以是启动游戏,进入游戏环境这一过程,或者,游戏过程中,在此不做限定。Optionally, the aforementioned game mode may be a process of starting a game and entering a game environment, or during a game, which is not limited here.
可选地,并非所有的游戏处于游戏模式下,均需要冻结后台应用,毕竟,冻结后台应用的话,也在一定程度上,会增加移动终端的功耗,故而,上述目标游戏的话,可以由用户自行设置,例如,游戏A,用户可以当该游戏A设置为目标游戏,那么该游戏A在游戏模式下,移动终端可以获取运行在后台的N个第三方应用。Optionally, not all games in the game mode need to freeze the background applications. After all, freezing the background applications will also increase the power consumption of the mobile terminal to a certain extent. Therefore, the above target games can be controlled by the user. Self-setting, for example, game A, the user can set the game A as the target game, then the mobile terminal can obtain N third-party applications running in the background when the game A is in the game mode.
可选地,上述步骤101中,获取运行在后台的N个第三方应用,可包括如下步骤:Optionally, in the above step 101, obtaining N third-party applications running in the background may include the following steps:
11、确定与所述目标游戏对应的P个第三方应用,所述P为不小于所述N的整数;11. Determine P third-party applications corresponding to the target game, where P is an integer not less than N;
12、获取运行在后台的Q个第三方应用,所述Q为不小于所述N的整数;12. Obtain Q third-party applications running in the background, where the Q is an integer not less than the N;
13、确定所述P个第三方应用与所述Q个第三方应用之间的交集,得到所述N个第三方应用。13. Determine an intersection between the P third-party applications and the Q third-party applications to obtain the N third-party applications.
其中,针对不同的游戏,可以冻结不同的第三方应用,本发明实施例中,可以预先存储游戏与第三方应用之间的映射关系,进而,可以确定与目标游戏对应的P个第三方应用,P为不小于N的整数,另外,可以获取运行在后台的Q个应用,Q为不小于N的整数,确定P个第三方应用与Q个第三方应用之间的交集,得到N个第三方应用。如此,可以为每一游戏冻结不同的第三方应用,在冻结过程中,由于只能冻结后台运行的应用,因此,若某个应用尚未打开,则不可冻结,最终的话,还是从正在后台运行的应用中选取出待冻结的应用,通过该方式,可以更有针对性地确定待冻结应用。Among them, for different games, different third-party applications can be frozen. In the embodiment of the present invention, the mapping relationship between the game and the third-party application can be stored in advance, and then P third-party applications corresponding to the target game can be determined. P is an integer not less than N. In addition, Q applications running in the background can be obtained, Q is an integer not less than N, determine the intersection between P third-party applications and Q third-party applications, and obtain N third-party applications application. In this way, different third-party applications can be frozen for each game. During the freezing process, only applications running in the background can be frozen. Therefore, if an application has not been opened, it cannot be frozen. In the end, it is still running from the background. The application to be frozen is selected from the applications. In this way, the application to be frozen can be determined more specifically.
102、从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数。102. Determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N.
其中,由于运行在后台的第三方应用可以全部冻结,当然,也可以部分冻结,如此,可以从N个第三方应用中选取M个第三方应用进行冻结,M为不大于N的正整数,冻结的目的不在于让所有第三方应用不工作,只是保障游戏有个运行环境即可,因此,更多的情况下,可以采取部分冻结,即冻结部分第三方应用。Among them, since the third-party applications running in the background can be all frozen, of course, they can also be partially frozen. In this way, M third-party applications can be selected from N third-party applications to freeze, and M is a positive integer not greater than N. The purpose of this is not to prevent all third-party applications from working, but to ensure that the game has a running environment. Therefore, in more cases, partial freezing can be used, that is, freezing some third-party applications.
可选地,上述步骤102中,从所述N个第三方应用中确定出待冻结的M个第三方应用,可包括如下步骤:Optionally, in the above step 102, determining M third-party applications to be frozen from the N third-party applications may include the following steps:
21、获取当前时间;21. Get the current time;
22、确定与所述当前时间对应的预先设置的X个第三方应用,所述X为大于所述M的正整数;22. Determine X preset third-party applications corresponding to the current time, where X is a positive integer greater than M;
23、确定所述X个第三方应用与所述N个第三方应用之间的交集,得到待冻结的所述M个第三方应用。23. Determine the intersection between the X third-party applications and the N third-party applications, and obtain the M third-party applications to be frozen.
其中,当前时间可以通过移动终端中的时钟获取。不同的时间,也可以对应不同的第三方应用,例如,每一第三方应用均有一个活跃时间段,并非总在后台活跃,若某一第三方应用在后台不活跃,则可以不对其进行冻结。因此,可以预先设置时间段与第三方应用集之间的映射关系,进而,确定当前时间对应的目标时间段(当前时间为目标时间段中的一个时间点),根据上述时间段与第三方应用集之间的映射关系确定目标时间段对应的第三方应用集,得到X个第三方应用,X为大于M的正整数。进而,可以确定上述X个第三方应用与N个第三方应用之间的交集,得到待冻结的M个第三方应用。如此,可以针对第三方应用在后台的活跃时间段,确定出需要被冻结的第三方应用,更加具备针对性,且不会影响到部分后台第三方应用的正常更新,在维护游戏环境的同时,最大程度上保障了第三方应用的利益。Wherein, the current time can be acquired through a clock in the mobile terminal. Different times can also correspond to different third-party applications. For example, each third-party application has an active time period and is not always active in the background. If a third-party application is not active in the background, it does not need to be frozen . Therefore, the mapping relationship between the time period and the third-party application set can be set in advance, and then the target time period corresponding to the current time is determined (the current time is a time point in the target time period). The mapping relationship between the sets determines the third-party application set corresponding to the target time period, and X third-party applications are obtained, where X is a positive integer greater than M. Furthermore, the intersection between the above-mentioned X third-party applications and N third-party applications may be determined to obtain M third-party applications to be frozen. In this way, the third-party applications that need to be frozen can be determined according to the active time period of the third-party applications in the background, which is more targeted and will not affect the normal update of some background third-party applications. While maintaining the game environment, The interests of third-party applications are guaranteed to the greatest extent.
103、冻结所述M个第三方应用。103. Freeze the M third-party applications.
其中,可以冻结M个第三方应用的一些行为,当然,也可以冻结M个第三方应用的部分行为,例如,升级行为,下载行为,或者,推送行为等等。Among them, some behaviors of the M third-party applications may be frozen, and of course, some behaviors of the M third-party applications may also be frozen, for example, upgrade behaviors, download behaviors, or push behaviors, and the like.
可选地,上述步骤103中,冻结所述M个第三方应用,可包括如下步骤:Optionally, in the above step 103, freezing the M third-party applications may include the following steps:
31、确定所述M个第三方应用中每一应用的后台活动频率,得到M个后台活动频率值;31. Determine the background activity frequency of each application in the M third-party applications, and obtain M background activity frequency values;
32、根据所述M个后台活动频率值确定所述M个第三方应用的冻结优先级;32. Determine the freezing priorities of the M third-party applications according to the M background activity frequency values;
33、根据所述冻结优先级冻结所述M个第三方应用。33. Freeze the M third-party applications according to the freezing priority.
其中,上述后台活动频率可以理解为在后台进行通信的次数,不同的第三方应用其在后台活动的后台活动频率不一样,当然,同一第三方应用,在不同的时间段,其后台活动频率也可能不一样,因此,上述每一第三方应用在后台运行的后台活动频率可以由每一第三方应用的历史运行记录获取,或者,也可以统计一段时间的活动次数,计算出每一第三方应用在后台的后台活动频率,进而,针对M个第三方应用的话,可以得到M个后台活动频率值,根据M个后台活动频率值确定M个第三方应用的冻结优先级,例如,后台活动频率值越大,则冻结优先级越高,如此,可以根据冻结优先级冻结M个第三方应用。Among them, the frequency of background activities mentioned above can be understood as the number of times of communication in the background. Different third-party applications have different frequency of background activities in the background. Of course, the same third-party application has different frequency of background activities in different time periods. It may be different. Therefore, the background activity frequency of each of the above-mentioned third-party applications running in the background can be obtained from the historical operation records of each third-party application, or the number of activities for a period of time can also be counted to calculate the frequency of each third-party application. The frequency of background activities in the background, and then, for M third-party applications, M background activity frequency values can be obtained, and the freezing priority of M third-party applications is determined according to the M background activity frequency values, for example, the background activity frequency value The larger the value is, the higher the freezing priority is. In this way, M third-party applications can be frozen according to the freezing priority.
可选地,上述步骤103中,冻结所述M个第三方应用,可包括如下步骤:Optionally, in the above step 103, freezing the M third-party applications may include the following steps:
采用并行方式对所述M个第三方应用进行冻结操作。The freezing operation is performed on the M third-party applications in parallel.
其中,为了快速优化游戏环境,可以采取并行方式对M个第三方应用进行冻结,如此,可以快速降低后台活动,例如,采用M个进程或者线程对M个第三方应用进行冻结操作,其中,每一第三方应用对应一个进程或者线程,或者,可以将M个第三方应用划分为多个组,针对每一组的第三方应用采用一个线程或者进程进行冻结,如此,可以实现快速冻结后台第三方应用的目的,保证了游戏环境,提升了用户体验。Among them, in order to quickly optimize the game environment, M third-party applications can be frozen in parallel, so that background activities can be quickly reduced, for example, M processes or threads are used to freeze M third-party applications, wherein each One third-party application corresponds to one process or thread, or M third-party applications can be divided into multiple groups, and a thread or process is used to freeze each group of third-party applications. In this way, the background third-party application can be quickly frozen The purpose of the application ensures the game environment and improves the user experience.
可选地,在上述步骤103之后,还可以包括如下步骤:Optionally, after the above step 103, the following steps may also be included:
在所述目标游戏退出游戏模式时,解冻所述M个第三方应用。When the target game exits the game mode, unfreeze the M third-party applications.
其中,目标游戏退出游戏模式,则说明用户不想游戏,此时,可以解冻M个第三方应用。当然,上述解冻所述M个第三方应用,可以按照如下方式实施:Wherein, if the target game exits the game mode, it means that the user does not want to play the game. At this time, the M third-party applications can be unfrozen. Of course, the aforementioned unfreezing of the M third-party applications may be implemented in the following manner:
在预设时间长度后,执行所述解冻所述M个第三方应用的步骤。After a preset period of time, the step of unfreezing the M third-party applications is performed.
其中,上述预设时间长度可以由用户自行设置,或者,系统默认。用户有可能误操作退出游戏模式,因此,有可能还会再次进入游戏模式,因此,可以设置一个时间长度。另一方面,由于长时间处于游戏模式,此刻,针对游戏的性能是最好的,且CPU、电池的话,其温度也有可能较高,因此,设置一个预设时间长度,有利于CPU、电池的温度得以降低,从而,在降温后,CPU性能更好,有利于降低移动终端的功耗以及延长移动终端的寿命。Wherein, the aforementioned preset time length may be set by the user, or the system defaults. The user may exit the game mode by mistake, and therefore may enter the game mode again. Therefore, a time length can be set. On the other hand, due to being in the game mode for a long time, the performance for the game is the best at this moment, and the temperature of the CPU and battery may also be high. Therefore, setting a preset time length is beneficial to the CPU and battery. The temperature is lowered, so that after the temperature is lowered, the performance of the CPU is better, which is beneficial to reducing the power consumption of the mobile terminal and prolonging the service life of the mobile terminal.
可选地,在上述步骤103之后,还可以包括如下步骤:Optionally, after the above step 103, the following steps may also be included:
在所述目标游戏处于后台时,解冻所述M个第三方应用。When the target game is in the background, unfreeze the M third-party applications.
其中,若目标游戏处于后台,则说明用户暂且不玩游戏,或者,想休息,因此,这时候可以解冻M个第三方应用。Wherein, if the target game is in the background, it means that the user does not play the game for the time being, or wants to take a rest. Therefore, the M third-party applications can be unfrozen at this time.
可选地,上述解冻所述M个第三方应用,可以按照如下方式进行操作:Optionally, the aforementioned unfreezing of the M third-party applications may be performed in the following manner:
解冻所述M个第三方应用中的至少一个第三方应用,或者,按照冻结优先级对应的顺序解冻所述M个第三方应用。Unfreeze at least one third-party application among the M third-party applications, or unfreeze the M third-party applications in a sequence corresponding to freezing priorities.
其中,解冻的话,可以一一解冻,毕竟,目标游戏有可能在解冻过程中切换到前台,因此,可以一一解冻,若切换到前台,没解冻完的,可以暂停解冻。或者,按照解冻优先级对应的顺序进行解冻的话,可以保障解冻依次进行。Among them, if you unfreeze, you can unfreeze them one by one. After all, the target game may switch to the foreground during the unfreezing process, so you can unfreeze them one by one. Alternatively, if the unfreezing is performed in the order corresponding to the unfreezing priority, it can be guaranteed that the unfreezing is performed sequentially.
可以看出,上述本发明实施例所描述的应用冻结方法,在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,N为正整数,从N个第三方应用中确定出待冻结的M个第三方应用,M为不大于N的正整数,冻结M个第三方应用,从而,可以在游戏模式,对运行在后台的一些第三方应用进行冻结,从而,降低了后台活动,游戏可以争取更多的资源,保障了游戏环境,提升了用户体验。It can be seen that the application freezing method described in the above-mentioned embodiments of the present invention obtains N third-party applications running in the background when the target game is in the game mode, where N is a positive integer, and determines the number of pending applications from the N third-party applications. The M third-party applications that are frozen, M is a positive integer not greater than N, and the M third-party applications are frozen, so that some third-party applications running in the background can be frozen in the game mode, thereby reducing background activities. The game can strive for more resources, guarantee the game environment, and improve the user experience.
请参阅图2,为本发明实施例提供的一种应用冻结方法的实施例流程示意图。本实施例中所描述的应用冻结方法,包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of an embodiment of an application freezing method provided by an embodiment of the present invention. The application freezing method described in this embodiment includes the following steps:
201、在目标游戏处于游戏模式下,判断所述目标游戏是否运行在前台。201. When the target game is in the game mode, determine whether the target game is running in the foreground.
其中,在目标游戏处于游戏模式下,则可以进一步判断目标游戏是否运行在前台,运行在前台的话,说明用户需要对游戏进行操作,或者,用户有对游戏进行操作的意识,当然,运行在前台的游戏,也需要较多的资源,用以维持其游戏环境。Among them, when the target game is in the game mode, it can be further judged whether the target game is running in the foreground. If it is running in the foreground, it means that the user needs to operate the game, or the user has the awareness of operating the game. The game also needs more resources to maintain its game environment.
202、若是,获取运行在后台的N个第三方应用,所述N为正整数。202. If yes, acquire N third-party applications running in the background, where N is a positive integer.
其中,若目标游戏运行在前台,则可以执行获取运行在后台的N个第三方应用的步骤。Wherein, if the target game is running in the foreground, the step of obtaining N third-party applications running in the background may be performed.
可选地,若目标游戏运行在后台,则可以不执行获取运行在后台的N个第三方应用的步骤。Optionally, if the target game is running in the background, the step of acquiring N third-party applications running in the background may not be performed.
203、从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数。203. Determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N.
204、冻结所述M个第三方应用。204. Freeze the M third-party applications.
其中,上述步骤202-步骤204的具体描述可参照图1所描述的应用冻结方法的对应步骤,在此不再赘述。Wherein, for the specific description of the above steps 202 to 204, reference may be made to the corresponding steps of the application freezing method described in FIG. 1 , which will not be repeated here.
可选地,在上述步骤204之后,还可以包括如下步骤:Optionally, after the above step 204, the following steps may also be included:
在所述目标游戏退出游戏模式时,解冻所述M个第三方应用。When the target game exits the game mode, unfreeze the M third-party applications.
其中,目标游戏退出游戏模式,则说明用户不想游戏,此时,可以解冻M个第三方应用。当然,上述解冻所述M个第三方应用,可以按照如下方式实施:Wherein, if the target game exits the game mode, it means that the user does not want to play the game. At this time, the M third-party applications can be unfrozen. Of course, the aforementioned unfreezing of the M third-party applications may be implemented in the following manner:
在预设时间长度后,执行所述解冻所述M个第三方应用的步骤。After a preset period of time, the step of unfreezing the M third-party applications is performed.
其中,上述预设时间长度可以由用户自行设置,或者,系统默认。用户有可能误操作退出游戏模式,因此,有可能还会再次进入游戏模式,因此,可以设置一个时间长度。另一方面,由于长时间处于游戏模式,此刻,针对游戏的性能是最好的,且CPU、电池的话,其温度也有可能较高,因此,设置一个预设时间长度,有利于CPU、电池的温度得以降低,从而,在降温后,CPU性能更好,有利于降低移动终端的功耗以及延长移动终端的寿命。Wherein, the aforementioned preset time length may be set by the user, or the system defaults. The user may exit the game mode by mistake, and therefore may enter the game mode again. Therefore, a time length can be set. On the other hand, due to being in the game mode for a long time, the performance for the game is the best at this moment, and the temperature of the CPU and battery may also be high. Therefore, setting a preset time length is beneficial to the CPU and battery. The temperature is lowered, so that after the temperature is lowered, the performance of the CPU is better, which is beneficial to reducing the power consumption of the mobile terminal and prolonging the service life of the mobile terminal.
可选地,在上述步骤204之后,还可以包括如下步骤:Optionally, after the above step 204, the following steps may also be included:
在所述目标游戏处于后台时,解冻所述M个第三方应用。When the target game is in the background, unfreeze the M third-party applications.
其中,若目标游戏处于后台,则说明用户暂且不玩游戏,或者,想休息,因此,这时候可以解冻M个第三方应用。Wherein, if the target game is in the background, it means that the user does not play the game for the time being, or wants to take a rest. Therefore, the M third-party applications can be unfrozen at this time.
可选地,上述解冻所述M个第三方应用,可以按照如下方式进行操作:Optionally, the aforementioned unfreezing of the M third-party applications may be performed in the following manner:
解冻所述M个第三方应用中的至少一个第三方应用,或者,按照冻结优先级对应的顺序解冻所述M个第三方应用。Unfreeze at least one third-party application among the M third-party applications, or unfreeze the M third-party applications in a sequence corresponding to freezing priorities.
其中,解冻的话,可以一一解冻,毕竟,目标游戏有可能在解冻过程中切换到前台,因此,可以一一解冻,若切换到前台,没解冻完的,可以暂停解冻。或者,按照解冻优先级对应的顺序进行解冻的话,可以保障解冻依次进行。Among them, if you unfreeze, you can unfreeze them one by one. After all, the target game may switch to the foreground during the unfreezing process, so you can unfreeze them one by one. Alternatively, if the unfreezing is performed in the order corresponding to the unfreezing priority, it can be guaranteed that the unfreezing is performed sequentially.
可以看出,上述本发明实施例所描述的应用冻结方法,在目标游戏处于游戏模式下,判断目标游戏是否运行在前台,获取运行在后台的N个第三方应用,N为正整数,从N个第三方应用中确定出待冻结的M个第三方应用,M为不大于N的正整数,冻结M个第三方应用,从而,可以在游戏模式,对运行在后台的一些第三方应用进行冻结,从而,降低了后台活动,游戏可以争取更多的资源,保障了游戏环境,提升了用户体验。It can be seen that, in the application freezing method described in the above-mentioned embodiments of the present invention, when the target game is in the game mode, it is judged whether the target game is running in the foreground, and N third-party applications running in the background are acquired, N is a positive integer, starting from N M third-party applications to be frozen are determined among the third-party applications, M is a positive integer not greater than N, and M third-party applications are frozen, so that some third-party applications running in the background can be frozen in the game mode , Thus, background activities are reduced, the game can strive for more resources, the game environment is guaranteed, and the user experience is improved.
请参阅图3,为本发明实施例提供的一种应用冻结方法的实施例流程示意图。本实施例中所描述的应用冻结方法,包括以下步骤:Please refer to FIG. 3 , which is a schematic flowchart of an embodiment of an application freezing method provided by an embodiment of the present invention. The application freezing method described in this embodiment includes the following steps:
301、在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数。301. When the target game is in the game mode, acquire N third-party applications running in the background, where N is a positive integer.
302、从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数。302. Determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N.
303、冻结所述M个第三方应用。303. Freeze the M third-party applications.
其中,上述步骤301-步骤303的具体描述可参照图1所描述的应用冻结方法的对应步骤,在此不再赘述。Wherein, for the specific description of the above steps 301-303, reference may be made to the corresponding steps of the application freezing method described in FIG. 1 , which will not be repeated here.
304、在所述目标游戏退出游戏模式时,解冻所述M个第三方应用。304. Unfreeze the M third-party applications when the target game exits the game mode.
其中,目标游戏退出游戏模式,则说明用户不想游戏,此时,可以解冻M个第三方应用。Wherein, if the target game exits the game mode, it means that the user does not want to play the game. At this time, the M third-party applications can be unfrozen.
当然,上述解冻所述M个第三方应用,可以按照如下方式实施:Of course, the aforementioned unfreezing of the M third-party applications may be implemented in the following manner:
在预设时间长度后,执行所述解冻所述M个第三方应用的步骤。After a preset period of time, the step of unfreezing the M third-party applications is performed.
其中,上述预设时间长度可以由用户自行设置,或者,系统默认。用户有可能误操作退出游戏模式,因此,有可能还会再次进入游戏模式,因此,可以设置一个时间长度。另一方面,由于长时间处于游戏模式,此刻,针对游戏的性能是最好的,且CPU、电池的话,其温度也有可能较高,因此,设置一个预设时间长度,有利于CPU、电池的温度得以降低,从而,在降温后,CPU性能更好,有利于降低移动终端的功耗以及延长移动终端的寿命。Wherein, the aforementioned preset time length may be set by the user, or the system defaults. The user may exit the game mode by mistake, and therefore may enter the game mode again. Therefore, a time length can be set. On the other hand, due to being in the game mode for a long time, the performance for the game is the best at this moment, and the temperature of the CPU and battery may also be high. Therefore, setting a preset time length is beneficial to the CPU and battery. The temperature is lowered, so that after the temperature is lowered, the performance of the CPU is better, which is beneficial to reducing the power consumption of the mobile terminal and prolonging the service life of the mobile terminal.
可选地,上述解冻所述M个第三方应用,可以按照如下方式进行操作:Optionally, the aforementioned unfreezing of the M third-party applications may be performed in the following manner:
解冻所述M个第三方应用中的至少一个第三方应用,或者,按照冻结优先级对应的顺序解冻所述M个第三方应用。Unfreeze at least one third-party application among the M third-party applications, or unfreeze the M third-party applications in a sequence corresponding to freezing priorities.
其中,解冻的话,可以一一解冻,毕竟,目标游戏有可能在解冻过程中切换到前台,因此,可以一一解冻,若切换到前台,没解冻完的,可以暂停解冻。或者,按照解冻优先级对应的顺序进行解冻的话,可以保障解冻依次进行。Among them, if you unfreeze, you can unfreeze them one by one. After all, the target game may switch to the foreground during the unfreezing process, so you can unfreeze them one by one. Alternatively, if the unfreezing is performed in the order corresponding to the unfreezing priority, it can be guaranteed that the unfreezing is performed sequentially.
可以看出,上述本发明实施例所描述的应用冻结方法,在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,N为正整数,从N个第三方应用中确定出待冻结的M个第三方应用,M为不大于N的正整数,冻结M个第三方应用,在目标游戏退出游戏模式时,解冻M个第三方应用,从而,可以在游戏模式,对运行在后台的一些第三方应用进行冻结,从而,降低了后台活动,游戏可以争取更多的资源,保障了游戏环境,提升了用户体验,当然,在退出游戏模式之后,也可以解冻应用,让被冻结的应用可以正常使用。It can be seen that the application freezing method described in the above-mentioned embodiments of the present invention obtains N third-party applications running in the background when the target game is in the game mode, where N is a positive integer, and determines the number of pending applications from the N third-party applications. Frozen M third-party applications, M is a positive integer not greater than N, freezes M third-party applications, and unfreezes M third-party applications when the target game exits the game mode, so that it can run in the background in the game mode Some third-party applications can be frozen, thereby reducing background activities, the game can strive for more resources, guarantee the game environment, and improve user experience. Of course, after exiting the game mode, you can also unfreeze the application to let the frozen The application can be used normally.
请参阅图4A,图4A是本实施例提供的一种应用冻结装置的结构示意图。该应用冻结装置应用于移动终端,应用冻结装置包括获取单元401、确定单元402和冻结单元403,其中,Please refer to FIG. 4A . FIG. 4A is a schematic structural diagram of an application freezing device provided in this embodiment. The application freezing device is applied to a mobile terminal, and the application freezing device includes an acquisition unit 401, a determination unit 402, and a freezing unit 403, wherein,
获取单元401,用于在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数;An acquisition unit 401, configured to acquire N third-party applications running in the background when the target game is in a game mode, where N is a positive integer;
确定单元402,用于从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数;A determining unit 402, configured to determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N;
冻结单元403,用于冻结所述M个第三方应用。The freezing unit 403 is configured to freeze the M third-party applications.
可选地,如图4B,图4B是图4A所描述的应用冻结装置的获取单元401的具体细节结构,所述获取单元401可包括:第一确定模块4011、第一获取模块4012和第二确定模块4013,具体如下:Optionally, as shown in FIG. 4B , FIG. 4B is a specific detailed structure of the acquisition unit 401 of the application freezing device described in FIG. Determine module 4013, specifically as follows:
第一确定模块4011,用于确定与所述目标游戏对应的P个第三方应用,所述P为不小于所述N的整数;The first determining module 4011 is configured to determine P third-party applications corresponding to the target game, where P is an integer not less than N;
第一获取模块4012,用于获取运行在后台的Q个第三方应用,所述Q为不小于所述N的整数;The first acquiring module 4012 is configured to acquire Q third-party applications running in the background, where the Q is an integer not less than the N;
第二确定模块4013,用于确定所述P个第三方应用与所述Q个第三方应用之间的交集,得到所述N个第三方应用。The second determining module 4013 is configured to determine intersections between the P third-party applications and the Q third-party applications to obtain the N third-party applications.
可选地,如图4C,图4C是图4A所描述的应用冻结装置的冻结单元403的具体细节结构,所述冻结单元403可包括:第三确定模块4031和冻结模块4032,具体如下:Optionally, as shown in FIG. 4C, FIG. 4C is a specific detailed structure of the freezing unit 403 of the application freezing device described in FIG. 4A, and the freezing unit 403 may include: a third determining module 4031 and a freezing module 4032, specifically as follows:
第三确定模块4031,用于确定所述M个第三方应用中每一应用的后台活动频率,得到M个后台活动频率值;以及根据所述M个后台活动频率值确定所述M个第三方应用的冻结优先级;The third determining module 4031 is configured to determine the background activity frequency of each application in the M third-party applications, and obtain M background activity frequency values; and determine the M third-party applications according to the M background activity frequency values the freeze priority of the application;
冻结模块4032,用于根据所述冻结优先级冻结所述M个第三方应用。The freezing module 4032 is configured to freeze the M third-party applications according to the freezing priority.
可选地,如图4D,图4D是图4A所描述的应用冻结装置的确定单元402的具体细节结构,所述确定单元402可包括:第二获取模块4021和第四确定模块4022,具体如下:Optionally, as shown in FIG. 4D, FIG. 4D is a specific detailed structure of the determining unit 402 of the application freezing device described in FIG. 4A, and the determining unit 402 may include: a second acquiring module 4021 and a fourth determining module 4022, specifically as follows :
第二获取模块4021,用于获取当前时间;The second obtaining module 4021 is used to obtain the current time;
第四确定模块4022,用于确定与所述当前时间对应的预先设置的X个第三方应用,所述X为大于所述M的正整数;以及确定所述X个第三方应用与所述N个第三方应用之间的交集,得到待冻结的所述M个第三方应用。The fourth determination module 4022 is configured to determine the preset X third-party applications corresponding to the current time, where X is a positive integer greater than the M; and determine the relationship between the X third-party applications and the N The intersection between the third-party applications to obtain the M third-party applications to be frozen.
可选地,如图4E,图4E为图4A所描述的应用冻结装置的变型结构,其与图4A相比较,还可包括:判断单元404,具体如下:Optionally, as shown in FIG. 4E, FIG. 4E is a modified structure of the application freezing device described in FIG. 4A. Compared with FIG. 4A, it may further include: a judging unit 404, specifically as follows:
判断单元404,用于判断所述目标游戏是否运行在前台,若是,由所述获取单元401执行所述获取运行在后台的N个第三方应用的步骤。The judging unit 404 is configured to judge whether the target game is running in the foreground, and if so, the acquiring unit 401 executes the step of acquiring N third-party applications running in the background.
可选地,如图4F,图4F为图4A所描述的应用冻结装置的变型结构,其与图4A相比较,还可包括:解冻单元405,具体如下:Optionally, as shown in FIG. 4F, FIG. 4F is a modified structure of the application freezing device described in FIG. 4A. Compared with FIG. 4A, it may further include: a thawing unit 405, specifically as follows:
解冻单元405,用于在所述目标游戏退出游戏模式时,解冻所述M个第三方应用。The unfreezing unit 405 is configured to unfreeze the M third-party applications when the target game exits the game mode.
可以看出,上述本发明实施例所描述的应用冻结装置,在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,N为正整数,从N个第三方应用中确定出待冻结的M个第三方应用,M为不大于N的正整数,冻结M个第三方应用,从而,可以在游戏模式,对运行在后台的一些第三方应用进行冻结,从而,降低了后台活动,游戏可以争取更多的资源,保障了游戏环境,提升了用户体验。It can be seen that the application freezing device described in the above-mentioned embodiments of the present invention obtains N third-party applications running in the background when the target game is in the game mode, where N is a positive integer, and determines the number of applications to be processed from the N third-party applications. The M third-party applications that are frozen, M is a positive integer not greater than N, and the M third-party applications are frozen, so that some third-party applications running in the background can be frozen in the game mode, thereby reducing background activities. The game can strive for more resources, guarantee the game environment, and improve the user experience.
需要注意的是,本发明装置实施例所描述的应用冻结装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the application freezing device described in the device embodiment of the present invention is presented in the form of a functional unit. The term "unit" used here should be understood as the broadest meaning possible. The object used to realize the functions described by each "unit" can be, for example, an integrated circuit ASIC, a single circuit, used to execute one or more software or firmware Processors (shared, dedicated, or chipsets) and memories of programs, combinational logic circuits, and/or other suitable components that provide the functions described above.
举例来说,上述获取单元401,用于在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用的功能可以由图5所示的移动终端来实现,具体可以通过处理器3000通过调用存储器4000中的可执行程序代码,在游戏模式下,在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用。For example, the function of acquiring unit 401 described above for acquiring N third-party applications running in the background when the target game is in the game mode can be implemented by the mobile terminal shown in FIG. 5 , specifically through the processor 3000 through The executable program code in the memory 4000 is called, and in the game mode, N third-party applications running in the background are obtained when the target game is in the game mode.
请参阅图5,为本发明实施例提供的一种移动终端的实施例结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Please refer to FIG. 5 , which is a schematic structural diagram of an embodiment of a mobile terminal provided by an embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and memory 4000, the above-mentioned input device 1000, output device 2000, processor 3000 and The memory 4000 is connected via a bus 5000 .
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。Wherein, the above-mentioned input device 1000 may specifically be a touch panel, a physical button or a mouse.
上述输出设备2000具体可为显示屏。The aforementioned output device 2000 may specifically be a display screen.
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatilememory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above-mentioned memory 4000 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. The above-mentioned memory 4000 is used to store a set of program codes, and the above-mentioned input device 1000, output device 2000 and processor 3000 are used to call the program codes stored in the memory 4000, and perform the following operations:
在目标游戏处于游戏模式下,获取运行在后台的N个第三方应用,所述N为正整数;When the target game is in game mode, obtain N third-party applications running in the background, where N is a positive integer;
从所述N个第三方应用中确定出待冻结的M个第三方应用,所述M为不大于所述N的正整数;Determine M third-party applications to be frozen from the N third-party applications, where M is a positive integer not greater than N;
冻结所述M个第三方应用。The M third-party applications are frozen.
可选地,上述处理器3000获取运行在后台的N个第三方应用,包括:Optionally, the processor 3000 acquires N third-party applications running in the background, including:
确定与所述目标游戏对应的P个第三方应用,所述P为不小于所述N的整数;Determine P third-party applications corresponding to the target game, where P is an integer not less than N;
获取运行在后台的Q个第三方应用,所述Q为不小于所述N的整数;Obtain Q third-party applications running in the background, where the Q is an integer not less than the N;
确定所述P个第三方应用与所述Q个第三方应用之间的交集,得到所述N个第三方应用。Determine the intersection between the P third-party applications and the Q third-party applications to obtain the N third-party applications.
可选地,上述处理器3000冻结所述M个第三方应用,包括:Optionally, the processor 3000 freezing the M third-party applications includes:
确定所述M个第三方应用中每一应用的后台活动频率,得到M个后台活动频率值;Determine the background activity frequency of each application in the M third-party applications to obtain M background activity frequency values;
根据所述M个后台活动频率值确定所述M个第三方应用的冻结优先级;determining the freezing priorities of the M third-party applications according to the M background activity frequency values;
根据所述冻结优先级冻结所述M个第三方应用。Freezing the M third-party applications according to the freezing priority.
可选地,上述处理器3000从所述N个第三方应用中确定出待冻结的M个第三方应用,包括:Optionally, the processor 3000 determines M third-party applications to be frozen from the N third-party applications, including:
获取当前时间;Get the current time;
确定与所述当前时间对应的预先设置的X个第三方应用,所述X为大于所述M的正整数;Determine X preset third-party applications corresponding to the current time, where X is a positive integer greater than M;
确定所述X个第三方应用与所述N个第三方应用之间的交集,得到待冻结的所述M个第三方应用。Determine intersections between the X third-party applications and the N third-party applications to obtain the M third-party applications to be frozen.
可选地,上述处理器3000,还具体用于:Optionally, the above-mentioned processor 3000 is also specifically used for:
判断所述目标游戏是否运行在前台,若是,执行所述获取运行在后台的N个第三方应用的步骤。Determine whether the target game is running in the foreground, and if so, perform the step of acquiring N third-party applications running in the background.
可选地,上述处理器3000,还具体用于:Optionally, the above-mentioned processor 3000 is also specifically used for:
在所述目标游戏退出游戏模式时,解冻所述M个第三方应用。When the target game exits the game mode, unfreeze the M third-party applications.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种应用冻结方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute any part of the application freezing method as described in the above method embodiments or all steps.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种应用冻结方法的部分或全部步骤。An embodiment of the present invention also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the method described in the above method embodiments. Either part or all of the steps of the freeze method are applied.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented not only in the form of hardware, but also in the form of software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated units may be stored in a computer-readable memory if implemented in the form of a software program module and sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710985958.4A CN107832128A (en) | 2017-10-20 | 2017-10-20 | Application freezing methods and related products |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710985958.4A CN107832128A (en) | 2017-10-20 | 2017-10-20 | Application freezing methods and related products |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107832128A true CN107832128A (en) | 2018-03-23 |
Family
ID=61648681
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710985958.4A Pending CN107832128A (en) | 2017-10-20 | 2017-10-20 | Application freezing methods and related products |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107832128A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008085386A1 (en) * | 2007-01-07 | 2008-07-17 | Apple Inc. | Memory management methods and systems |
| CN104331601A (en) * | 2014-09-30 | 2015-02-04 | 珠海市君天电子科技有限公司 | Method and device for optimizing game scenes |
| CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
| CN106020964A (en) * | 2016-06-30 | 2016-10-12 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for freezing application, and terminal |
| CN106126305A (en) * | 2016-07-05 | 2016-11-16 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application freezing method, device and mobile terminal |
| CN106959874A (en) * | 2017-03-21 | 2017-07-18 | 联想(北京)有限公司 | The electronic equipment of application management method and application this method based on operating system |
-
2017
- 2017-10-20 CN CN201710985958.4A patent/CN107832128A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2008085386A1 (en) * | 2007-01-07 | 2008-07-17 | Apple Inc. | Memory management methods and systems |
| CN104331601A (en) * | 2014-09-30 | 2015-02-04 | 珠海市君天电子科技有限公司 | Method and device for optimizing game scenes |
| CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
| CN106020964A (en) * | 2016-06-30 | 2016-10-12 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for freezing application, and terminal |
| CN106126305A (en) * | 2016-07-05 | 2016-11-16 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application freezing method, device and mobile terminal |
| CN106959874A (en) * | 2017-03-21 | 2017-07-18 | 联想(北京)有限公司 | The electronic equipment of application management method and application this method based on operating system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018103484A1 (en) | Data processing method, apparatus and system for live broadcast page | |
| US10474507B2 (en) | Terminal application process management method and apparatus | |
| CN108710515B (en) | Application preloading method, device, storage medium and terminal | |
| CN107734616A (en) | Application closing method, device, storage medium and electronic device | |
| CN106776038B (en) | Hot application resource allocation method and mobile terminal | |
| CN107544842A (en) | Application program processing method and device, computer equipment, storage medium | |
| CN106776036A (en) | A resource allocation method and device | |
| CN107562539A (en) | Applied program processing method and device, computer equipment, storage medium | |
| CN108388458A (en) | Message processing method and related products | |
| CN107450952B (en) | Application control method and device, storage medium and electronic equipment | |
| CN106534288A (en) | Data transmission method and mobile terminal | |
| CN107729062A (en) | Application freezing methods and related products | |
| CN107890667A (en) | Game application program control method and device | |
| CN107832127B (en) | Application control methods and related products | |
| CN106231575A (en) | Method for processing short messages and device | |
| CN111273955A (en) | Thermal restoration plug-in optimization method and device, storage medium and electronic equipment | |
| CN107807849A (en) | Application freezing methods and related products | |
| CN107272991B (en) | Information display method and related product | |
| CN108762983A (en) | Multi-medium data restoration methods and device | |
| CN107491349A (en) | Application program processing method and device, computer equipment, storage medium | |
| WO2018161589A1 (en) | Control method, device, storage medium, and electronic apparatus for broadcast sending | |
| CN107679870A (en) | Brush amount resource determining method and device | |
| CN106686428A (en) | A video playback method and device | |
| CN107832128A (en) | Application freezing methods and related products | |
| CN106933684A (en) | A method, device and mobile terminal for controlling a broadcast receiver |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |