CN107729062A - Using freezing method and related product - Google Patents

Using freezing method and related product Download PDF

Info

Publication number
CN107729062A
CN107729062A CN201710986888.4A CN201710986888A CN107729062A CN 107729062 A CN107729062 A CN 107729062A CN 201710986888 A CN201710986888 A CN 201710986888A CN 107729062 A CN107729062 A CN 107729062A
Authority
CN
China
Prior art keywords
system service
game
backstage
freezing
positive integer
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
CN201710986888.4A
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 CN201710986888.4A priority Critical patent/CN107729062A/en
Publication of CN107729062A publication Critical patent/CN107729062A/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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses one kind to apply freezing method and Related product, and method includes:When target game is in game mode, the N number of system service for operating in backstage is obtained, the N is positive integer;M system service to be freezed is determined from N number of system service, the M is the positive integer no more than the N;Freeze the M system service.The embodiment of the present invention can be freezed in game mode to some system services for operating in backstage, so as to reduce background activity, game can strive for more resources, ensure game environment, improve 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:
When target game is in game mode, the N number of system service for operating in backstage is obtained, the N is positive integer;
M system service to be freezed is determined from N number of system service, the M is just whole no more than the N Number;
Freeze the M system service.
Second aspect, the embodiments of the invention provide one kind to apply freezing plant, including:
Acquiring unit, for when target game is in game mode, obtaining the N number of system service for operating in backstage, institute It is positive integer to state N;
Determining unit, for determining M system service to be freezed from N number of system service, the M is little In the positive integer of the N;
Freezing unit, for freezing the M system service.
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 applying freezing method and Related product described by the embodiments of the present invention, can be swum in target When play is in game mode, the N number of system service for operating in backstage is obtained, N is positive integer, is determined from N number of system service M system service to be freezed, M are positive integer no more than N, freeze M system service, it is thus possible in game mode, it is right Some system services for operating in backstage are freezed, so as to, background activity is reduced, game can strive for more resources, Game environment has been ensured, has improved 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 freezing 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 acquiring 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 second determining module of the acquiring unit 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.
It should be noted that in the embodiment of the present invention, system service can be following at least one:System job services, it is The sync that unites is serviced and alarm timer services, can be that mobile terminal accesses Wireless Fidelity if above-mentioned job services (Wireless Fidelity, Wi-Fi), mobile terminal access power supply etc., if above-mentioned sync services, mailbox, address list are same Step service (for example, handset Wechat is synchronous with wechat desktop), microblogging etc. have account number and needed and server Timing Synchronization data Mode, alarm services are primarily referred to as alarm clock function, or, timer timing.In concrete application, because third-party application is run On backstage, in the process of running, third-party application can produce some system services, in addition, these system services also can be with service Device is communicated, and takes certain Internet resources.Under normal circumstances, as long as third-party application is not turned off, after it can be operated in Platform, so as to continuous generation system service.In this way, the embodiment of the present invention, which provides one kind, applies freezing method, including:
When target game is in game mode, the N number of system service for operating in backstage is obtained, the N is positive integer;
M system service to be freezed is determined from N number of system service, the M is just whole no more than the N Number;
Freeze the M system service.
As can be seen that applying freezing method described by the embodiments of the present invention, game can be in target game During pattern, the N number of system service for operating in backstage is obtained, N is positive integer, and M to be freezed are determined from N number of system service System service, M are positive integer no more than N, freeze M system service, it is thus possible in game mode, to operating in from the background Some system services freezed, so as to, reduce background activity, 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, when target game is in game mode, the N number of system service for operating in backstage is obtained, the N is just whole Number.
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..
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, the N number of system service for operating in backstage is obtained, it may include following steps:
A1, obtain CPU power consumption corresponding to the target game and user's custom parameter;
A2, it is accustomed to according to the CPU power consumption and the user parameter and determines that described obtain operates in N number of system on backstage and taken Business.
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 system service, and then, according to CPU power consumption, The mapping relations that user is accustomed between parameter and system service determine that CPU power consumption corresponding with target game and user are accustomed to joining Current system service corresponding to number.
Alternatively, the N number of system service for operating in backstage is obtained in above-mentioned steps 101, it may include following steps:
B1, obtain current time;
B2, determine that system service corresponding with the current time operates in N number of system clothes on backstage as the acquisition Business.
Wherein it is possible to obtain current time by the timer of mobile terminal, different time can correspond to different systems Service, 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 system service used also can be different.Therefore, can be advance in mobile terminal Mapping relations between time and system service are set, and then, can be true according to the mapping relations between time and system service Determine system service corresponding to current time.
Alternatively, in above-mentioned steps 101, the N number of system service for operating in backstage is obtained, it may include following steps:
C1, obtain current location;
C2, determine that the acquisition with the current location operates in N number of system service on backstage.
Wherein, mobile terminal can be determined by global positioning system (Global Positioning System, GPS) Current location, or, current system service 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 system service can be determined for customer location.Position can be prestored in mobile terminal with being Mapping relations between system service, and then, current location pair can be determined according to the mapping relations between position and system service The system service 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 system services, in this way, being adaptive to environment.
Alternatively, in above-mentioned steps 101, acquisition operates in the N number of system service in backstage, it may include following steps:
D1, acquisition operate in the P application on backstage, and the P is positive integer;
D2, determination and the described P corresponding system service of application, obtain N number of system service.
Wherein, due to system service, application is may come from, therefore, certainly, an application may correspond to multiple systems System service.P application for operating in backstage can be obtained, P is positive integer, and determination and the P corresponding system service of application, is obtained To N number of system service, N can be the integer more than or equal to P, it is of course also possible to which system service caused by some applications is not Influence whether to play, and then, N number of system clothes can be obtained from selected part system service in system service corresponding to P application Business.
Still optionally further, above-mentioned steps D2, it is determined that with the described P corresponding system service of application, N number of system is obtained System service, it may include following steps:
D21, obtain corresponding with described P application all system services, obtain Q system service, the Q be more than or Equal to the integer of the N;
D22, preset time period is obtained, the preset time period is using current time as start time;
D23, the activity attributes for obtaining the Q system service;
D24, mobility value of the Q system service in the preset time period is estimated according to the activity attributes, Obtain Q mobility value;
D25, the mobility value for being more than predetermined threshold value is chosen from the Q mobility value, obtain N number of mobility Value, system service corresponding to acquisition N number of mobility value, obtains N number of system service.
Wherein it is possible to can voluntarily be set by user from above-mentioned preset time period, still, the preset time period is to work as The preceding time, it was a future time section as start time.Above-mentioned activity attributes can be following at least one:Activity time Section, motion frequency, movable occupied bandwidth, activity consumption internal memory and activity generation caching etc..Above-mentioned predetermined threshold value can by with Family is voluntarily set or system default.Above-mentioned mobility value can be calculated by activity attributes, for example, in activity attributes Per dimension, a corresponding weight, can be calculated using average weighted mode, for example, activity attributes include:A, B and C Three dimensions, are a, b, c per weight corresponding to dimension, and then, it is A*a+B*b+C*c that can obtain mobility value, certainly, Mobility value is bigger, then explanation is more active from the background.Specifically, all system services corresponding with P application can be obtained, Obtaining Q system service, Q is the integer more than or equal to N, obtains preset time period (specified by user or system default), The activity attributes of Q system service are obtained, mobility of the Q system service in preset time period is estimated according to activity attributes Value, obtains Q mobility value, and the mobility value more than predetermined threshold value is chosen from Q mobility value, obtains N number of work Kinetic energy force value, obtain N number of mobility value corresponding to system service, obtain N number of system service.In this way, can be by backstage The active degree of system service, which chooses some, needs frozen system service.
102nd, M system service to be freezed is determined from N number of system service, the M is no more than the N's Positive integer.
Wherein it is possible to selected part or whole system services obtain M to be freezed from N number of system service System service, M are the positive integer no more than N.
Alternatively, in above-mentioned steps 102, M system service to be freezed is determined from N number of system service, can To comprise the following steps:
21st, X system service corresponding with the target game is obtained, the X is the positive integer not less than the N;
22nd, the common factor between N number of system service and the X system service is determined, obtains the M system clothes Business.
Wherein, the mapping relations between game and system service, i.e., different game can be prestored in mobile terminal Different system services can be corresponded to, and then, target game can be determined according to the mapping relations between game and system service Corresponding X system service, certainly, this X system service not necessarily operate in backstage, hence, it can be determined that N number of system service With the common factor between X system service, M system service is obtained, in this way, can be taken according to the different system of different Game Settings Business, with more targetedly freezing system service.
103rd, the M system service is freezed.
Wherein it is possible to freeze M system service according to priority, or, can also, disposably freeze M system service, Certainly, each system service can correspond to one and freeze duration in each system services of above-mentioned M, that is, freezes duration and reach, then can be with It is automatic to thaw.
Alternatively, in above-mentioned steps 103, the M system service is freezed, it may include following steps:
31st, the motion frequency of M system service to be freezed, obtains M motion frequency described in determining;
32nd, priority is freezed in the M system service to be freezed according to the M motion frequency determines;
33rd, freeze priority according to and freeze the M system service to be freezed.
Wherein, above-mentioned background activity frequency can be understood as in the number to be communicated from the background, different third-party applications It is different in the background activity frequency of background activity, and certainly, same third-party application, in the different periods, its backstage is lived Dynamic frequency may also be different, and therefore, above-mentioned each third-party application can be by each in the background activity frequency of running background The history log of third-party application obtains, or, the number of activities of a period of time can also be counted, calculates every one the 3rd Fang Yingyong backstage background activity frequency, and then, for M third-party application, M background activity frequency can be obtained Value, freeze priority according to what M background activity frequency values determined M third-party application, for example, background activity frequency values are got over Greatly, then it is higher to freeze priority, in this way, M third-party application can be freezed according to priority is freezed.
Alternatively, in above-mentioned steps 103, the M third-party application is freezed, it may include following steps:
Freeze operation is carried out to the M third-party application using parallel mode.
Wherein, for rapid Optimum game environment, parallel mode can be taken to freeze M third-party application, such as This, can quickly reduce background activity, for example, freeze operation is carried out to M third-party application using M process or thread, Wherein, the corresponding process of each third-party application either thread or, M third-party application can be divided into multiple groups, Freezed for each group of third-party application using a thread or process, so, it is possible to achieve quick freezing backstage The purpose of third-party application, ensure that game environment, improve Consumer's Experience.
As can be seen that applying freezing method described by the embodiments of the present invention, game can be in target game During pattern, the N number of system service for operating in backstage is obtained, N is positive integer, and M to be freezed are determined from N number of system service System service, M are positive integer no more than N, freeze M system service, it is thus possible in game mode, to operating in from the background Some system services freezed, so as to, reduce background activity, 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, when 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 the N number of system service for operating in backstage, the N is positive integer.
Wherein, if target game operates in foreground, the step for obtaining the N number of system service for operating in backstage can be performed Suddenly.
Alternatively, if target game operates in backstage, the N number of system service for obtaining and operating in backstage can not be performed Step.
203rd, M system service to be freezed is determined from N number of system service, the M is no more than the N's Positive integer.
204th, the M system service is freezed.
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 can be in target game During pattern, judge whether target game operates in foreground, if so, obtaining the N number of system service for operating in backstage, N is positive integer, M system service to be freezed is determined from N number of system service, M is the positive integer no more than N, freezes M system service, It is thus possible in game mode, some system services for operating in backstage are freezed, so as to reduce background activity, swim Play can strive for more resources, ensured game environment, improved Consumer's Experience.
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, when target game is in game mode, the N number of system service for operating in backstage is obtained, the N is just whole Number.
302nd, M system service to be freezed is determined from N number of system service, the M is no more than the N's Positive integer.
303rd, the M system service is freezed.
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, the M system service of thawing.
Wherein, target game exits game mode, then illustrates that user is not desired to play, at this point it is possible to the M system clothes that thaw Business.
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, 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 can be in target game During pattern, the N number of system service for operating in backstage is obtained, N is positive integer, and M to be freezed are determined from N number of system service System service, M are the positive integer no more than N, freeze M system service, when target game exits game mode, defrosting M System service, it is thus possible in game mode, some system services for operating in backstage are freezed, so as to after reducing Platform activity, game can strive for more resources, ensure game environment, improve Consumer's Experience, in addition, exiting game mould After formula, M system service is thawed, has ensured third-party application after game, can be with normal operation.
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 acquiring unit 401, determining unit 402 and freezing unit 403 using freezing plant, its In,
Acquiring unit 401, for when target game is in game mode, obtaining the N number of system service for operating in backstage, The N is positive integer;
Determining unit 402, for determining M system service to be freezed from N number of system service, the M is No more than the positive integer of the N;
Freezing unit 403, for freezing the M system service.
Alternatively, if Fig. 4 B, Fig. 4 B are the detail knots of the freezing unit 403 using freezing plant described by Fig. 4 A Structure, the freezing unit 403 may include:First determining module 4031 and freeze module 4032, it is specific as follows:
First determining module 4031, for determining the motion frequency of the M system service, obtain M motion frequency;With And freeze priority according to what the M motion frequency determined the M system service;
Freeze module 4032, freeze the M system service to be freezed for freezing priority according to.
Alternatively, if Fig. 4 C, Fig. 4 C are the detail knots of the acquiring unit 401 using freezing plant described by Fig. 4 A Structure, the acquiring unit 401 may include:First acquisition module 4011 and the second determining module 4012, it is specific as follows:
First acquisition module 4011, the P application on backstage is operated in for obtaining, the P is positive integer;
Second determining module 4012, for determination and the described P corresponding system service of application, obtain N number of system Service.
Alternatively, if Fig. 4 D, Fig. 4 D are the specific thin of the second determining module 4012 of the acquiring unit 401 described by Fig. 4 A Nodule structure, second determining module 4012 may include:Second acquisition module 501, estimate module 502 and choose module 503, tool Body is as follows:
Second acquisition module 501, for obtaining all system services corresponding with described P application, obtain Q system clothes Business, the Q are the integer more than or equal to the N;Preset time period is obtained, the preset time period is using current time as the time Starting point;Obtain the activity attributes of the Q system service;
Module 502 is estimated, for estimating the Q system service in the preset time period according to the activity attributes Mobility value, obtain Q mobility value;
Module 503 is chosen, for choosing the mobility value more than predetermined threshold value from the Q mobility value, is obtained To N number of mobility value, system service corresponding to acquisition N number of mobility value, N number of system service is obtained.
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, by the acquiring unit 401 Perform the step of acquisition operates in the N number of system service in backstage.
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 when the target game exits game mode, the M system service of thawing.
As can be seen that applying freezing plant described by the embodiments of the present invention, game can be in target game During pattern, the N number of system service for operating in backstage is obtained, N is positive integer, and M to be freezed are determined from N number of system service System service, M are positive integer no more than N, freeze M system service, it is thus possible in game mode, to operating in from the background Some system services freezed, so as to, reduce background activity, 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, for when target game is in game mode, acquisition to operate in backstage N number of system service function can be as shown in Figure 5 mobile terminal realize, specifically tune can be passed through by processor 3000 With the executable program code in memory 4000, when target game is in game mode, the N number of system for operating in backstage is obtained System service.
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:
When target game is in game mode, the N number of system service for operating in backstage is obtained, the N is positive integer;
M system service to be freezed is determined from N number of system service, the M is just whole no more than the N Number;
Freeze the M system service.
Alternatively, above-mentioned processor 3000 freezes the M system service, including:
The motion frequency of the M system service is determined, obtains M motion frequency;
Freeze priority according to what the M motion frequency determined the M system service;
The M system service is freezed according to the priority of freezing.
Alternatively, above-mentioned processor 3000, which obtains, operates in the N number of system service in backstage, including:
P application for operating in backstage is obtained, the P is positive integer;
It is determined that with the described P corresponding system service of application, N number of system service is obtained.
Alternatively, the above-mentioned determination of processor 3000 and the described P corresponding system service of application, obtain N number of system Service, including:
Obtain corresponding with described P application all system services, obtain Q system service, the Q for more than or equal to The integer of the N;
Preset time period is obtained, the preset time period is using current time as start time;
Obtain the activity attributes of the Q system service;
Mobility value of the Q system service in the preset time period is estimated according to the activity attributes, obtains Q Individual mobility value;
The mobility value more than predetermined threshold value is chosen from the Q mobility value, obtains N number of mobility value, System service corresponding to obtaining N number of mobility value, obtains N number of system service.
Alternatively, above-mentioned processor 3000, also particularly useful for:
Judge whether the target game operates in foreground, if so, performing the acquisition operates in the N number of system service in backstage The step of.
Alternatively, above-mentioned processor 3000, also particularly useful for:
When the target game exits game mode, the M system service of thawing.
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:
When target game is in game mode, the N number of system service for operating in backstage is obtained, the N is positive integer;
M system service to be freezed is determined from N number of system service, the M is the positive integer no more than the N;
Freeze the M system service.
2. according to the method for claim 1, it is characterised in that it is described to freeze the M system service, including:
The motion frequency of the M system service is determined, obtains M motion frequency;
Freeze priority according to what the M motion frequency determined the M system service;
The M system service is freezed according to the priority of freezing.
3. method according to claim 1 or 2, it is characterised in that the acquisition operates in the N number of system service in backstage, bag Include:
P application for operating in backstage is obtained, the P is positive integer;
It is determined that with the described P corresponding system service of application, N number of system service is obtained.
4. according to the method for claim 3, it is characterised in that the determination and the described P corresponding system service of application, N number of system service is obtained, including:
All system services corresponding with described P application are obtained, obtain Q system service, the Q is more than or equal to described N integer;
Preset time period is obtained, the preset time period is using current time as start time;
Obtain the activity attributes of the Q system service;
Mobility value of the Q system service in the preset time period is estimated according to the activity attributes, obtains Q work Kinetic energy force value;
The mobility value more than predetermined threshold value is chosen from the Q mobility value, obtains N number of mobility value, is obtained System service corresponding to N number of mobility value, obtains N number of system service.
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, performing the step that the acquisition operates in the N number of system service in backstage Suddenly.
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, the M system service of thawing.
7. one kind applies freezing plant, it is characterised in that including:
Acquiring unit, for when target game is in game mode, obtaining the N number of system service for operating in backstage, the N is Positive integer;
Determining unit, for determining M system service to be freezed from N number of system service, the M is no more than institute State N positive integer;
Freezing unit, for freezing the M system service.
8. device according to claim 7, it is characterised in that the freezing unit includes:
First determining module, for determining the motion frequency of the M system service, obtain M motion frequency;And according to institute That states that M motion frequency determine the M system service freezes priority;
Freeze module, freeze the M system service for freezing priority according to.
9. the device according to claim 7 or 8, it is characterised in that the acquiring unit includes:
First acquisition module, the P application on backstage is operated in for obtaining, the P is positive integer;
Second determining module, for determination and the described P corresponding system service of application, obtain N number of system service.
10. device according to claim 9, it is characterised in that second determining module includes:
Second acquisition module, for obtaining all system services corresponding with described P application, Q system service is obtained, it is described Q is the integer more than or equal to the N;Preset time period is obtained, the preset time period is using current time as start time;Obtain Take the activity attributes of the Q system service;
Module is estimated, for estimating movable energy of the Q system service in the preset time period according to the activity attributes Force value, obtain Q mobility value;
Module is chosen, for choosing the mobility value more than predetermined threshold value from the Q mobility value, obtains N number of work Kinetic energy force value, system service corresponding to acquisition N number of mobility value, obtains N number of system service.
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 Take the step of operating in the N number of system service in backstage.
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 when the target game exits game mode, the M system service of thawing.
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.
CN201710986888.4A 2017-10-20 2017-10-20 Using freezing method and related product Pending CN107729062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710986888.4A CN107729062A (en) 2017-10-20 2017-10-20 Using freezing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710986888.4A CN107729062A (en) 2017-10-20 2017-10-20 Using freezing method and related product

