CN107807849A - Using freezing method and related product - Google Patents

Using freezing method and related product Download PDF

Info

Publication number
CN107807849A
CN107807849A CN201710986018.7A CN201710986018A CN107807849A CN 107807849 A CN107807849 A CN 107807849A CN 201710986018 A CN201710986018 A CN 201710986018A CN 107807849 A CN107807849 A CN 107807849A
Authority
CN
China
Prior art keywords
freezing
freeze
application
game
parameterses
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
Application number
CN201710986018.7A
Other languages
Chinese (zh)
Inventor
林志泳
刘美
莫瑞宏
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710986018.7A priority Critical patent/CN107807849A/en
Publication of CN107807849A publication Critical patent/CN107807849A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The embodiment of the invention discloses one kind to apply freezing method and Related product, and method includes:In the case where target game is in game mode, current freezing mode is obtained;It is determined that freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include the application identities collection for waiting to freeze application and freeze set of strategies;Freeze operation is performed according to the freezing parameterses.The embodiment of the present invention according to different freezing modes, and can be freezed strategy and some third-party applications for operating in backstage freezed in game mode, so as to reduce background activity, game can strive for more resources, game environment has been ensured, has improved Consumer's Experience.

Description

Using freezing method and Related product
Technical field
The present invention relates to technical field of mobile terminals, and in particular to one kind applies freezing method and Related product.
Background technology
With a large amount of popularization and applications of mobile terminal (mobile phone, tablet personal computer etc.), the application that mobile terminal can be supported is got over Come more, function is stronger and stronger, and mobile terminal develops towards variation, personalized direction, and turning into can not in user's life The appliance and electronic lacked.
At present, game uses a kind of important user's scene with game fighting mobile terminal.User for Speed when game uses is paid much attention to performance, if user is using game constantly, game rate and performance, and network State can not obtain the guarantee of abundant resource, then and user such as will experience interim card, go offline at the bad experience, such as:Game Key scenes are stuck, go offline, situations such as causing war failure, battle failure, wherein, it is important that a reason be, a lot Tripartite's application may carry out some activities from the background when user is using scene of game, rob and account for the money that foreground game uses Source, making user, game resource cannot be ensured sufficiently when playing game, if for example, in download, or cached from the background Operation, it will committed memory, cause foreground game memory resource allocation deficiency, cause interim card of playing, in another example, game is in itself not Disconnected caching, causes internal memory fewer and fewer, and low memory causes interim card to distribute, and therefore, how to realize and reduces asking for background activity Inscribe urgently to be resolved hurrily.
The content of the invention
The embodiments of the invention provide one kind to apply freezing method and Related product, it is possible to reduce background activity, to reach Ensure the purpose of game environment.
In a first aspect, the embodiment of the present invention, which provides one kind, applies freezing method, including:
In the case where target game is in game mode, current freezing mode is obtained;
It is determined that freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include the application for waiting to freeze application Identification sets and freeze set of strategies;
Freeze operation is performed according to the freezing parameterses.
Second aspect, the embodiments of the invention provide one kind to apply freezing plant, including:
Acquiring unit, under being in game mode in target game, obtain current freezing mode;
Determining unit, for determining freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses are included and treated Freeze the application identities collection of application and freeze set of strategies;
Freezing unit, for performing freeze operation according to the freezing parameterses.
The third aspect, the embodiments of the invention provide a kind of mobile terminal, including:Processor and memory;And one Or multiple programs, one or more of programs are stored in the memory, and it is configured to be held by the processor OK, described program includes being used for such as the instruction of the part or all of step described in first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, wherein, it is described computer-readable Storage medium is used to store computer program, wherein, the computer program causes computer to perform such as the embodiment of the present invention the The instruction of part or all of step described in one side.
5th aspect, the embodiments of the invention provide a kind of computer program product, wherein, the computer program product Non-transient computer-readable recording medium including storing computer program, the computer program are operable to make calculating Machine is performed such as the part or all of step described in first aspect of the embodiment of the present invention.The computer program product can be one Individual software installation bag.
Implement the embodiment of the present invention, have the advantages that:
As can be seen that freezing method and Related product are applied described by the embodiments of the present invention, at target game Under game mode, current freezing mode is obtained, it is determined that freezing parameterses corresponding with current defrosting pattern, freezing parameterses are included and treated Freeze the application identities collection of application and freeze set of strategies, freeze operation is performed according to freezing parameterses, it is thus possible in game mould Formula, according to different freezing modes, and freeze strategy and some third-party applications for operating in backstage are freezed, so as to, Background activity is reduced, game can strive for more resources, ensure game environment, improve Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet using freezing method disclosed in the embodiment of the present invention;
Fig. 2 is another schematic flow sheet for applying freezing method disclosed in the embodiment of the present invention;
Fig. 3 is another schematic flow sheet for applying freezing method disclosed in the embodiment of the present invention;
Fig. 4 A are a kind of structural representations using freezing plant provided in an embodiment of the present invention;
Fig. 4 B are the structural representations of the determining unit using freezing plant described by Fig. 4 A provided in an embodiment of the present invention Figure;
Fig. 4 C are the structural representations of the freezing unit using freezing plant described by Fig. 4 A provided in an embodiment of the present invention Figure;
Fig. 4 D are the structural representations of the acquiring unit using freezing plant described by Fig. 4 A provided in an embodiment of the present invention Figure;
Fig. 4 E are a kind of another structural representations using freezing plant provided in an embodiment of the present invention;
Fig. 4 F are a kind of another structural representations using freezing plant provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide one kind to apply freezing method and Related product, it is possible to reduce background activity, to reach Ensure the purpose of game environment.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing etc. are to be used to distinguish Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover non-exclusive include.Such as process, method, system, product or the equipment for containing series of steps or unit do not have The step of being defined in the step of having listed or unit, but alternatively also including not listing or unit, or alternatively also wrap Include for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present invention can include the various handheld devices with radio communication function, Mobile unit, wearable device, computing device or other processing equipments for being connected to radio modem, and various forms User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.
In concrete application, because third-party application operates in backstage, in the process of running, cached caused by third-party application Data, in addition, can also be communicated with server, take certain Internet resources.For example, caching number caused by Video Applications B According to if the third-party application of backstage, it is also possible to upgraded, the operation such as PUSH message, and then, it can also produce data cached.It is logical In the case of often, as long as third-party application is not turned off, it can operate in backstage, so as to constantly produce data cached.In this way, this Inventive embodiments provide one kind and apply freezing method, including:
In the case where target game is in game mode, current freezing mode is obtained;
It is determined that freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include the application for waiting to freeze application Identification sets and freeze set of strategies;
Freeze operation is performed according to the freezing parameterses.
As can be seen that applying freezing method described by the embodiments of the present invention, game mode is in target game Under, current freezing mode is obtained, it is determined that freezing parameterses corresponding with current defrosting pattern, freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies, freeze operation is performed according to freezing parameterses, it is thus possible in game mode, according to difference Freezing mode, and freeze strategy and some third-party applications for operating in backstage freezed, so as to which it is living to reduce backstage Dynamic, game can strive for more resources, ensure game environment, improve Consumer's Experience.
Freezing method is applied to provided in an embodiment of the present invention below, and implements this and is carried out using the device of freezing method Description:
Referring to Fig. 1, it is a kind of embodiment schematic flow sheet using freezing method provided in an embodiment of the present invention.This reality Apply and apply freezing method described in example, it comprises the following steps:
101st, in the case where target game is in game mode, current freezing mode is obtained.
Wherein, target game can voluntarily be set or system default by user.Certainly, target game can be to operate in The game on foreground.Above-mentioned target game can also be online game or single-play game, and if online game, Internet resources are needed Ask more, it needs a good network environment, for example, whether network is unimpeded, and whether signal is stronger etc., and single-play game If, it has certain demand to cpu performance, for example, whether memory source meets, etc..Above-mentioned freezing mode can be tight Lattice pattern, or, general mode, it is to freeze on a large scale to be interpreted as rigorous model, and general mode is that small range is freezed, example Such as, rigorous model can be to freeze A third-party application, and general mode can be to freeze B application, and A is more than B, or, A Individual third-party application includes B application.
Alternatively, above-mentioned game mode can start game, into this process of game environment, or, game process In, do not limit herein.
Alternatively, in above-mentioned steps 101, current freezing mode is obtained, it may include following steps:
A1, obtain CPU power consumption corresponding to the target game and user's custom parameter;
A2, parameter is accustomed to according to the CPU power consumption and the user determines the current freezing mode.
Wherein, target game is under game mode, can produce certain CPU power consumption, and the CPU power consumption in above-mentioned A1 can lead to Cross historical record to obtain, it can be following at least one that user, which is accustomed to parameter,:Play frame number, CPU memory ranges, CPU work masters Frequency etc., user are accustomed to parameter and user using the use habit of mobile terminal can analyze by artificial intelligence mode Arrive, CPU power consumption can be pre-set, user is accustomed to mapping relations between parameter and freezing mode, and then, according to CPU power consumption, The mapping relations that user is accustomed between parameter and freezing mode determine that CPU power consumption corresponding with target game and user are accustomed to joining Current freezing mode corresponding to number.
Alternatively, in above-mentioned steps 101, current freezing mode is obtained, it may include following steps:
B1, obtain current time;
B2, determine freezing mode corresponding with the current time as the current freezing mode.
Wherein it is possible to obtain current time by the timer of mobile terminal, different time can correspond to different freeze Pattern, after all in different time, the situation of running background and the performance of mobile terminal are also different, or even network performance also can There is difference, for example, a public network, the people of access is more, and its network speed is with regard to slow, in this way, different time sections, right The network rate answered is different, then, it is necessary to which the freezing mode used also can be different.Therefore, can be advance in mobile terminal Mapping relations between time and freezing mode are set, and then, can be true according to the mapping relations between time and freezing mode Determine freezing mode corresponding to current time.
Alternatively, in above-mentioned steps 101, current freezing mode is obtained, it may include following steps:
C1, obtain current location;
C2, determine freezing mode corresponding with the current location as the current freezing mode.
Wherein, mobile terminal can be determined by global positioning system (Global Positioning System, GPS) Current location, or, current freezing mode can be determined by Wireless Fidelity (Wireless-Fidelity, Wi-Fi) mode. If different positions, network performance is also different, for example, the network with company of family, certainly, can have certain difference Not, in this way, a rational freezing mode can be determined for customer location.Position can be prestored in mobile terminal with freezing Mapping relations between knot pattern, and then, current location pair can be determined according to the mapping relations between position and freezing mode The freezing mode answered.Under normal circumstances, position, corresponding different environment, i.e. environment can determine internetworking to a certain extent Can, in this way, in different environments, using different freezing modes, in this way, being adaptive to environment.
102nd, freezing parameterses corresponding with the currently defrosting pattern are determined, the freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies.
Wherein, freezing parameterses can include following at least one:When freezing the application identities of application, freezing strategy, freeze Between, freeze application numbers etc., above-mentioned application identities can be following at least one:Apply Names, version number, application icon etc. Deng.The above-mentioned strategy that freezes can include following at least one:All freeze, partly freeze, freezing duration, freezing priority etc. Deng, wherein, all freeze, can be understood as forbidding in running background, partly freeze to can be understood as freezing some operation, example Such as, updating operation, the duration that duration can be understood as freezing is freezed, for example, freeze 5 minutes, if freezing priority, Ke Yili Xie Wei, freeze order, for example, freezing at first.
Alternatively, the mapping relations between freezing mode and freezing parameterses can be prestored in mobile terminal, and then, can To determine the corresponding freezing parameterses of current freezing mode according to the mapping relations between freezing mode and freezing parameterses.
Alternatively, in above-mentioned steps 102, it is determined that freezing parameterses corresponding with the currently defrosting pattern, it may include as follows Step:
21st, N number of third-party application of running background is obtained, the N is positive integer;
22nd, M third-party application corresponding with the currently defrosting pattern is obtained, the M is positive integer;
23rd, the common factor between N number of third-party application and the M third-party application is determined, obtaining P third party should With the P is the positive integer no more than the N, the M;
24th, determination is corresponding with the P third-party application freezes strategy, obtains P and freezes strategy;
25th, the application identities of the P third-party application and the P are freezed into strategy as the freezing parameterses.
Wherein, freezing mode can be prestored in mobile terminal and waits to freeze the mapping relations using between collection, i.e., not Same freezing mode can freeze different applications, in this way, according to freezing mode and can wait to freeze the mapping using between collection Relation determines M third-party application corresponding to current defrosting pattern, and M is positive integer, in addition, obtaining just in the N number of of running background Third-party application, N are positive integer, there is a common factor between above-mentioned N number of third-party application and M third-party application, obtain P Individual third-party application, it is the third-party application for needing finally to be frozen if this part third-party application, P is no more than N, M Positive integer.Each third-party application in P third-party application can correspond to one and freeze strategy, in this way, P jelly can be obtained Knot strategy, in specific freezing process, corresponding application can be freezed according to strategy is freezed.
103rd, freeze operation is performed according to the freezing parameterses.
Wherein, due to including application identities collection in freezing parameterses, then can determine to wait to thaw by the application identities collection Using, so can according to freeze strategy treat freeze using carry out freeze operation.So, it is possible to reduce backstage third-party application Activity, more memory sources and Internet resources are striven for for game, have maintained good game environment, to a certain extent Reach the purpose that game accelerates, improve Consumer's Experience.
Alternatively, in above-mentioned steps 103, application identities collection includes multiple application identities;Performed according to the freezing parameterses Freeze operation, it may include following steps:
31st, the background activity frequency of multiple applications corresponding to the multiple application identities is obtained, obtains multiple background activities Frequency values;
32nd, priority is freezed according to what the multiple background activity frequency values determined the multiple application;
33rd, freeze priority according to and the set of strategies that freezes freezes to the multiple application.
Wherein, above-mentioned multiple application identities can correspond to multiple applications, certainly, each apply if running background, A background activity frequency can be corresponded to, background activity frequency can be understood as time to be communicated in the unit interval with server Number, in this way, multiple background activity frequency values can be obtained, and then, multiple answer can be determined according to multiple background activity frequency values Freeze priority, for example, background activity frequency is high, then can preferentially freeze, background activity frequency is low, then can freeze later Knot, in this way, can freeze to multiple applications according to freezing priority and freeze set of strategies.
Alternatively, after above-mentioned steps 103, can also comprise the following steps:
When the target game exits game mode, thaw the M third-party application.
Wherein, target game exits game mode, then illustrates that user is not desired to play, at this point it is possible to which M third party of thawing should With.Certainly, the above-mentioned defrosting M third-party application, can implement as follows:
After predetermined time period, perform it is described defrosting the M third-party application the step of.
Wherein, above-mentioned predetermined time period can voluntarily be set by user, or, system default.User is possible to grasp by mistake Game mode is exited, therefore, it is possible to can also be again introduced into game mode, therefore, a time span can be set.It is another Aspect, because long-time is in game mode, this moment, the performance for game is best, and if CPU, battery, its temperature It is also possible to higher, therefore, a predetermined time period is set, is advantageous to CPU, the temperature of battery is minimized, so as to drop Wen Hou, cpu performance is more preferable, advantageously reduces the power consumption of mobile terminal and extends the life-span of mobile terminal.
Alternatively, after above-mentioned steps 103, can also comprise the following steps:
When the target game is in backstage, thaw the M third-party application.
Wherein, if target game is in backstage, illustrate that user does not play game for the time being, or, want to rest, therefore, at this moment Wait the M third-party application that can thaw.
Alternatively, the above-mentioned defrosting M third-party application, can be operated as follows:
At least one third-party application to thaw in the M third-party application, or, according to freezing corresponding to priority Sequentially thaw the M third-party application.
Wherein, if defrosting, can thaw one by one, after all, target game is possible to be switched to foreground in course of defrosting, Therefore, it can one by one thaw, if being switched to foreground, not thaw, defrosting can be suspended.Or according to defrosting priority pair If the order answered is thawed, it can ensure that defrosting is carried out successively.
As can be seen that applying freezing method described by the embodiments of the present invention, game mode is in target game Under, current freezing mode is obtained, it is determined that freezing parameterses corresponding with current defrosting pattern, freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies, freeze operation is performed according to freezing parameterses, it is thus possible in game mode, according to difference Freezing mode, and freeze strategy and some third-party applications for operating in backstage freezed, so as to which it is living to reduce backstage Dynamic, game can strive for more resources, ensure game environment, improve Consumer's Experience.
Referring to Fig. 2, it is a kind of embodiment schematic flow sheet using freezing method provided in an embodiment of the present invention.This reality Apply and apply freezing method described in example, comprise the following steps:
201st, in the case where target game is in game mode, judge whether the target game operates in foreground.
Wherein, in the case where target game is in game mode, then it can determine whether target game operates in foreground, If operating in foreground, illustrate that user's needs operate to game, or, user has the consciousness operated to game, when So, the game on foreground is operated in, it is also desirable to more resource, to maintain its game environment.
202nd, if so, obtaining current freezing mode.
Wherein, if target game operates in foreground, the step of obtaining current freezing mode can be performed.
Alternatively, if target game operates in backstage, the step of obtaining current freezing mode can not be performed.
203rd, freezing parameterses corresponding with the currently defrosting pattern are determined, the freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies.
204th, freeze operation is performed according to the freezing parameterses.
Wherein, the specific descriptions of above-mentioned steps 202- steps 204 can refer to the correspondence using freezing method described by Fig. 1 Step, it will not be repeated here.
As can be seen that applying freezing method described by the embodiments of the present invention, game mode is in target game Under, judge whether target game operates in foreground, if so, current freezing mode is obtained, it is determined that corresponding with current defrosting pattern Freezing parameterses, freezing parameterses include the application identities collection for waiting to freeze application and freeze set of strategies, performed and freezed according to freezing parameterses Operation, it is thus possible in game mode, according to different freezing modes, and freeze strategy to operate in backstage some the Tripartite's application is freezed, so as to reduce background activity, game can strive for more resources, ensure game environment, carry Consumer's Experience is risen.
Referring to Fig. 3, it is a kind of embodiment schematic flow sheet using freezing method provided in an embodiment of the present invention.This reality Apply and apply freezing method described in example, comprise the following steps:
301st, in the case where target game is in game mode, current freezing mode is obtained.
302nd, freezing parameterses corresponding with the currently defrosting pattern are determined, the freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies.
303rd, freeze operation is performed according to the freezing parameterses.
Wherein, the specific descriptions of above-mentioned steps 301- steps 303 can refer to the correspondence using freezing method described by Fig. 1 Step, it will not be repeated here.
304th, when the target game exits game mode, applied corresponding to the freeze operation that thaws.
Wherein, target game exits game mode, then illustrates that user is not desired to play, at this point it is possible to the freeze operation pair that thaws The application answered.Certainly, apply, can implement as follows corresponding to above-mentioned defrosting freeze operation:
After predetermined time period, the step of being applied corresponding to the freeze operation is performed.
Wherein, above-mentioned predetermined time period can voluntarily be set by user, or, system default.User is possible to grasp by mistake Game mode is exited, therefore, it is possible to can also be again introduced into game mode, therefore, a time span can be set.It is another Aspect, because long-time is in game mode, this moment, the performance for game is best, and if CPU, battery, its temperature It is also possible to higher, therefore, a predetermined time period is set, is advantageous to CPU, the temperature of battery is minimized, so as to drop Wen Hou, cpu performance is more preferable, advantageously reduces the power consumption of mobile terminal and extends the life-span of mobile terminal.
Alternatively, after above-mentioned steps 103, can also comprise the following steps:
When the target game is in backstage, applied corresponding to defrosting freeze operation.
Wherein, if target game is in backstage, illustrate that user does not play game for the time being, or, want to rest, therefore, at this moment Time can thaw to be applied corresponding to freeze operation.
Alternatively, apply, can be operated as follows corresponding to above-mentioned defrosting freeze operation:
At least one third-party application in being applied corresponding to defrosting freeze operation, or, it is corresponding according to priority is freezed Order defrosting freeze operation corresponding to apply.
Wherein, if defrosting, can thaw one by one, after all, target game is possible to be switched to foreground in course of defrosting, Therefore, it can one by one thaw, if being switched to foreground, not thaw, defrosting can be suspended.Or according to defrosting priority pair If the order answered is thawed, it can ensure that defrosting is carried out successively.
As can be seen that applying freezing method described by the embodiments of the present invention, game mode is in target game Under, current freezing mode is obtained, it is determined that freezing parameterses corresponding with current defrosting pattern, freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies, freeze operation is performed according to freezing parameterses, when target game exits game mode, thaw Applied corresponding to freeze operation.It is thus possible in game mode, according to different freezing modes, and freeze strategy to operation Some third-party applications on backstage are freezed, so as to reduce background activity, game can strive for more resources, protect Hinder game environment, improved Consumer's Experience, defrosting operation can also be carried out after game mode is exited, it is ensured that other Frozen application can be updated from the background.
Fig. 4 A are referred to, Fig. 4 A are a kind of structural representations using freezing plant that the present embodiment provides.The application is frozen Knot device is applied to mobile terminal, includes using freezing plant:Acquiring unit 401, determining unit 402 and freezing unit 403, its In,
Acquiring unit 401, under being in game mode in target game, obtain current freezing mode;
Determining unit 402, for determining freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include Wait to freeze the application identities collection of application and freeze set of strategies;
Freezing unit 403, for performing freeze operation according to the freezing parameterses.
Alternatively, if Fig. 4 B, Fig. 4 B are the detail knots of the freezing unit 402 using freezing plant described by Fig. 4 A Structure, the determining unit 402 may include:First acquisition module 4021 and the first determining module 4022, it is specific as follows:
First acquisition module 4021, for obtaining N number of third-party application of running background, the N is positive integer;And obtain M third-party application corresponding with the currently defrosting pattern is taken, the M is positive integer;
First determining module 4022, for determining the friendship between N number of third-party application and the M third-party application Collection, obtains P third-party application, and the P is the positive integer no more than the N, the M;It is determined that with the P third-party application It is corresponding to freeze strategy, obtain P and freeze strategy;And the application identities of the P third-party application and described P are frozen Knot strategy is used as the freezing parameterses.
Alternatively, the application identities collection includes multiple application identities;Such as Fig. 4 C, Fig. 4 C are that the application described by Fig. 4 A is frozen The detail structure of the freezing unit 403 of device is tied, the freezing unit 403 may include:Second acquisition module 4031, second Determining module 4032 and freeze module 4033, it is specific as follows:
Second acquisition module 4031, for obtaining the background activity frequency of multiple applications corresponding to the multiple application identities Rate, obtain multiple background activity frequency values;
Second determining module 4032, for determining freezing for the multiple application according to the multiple background activity frequency values Priority;
Freeze module 4033, for freezing priority and the set of strategies that freezes enters to the multiple application according to Row freezes.
Alternatively, if Fig. 4 D, Fig. 4 D are the detail knots of the acquiring unit 401 using freezing plant described by Fig. 4 A Structure, the acquiring unit 401 may include:3rd acquisition module 4011 and the 3rd determining module 4012, it is specific as follows:
3rd acquisition module 4011, it is accustomed to parameter for obtaining CPU power consumption corresponding to the target game and user;
3rd determining module 4012, the current jelly is determined for being accustomed to parameter according to the CPU power consumption and the user Knot pattern.
Alternatively, such as Fig. 4 E, modification structures using freezing plant of Fig. 4 E described by Fig. 4 A, it is compared with Fig. 4 A Compared with may also include:Judging unit 404, it is specific as follows:
Judging unit 404, for judging whether the target game operates in foreground, if so, being held by the acquiring unit The step of row acquisition current freezing mode.
Alternatively, such as Fig. 4 F, modification structures using freezing plant of Fig. 4 F described by Fig. 4 A, it is compared with Fig. 4 A Compared with may also include:Defrosting unit 405, it is specific as follows:
Defrosting unit 405, for being answered corresponding to the freeze operation that when the target game exits game mode, thaws With.
As can be seen that applying freezing plant described by the embodiments of the present invention, game mode is in target game Under, current freezing mode is obtained, it is determined that freezing parameterses corresponding with current defrosting pattern, freezing parameterses, which include, to be waited to freeze application Application identities collection and freeze set of strategies, freeze operation is performed according to freezing parameterses, it is thus possible in game mode, according to difference Freezing mode, and freeze strategy and some third-party applications for operating in backstage freezed, so as to which it is living to reduce backstage Dynamic, game can strive for more resources, ensure game environment, improve Consumer's Experience.
It should be noted that described by apparatus of the present invention embodiment being to be in the form of functional unit using freezing plant It is existing.Term " unit " used herein above should be understood to implication as most wide as possible, for realizing that each " unit " is described The object of function for example can be integrated circuit ASIC, single circuit, for performing one or more softwares or firmware program Its of above-mentioned function is realized in processor (shared, special or chipset) and memory, combinational logic circuit, and/or offer His suitable component.
For example, above-mentioned acquiring unit 401, under being in game mode in target game, acquisition currently freezes mould The function of formula can be as shown in Figure 5 mobile terminal realize, specifically can be by processor 3000 by calling memory Executable program code in 4000, in the case where target game is in game mode, obtain current freezing mode.
Referring to Fig. 5, it is a kind of example structure schematic diagram of mobile terminal provided in an embodiment of the present invention.The present embodiment Described in mobile terminal, including:At least one input equipment 1000;At least one output equipment 2000;At least one place Manage device 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 and storage Device 4000 is connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely contact panel, physical button or mouse.
Above-mentioned output equipment 2000 concretely display screen.
Above-mentioned memory 4000 can be high-speed RAM memory, or nonvolatile storage (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 4000 is used to store batch processing code, above-mentioned input equipment 1000, defeated Go out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, perform following operation:
In the case where target game is in game mode, current freezing mode is obtained;
It is determined that freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include the application for waiting to freeze application Identification sets and freeze set of strategies;
Freeze operation is performed according to the freezing parameterses.
Alternatively, above-mentioned processor 3000 determines freezing parameterses corresponding with the currently defrosting pattern, including:
N number of third-party application of running background is obtained, the N is positive integer;
M third-party application corresponding with the currently defrosting pattern is obtained, the M is positive integer;
The common factor between N number of third-party application and the M third-party application is determined, obtains P third-party application, The P is the positive integer no more than the N, the M;
It is determined that corresponding with the P third-party application freeze strategy, obtain P and freeze strategy;
The application identities of the P third-party application and the P are freezed into strategy as the freezing parameterses.
Alternatively, the application identities collection includes multiple application identities;Above-mentioned processor 3000, according to the freezing parameterses Freeze operation is performed, including:
The background activity frequency of multiple applications corresponding to the multiple application identities is obtained, obtains multiple background activity frequencies Value;
Freeze priority according to what the multiple background activity frequency values determined the multiple application;
Freeze priority and the set of strategies that freezes freezes to the multiple application according to described.
Alternatively, above-mentioned processor 3000 obtains current freezing mode, including:
Obtain CPU power consumption corresponding to the target game and user is accustomed to parameter;
Parameter is accustomed to according to the CPU power consumption and the user and determines the current freezing mode.
Alternatively, above-mentioned processor 3000, also particularly useful for:
Judge whether the target game operates in foreground, if so, the step of performing the acquisition current freezing mode.
Alternatively, above-mentioned processor 3000, also particularly useful for:
When the target game exits game mode, applied corresponding to the freeze operation that thaws.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium is stored for electricity The computer program that subdata exchanges, it is any as described in above-mentioned embodiment of the method that the computer program make it that computer performs A kind of part or all of step using freezing method.
The embodiment of the present invention also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer-readable recording medium of machine program, the computer program are operable to make computer perform side as described above The part or all of step of any one application freezing method described in method embodiment.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and is used as independent production marketing or use When, it can be stored in a computer-readable access to memory.Based on such understanding, technical scheme substantially or Person say the part to be contributed to prior art or the technical scheme all or part can in the form of software product body Reveal and, the computer software product is stored in a memory, including some instructions are causing a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the present invention Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable memory, memory It can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access memory (English Text:Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention is described in detail above, specific case used herein to the principle of the present invention and Embodiment is set forth, and the explanation of above example is only intended to help the method and its core concept for understanding the present invention; Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, can in specific embodiments and applications There is change part, in summary, this specification content should not be construed as limiting the invention.

Claims (14)

1. one kind applies freezing method, it is characterised in that including:
In the case where target game is in game mode, current freezing mode is obtained;
It is determined that freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include the application identities for waiting to freeze application Collect and freeze set of strategies;
Freeze operation is performed according to the freezing parameterses.
2. according to the method for claim 1, it is characterised in that the determination is corresponding with the current defrosting pattern to be freezed Parameter, including:
N number of third-party application of running background is obtained, the N is positive integer;
M third-party application corresponding with the currently defrosting pattern is obtained, the M is positive integer;
The common factor between N number of third-party application and the M third-party application is determined, obtains P third-party application, it is described P is the positive integer no more than the N, the M;
It is determined that corresponding with the P third-party application freeze strategy, obtain P and freeze strategy;
The application identities of the P third-party application and the P are freezed into strategy as the freezing parameterses.
3. method according to claim 1 or 2, it is characterised in that the application identities collection includes multiple application identities;
It is described to perform freeze operation according to the freezing parameterses, including:
The background activity frequency of multiple applications corresponding to the multiple application identities is obtained, obtains multiple background activity frequency values;
Freeze priority according to what the multiple background activity frequency values determined the multiple application;
Freeze priority and the set of strategies that freezes freezes to the multiple application according to described.
4. according to the method described in any one of claims 1 to 3, it is characterised in that the current freezing mode of acquisition, including:
Obtain CPU power consumption corresponding to the target game and user is accustomed to parameter;
Parameter is accustomed to according to the CPU power consumption and the user and determines the current freezing mode.
5. according to the method described in any one of Claims 1-4, it is characterised in that methods described also includes:
Judge whether the target game operates in foreground, if so, the step of performing the acquisition current freezing mode.
6. according to the method described in any one of claim 1 to 5, it is characterised in that methods described also includes:
When the target game exits game mode, applied corresponding to the freeze operation that thaws.
7. one kind applies freezing plant, it is characterised in that including:
Acquiring unit, under being in game mode in target game, obtain current freezing mode;
Determining unit, for determining freezing parameterses corresponding with the currently defrosting pattern, the freezing parameterses include and wait to freeze The application identities collection of application and freeze set of strategies;
Freezing unit, for performing freeze operation according to the freezing parameterses.
8. device according to claim 7, it is characterised in that the determining unit includes:
First acquisition module, for obtaining N number of third-party application of running background, the N is positive integer;And obtain with it is described M third-party application corresponding to current defrosting pattern, the M is positive integer;
First determining module, for determining the common factor between N number of third-party application and the M third-party application, obtain P Individual third-party application, the P are the positive integer no more than the N, the M;It is determined that corresponding with the P third-party application freeze Knot strategy, obtain P and freeze strategy;And the application identities of the P third-party application and the P are freezed into tactful work For the freezing parameterses.
9. the device according to claim 7 or 8, it is characterised in that the application identities collection includes multiple application identities;
The freezing unit includes:
Second acquisition module, for obtaining the background activity frequency of multiple applications corresponding to the multiple application identities, obtain more Individual background activity frequency values;
Second determining module, freeze priority for determine the multiple application according to the multiple background activity frequency values;
Freeze module, for freezing priority and the set of strategies that freezes freezes to the multiple application according to.
10. according to the device described in any one of claim 7 to 9, it is characterised in that the acquiring unit includes:
3rd acquisition module, it is accustomed to parameter for obtaining CPU power consumption corresponding to the target game and user;
3rd determining module, the current freezing mode is determined for being accustomed to parameter according to the CPU power consumption and the user.
11. according to the device described in any one of claim 7 to 10, it is characterised in that described device also includes:
Judging unit, for judging whether the target game operates in foreground, if so, being obtained as described in performing the acquiring unit The step of taking current freezing mode.
12. according to the device described in any one of claim 7 to 11, it is characterised in that described device also includes:
Defrosting unit, for being applied corresponding to the freeze operation that when the target game exits game mode, thaws.
A kind of 13. mobile terminal, it is characterised in that including:Processor and memory;And one or more programs, described one Individual or multiple programs are stored in the memory, and are configured to by the computing device, and described program includes using In the instruction of such as any one of claim 1-6 methods.
A kind of 14. computer-readable recording medium, it is characterised in that it is used to store computer program, wherein, the computer Program causes computer to perform the method as described in claim any one of 1-6.
CN201710986018.7A 2017-10-20 2017-10-20 Using freezing method and related product Pending CN107807849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710986018.7A CN107807849A (en) 2017-10-20 2017-10-20 Using freezing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710986018.7A CN107807849A (en) 2017-10-20 2017-10-20 Using freezing method and related product

Publications (1)

Publication Number Publication Date
CN107807849A true CN107807849A (en) 2018-03-16

Family

ID=61592330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710986018.7A Pending CN107807849A (en) 2017-10-20 2017-10-20 Using freezing method and related product

Country Status (1)

Country Link
CN (1) CN107807849A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375995A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 Using freezing method and device, storage medium, electronic equipment
WO2020206694A1 (en) * 2019-04-12 2020-10-15 深圳市欢太科技有限公司 Application program management method and apparatus, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
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
CN106959857A (en) * 2017-03-29 2017-07-18 联想(北京)有限公司 The application control method and apparatus of a kind of electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN106959857A (en) * 2017-03-29 2017-07-18 联想(北京)有限公司 The application control method and apparatus of a kind of electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375995A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 Using freezing method and device, storage medium, electronic equipment
WO2020206694A1 (en) * 2019-04-12 2020-10-15 深圳市欢太科技有限公司 Application program management method and apparatus, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN107944277B (en) Application starting control method and device, storage medium and intelligent terminal
CN106256116B (en) A kind of method and terminal controlling application program
CN107803029A (en) Display processing method and related product
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN107729062A (en) Using freezing method and related product
CN112703714B (en) Application processing method and device, computer equipment and computer readable storage medium
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN108764056A (en) Brightness adjusting method and related product
CN105517123B (en) A kind of the carrier aggregation mode setting method and communication terminal of communication terminal
CN107463435A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN107807849A (en) Using freezing method and related product
CN108762897A (en) Multitask management process and smartwatch
CN107729781A (en) The anti-lost method of mobile terminal, mobile terminal and computer-readable recording medium
CN106959857A (en) The application control method and apparatus of a kind of electronic equipment
CN105988841A (en) Update method of application program, and mobile terminal
CN107491331B (en) A kind of application upgrade method and terminal device
CN107832127A (en) Application control method and related product
CN105430726B (en) The carrier aggregation function control method and communication terminal of a kind of communication terminal
CN109298772A (en) Electricity-saving control method, device and mobile terminal and computer readable storage medium
CN108388458A (en) Message treatment method and Related product
CN112715040B (en) Method for reducing power consumption, terminal equipment and storage medium
CN106200866B (en) A kind of application freezing method and mobile terminal
CN107832128A (en) Using freezing method and related product
CN109017382A (en) Battery management method, device and the storage medium of electric car
CN105764128B (en) The method for controlling power supply and device of mobile terminal

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: 20180316