Publications (1)

Publication Number Publication Date
CN107729062A true CN107729062A (en) 2018-02-23

Family

ID=61212236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710986888.4A Pending CN107729062A (en) 2017-10-20 2017-10-20 Using freezing method and related product

Country Status (1)

Country Link
CN (1) CN107729062A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358963A (en) * 2018-08-21 2019-02-19 奇酷互联网络科技(深圳)有限公司 Mobile terminal and storage device and the method, apparatus for adjusting game performance
CN109669778A (en) * 2018-12-21 2019-04-23 北京奇虎科技有限公司 It is a kind of for determining the method and system of concurrent process quantity for running unit
US11628360B2 (en) 2018-12-27 2023-04-18 Samsung Electronics Co., Ltd. Method and apparatus for controlling game applications
WO2023061014A1 (en) * 2021-10-14 2023-04-20 华为技术有限公司 Task management method and apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176842A (en) * 2013-03-15 2013-06-26 广东欧珀移动通信有限公司 Background process management method and mobile terminal thereof
CN103699413A (en) * 2013-12-24 2014-04-02 北京奇虎科技有限公司 Method and system for optimizing game operating environment, client and server
CN104331601A (en) * 2014-09-30 2015-02-04 珠海市君天电子科技有限公司 Method and device for optimizing game scenes
US20150347181A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Resource management with dynamic resource policies
CN106055399A (en) * 2016-05-31 2016-10-26 宇龙计算机通信科技(深圳)有限公司 Application program control method and terminal
CN106126325A (en) * 2016-06-21 2016-11-16 宇龙计算机通信科技(深圳)有限公司 The management method of application program, managing device and terminal
CN106648767A (en) * 2016-12-08 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Application freezing method and apparatus
CN106959874A (en) * 2017-03-21 2017-07-18 联想(北京)有限公司 The electronic equipment of application management method and application this method based on operating system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176842A (en) * 2013-03-15 2013-06-26 广东欧珀移动通信有限公司 Background process management method and mobile terminal thereof
CN103699413A (en) * 2013-12-24 2014-04-02 北京奇虎科技有限公司 Method and system for optimizing game operating environment, client and server
US20150347181A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Resource management with dynamic resource policies
CN104331601A (en) * 2014-09-30 2015-02-04 珠海市君天电子科技有限公司 Method and device for optimizing game scenes
CN106055399A (en) * 2016-05-31 2016-10-26 宇龙计算机通信科技(深圳)有限公司 Application program control method and terminal
CN106126325A (en) * 2016-06-21 2016-11-16 宇龙计算机通信科技(深圳)有限公司 The management method of application program, managing device and terminal
CN106648767A (en) * 2016-12-08 2017-05-10 宇龙计算机通信科技(深圳)有限公司 Application freezing method and apparatus
CN106959874A (en) * 2017-03-21 2017-07-18 联想(北京)有限公司 The electronic equipment of application management method and application this method based on operating system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358963A (en) * 2018-08-21 2019-02-19 奇酷互联网络科技(深圳)有限公司 Mobile terminal and storage device and the method, apparatus for adjusting game performance
CN109669778A (en) * 2018-12-21 2019-04-23 北京奇虎科技有限公司 It is a kind of for determining the method and system of concurrent process quantity for running unit
CN109669778B (en) * 2018-12-21 2023-09-01 北京奇虎科技有限公司 Method and system for determining number of parallel processes for running unit
US11628360B2 (en) 2018-12-27 2023-04-18 Samsung Electronics Co., Ltd. Method and apparatus for controlling game applications
WO2023061014A1 (en) * 2021-10-14 2023-04-20 华为技术有限公司 Task management method and apparatus

Similar Documents

Publication Publication Date Title
CN107729062A (en) Using freezing method and related product
CN107803029A (en) Display processing method and related product
WO2015131679A1 (en) Task process processing method and device
CN107291549A (en) A kind of method and device for managing application program
CN107463435A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN109039843B (en) Intelligent kitchen equipment control method and device based on event chain linkage strategy
CN112887217B (en) Control data packet sending method, model training method, device and system
CN107333287B (en) Network detecting method, network detection device and intelligent terminal
CN108540568A (en) Computing capability sharing method and smart machine
CN110764605B (en) Multi-core processor control method and device, electronic equipment and storage medium
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN110837456B (en) Control method and device and electronic equipment
CN110320813B (en) Power management method and device for Internet of things equipment
CN107734556A (en) Data transfer control method and Related product
CN107807849A (en) Using freezing method and related product
CN113849284A (en) Task running method and device, storage medium and terminal
CN105517162B (en) The carrier aggregation function control method and communication terminal of a kind of communication terminal
CN107402626A (en) Using cycle synchronisation management method, device, storage medium and electronic equipment
CN112715040B (en) Method for reducing power consumption, terminal equipment and storage medium
CN105491649B (en) A kind of the carrier aggregation mode setting method and communication terminal of communication terminal
CN105430727B (en) A kind of the carrier aggregation mode setting method and communication terminal of communication terminal
CN105406891B (en) The carrier aggregation mode establishing method and communication terminal of a kind of communication terminal
CN107832128A (en) Using freezing method and related product
CN105764128B (en) The method for controlling power supply and device of mobile terminal
CN113922411A (en) Method and device for determining distributed photovoltaic absorption capacity

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