CN110046030A - Applied program processing method and device, electronic equipment, computer readable storage medium - Google Patents

Applied program processing method and device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN110046030A
CN110046030A CN201810031035.XA CN201810031035A CN110046030A CN 110046030 A CN110046030 A CN 110046030A CN 201810031035 A CN201810031035 A CN 201810031035A CN 110046030 A CN110046030 A CN 110046030A
Authority
CN
China
Prior art keywords
application
destination application
history
prediction
moment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810031035.XA
Other languages
Chinese (zh)
Other versions
CN110046030B (en
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 CN201810031035.XA priority Critical patent/CN110046030B/en
Publication of CN110046030A publication Critical patent/CN110046030A/en
Application granted granted Critical
Publication of CN110046030B publication Critical patent/CN110046030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping

Abstract

The application provides a kind of applied program processing method and device, electronic equipment, computer readable storage medium, which comprises the history for each application program installed in statistics electronic equipment freezes number;It obtains the history and freezes application program of the number greater than frequency threshold value as destination application;The history for obtaining the destination application is freezed the moment, and is freezed to generate prediction time sequence constantly according to the history, freezes the moment comprising one or more predictions in the prediction time sequence;When electronic equipment detection, which reaches the prediction, freezes the moment, freeze the destination application.The accuracy to application program processing can be improved in above-mentioned applied program processing method and device, electronic equipment, computer readable storage medium.

Description

Applied program processing method and device, electronic equipment, computer readable storage medium
Technical field
This application involves field of computer technology, set more particularly to a kind of applied program processing method and device, electronics Standby, computer readable storage medium.
Background technique
Smart machine can realize different application operatings by application program, for example can pass through class application program of doing shopping Purchase commodity check video etc. by video class application program.Application program can be frozen, and the application program after freezing can not It is further continued for running, processor resource in smart machine will not be occupied.But due to application program still exist in smart machine , therefore can also occupy the resources such as memory, hardware in smart machine.
Summary of the invention
The embodiment of the present application provides a kind of applied program processing method and device, electronic equipment, computer-readable storage medium The accuracy to application program processing can be improved in matter.
A kind of applied program processing method, comprising:
The history for each application program installed in statistics electronic equipment freezes number;
It obtains the history and freezes application program of the number greater than frequency threshold value as destination application;
The history for obtaining the destination application is freezed the moment, and freezes to generate prediction time constantly according to the history Sequence freezes the moment comprising one or more predictions in the prediction time sequence;
When electronic equipment detection, which reaches the prediction, freezes the moment, freeze the destination application.
A kind of application processing apparatus, comprising:
Number statistical module, the history for counting each application program installed in electronic equipment freeze number;
Using obtaining module, freezes number for obtaining the history and answered greater than the application program of frequency threshold value as target Use program;
Moment prediction module, the history for obtaining the destination application are freezed the moment, and are frozen according to the history Generation moment, sequence prediction time is tied, predicts to freeze the moment comprising one or more in the prediction time sequence;
Using module is freezed, for freezing the mesh when the moment is freezed in the electronic equipment detection arrival prediction Mark application program.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes following steps:
The history for each application program installed in statistics electronic equipment freezes number;
It obtains the history and freezes application program of the number greater than frequency threshold value as destination application;
The history for obtaining the destination application is freezed the moment, and freezes to generate prediction time constantly according to the history Sequence freezes the moment comprising one or more predictions in the prediction time sequence;
When electronic equipment detection, which reaches the prediction, freezes the moment, freeze the destination application.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
The history for each application program installed in statistics electronic equipment freezes number;
It obtains the history and freezes application program of the number greater than frequency threshold value as destination application;
The history for obtaining the destination application is freezed the moment, and freezes to generate prediction time constantly according to the history Sequence freezes the moment comprising one or more predictions in the prediction time sequence;
When electronic equipment detection, which reaches the prediction, freezes the moment, freeze the destination application.
Above-mentioned applied program processing method and device, electronic equipment, computer readable storage medium obtain each using journey The history of sequence freezes number, and history is freezed application program of the number greater than frequency threshold value as destination application.And according to The history of destination application is freezed to generate the prediction time sequence for freezing the moment comprising prediction constantly, detects in electronic equipment When freezing the moment up to prediction, freeze destination application.It in this way can be according to the history freezing data of application program to using journey Sequence freezes to be predicted constantly, and according to prediction freeze control freezing for application program constantly, can more accuratelyly pair Application program is controlled, and the power consumption of electronic equipment is reduced.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the application environment schematic diagram of applied program processing method in one embodiment;
Fig. 2 is the schematic diagram of internal structure of electronic equipment in one embodiment;
Fig. 3 is the flow chart of applied program processing method in one embodiment;
Fig. 4 is the flow chart of applied program processing method in another embodiment;
Fig. 5 is the schematic diagram of prediction time sequence in one embodiment;
Fig. 6 is the schematic diagram of the resource constraint state of application program in one embodiment;
Fig. 7 is the part architecture diagram of electronic equipment in one embodiment;
Fig. 8 is the structural schematic diagram of application processing apparatus in one embodiment;
Fig. 9 is the structural schematic diagram of application processing apparatus in another embodiment;
Figure 10 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.The first client and the second client both client, but it is not same visitor Family end.
Fig. 1 is the application environment schematic diagram of applied program processing method in one embodiment.As shown in Figure 1, this applies ring Border includes client 102 and server 104.Application program can be installed, then statistics is each in the process of running in client 102 The history of a application program freezes number;It obtains history and freezes application program of the number greater than frequency threshold value as target application journey Sequence;The history for obtaining destination application is freezed the moment, and is freezed to generate prediction time sequence, prediction time constantly according to history Freeze the moment comprising one or more predictions in sequence;When detection, which reaches prediction, freezes the moment, freeze destination application.Clothes Business device 104 can be used for 102 pushing application program Processing Algorithm of client, and client 102 is handled according to the application program and calculated Method handles application program.Wherein, client 102 is to be mainly used for inputting user's letter in computer network outermost The electronic equipment of breath and output processing result, such as can be PC, mobile terminal, personal digital assistant, wearable Electronic equipment etc..Server 104 is while to provide the equipment of the service of calculating for responding service request, such as can be one Or multiple stage computers.It is understood that applied program processing method applies ring in other embodiments provided by the present application Border can only include client 102.
As shown in Fig. 2, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronic equipment includes total by system Processor, memory and the display screen of line connection.Wherein, which supports entire electricity for providing calculating and control ability The operation of sub- equipment.Memory for storing data, program, and/or instruction code etc., at least one calculating is stored on memory Machine program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for electronic equipment Applied program processing method.Memory may include magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. Non-volatile memory medium or random access memory (Random-Access-Memory, RAM) etc..For example, implementing at one In example, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and meter Calculation machine program.The computer program can be performed by processor, for realizing one kind provided by each embodiment of the application Applied program processing method.Built-in storage in non-volatile memory medium operating system and computer program to provide high speed slow The running environment deposited.Display screen can be touch screen, for example be capacitance plate or electrical screen, answer for display foreground process to be corresponding Interface information may be utilized for the touch operation that detection acts on the display screen, generate corresponding instruction, for example carry out The switching command etc. of front and back application.
It will be understood by those skilled in the art that structure shown in Figure 2, only part relevant to application scheme is tied The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with Including than more or fewer components as shown in the figure, perhaps combining certain components or with different component layouts.Such as electricity Sub- equipment further includes the network interface connected by system bus, and network interface can be Ethernet card or wireless network card etc., is used It is communicated in external electronic equipment, for example can be used for same server and communicated.
Fig. 3 is the flow chart of applied program processing method in one embodiment.Application program processing side in the present embodiment Method is described for running on the terminal in Fig. 1 or server.As shown in figure 3, the applied program processing method includes Step 302 is to step 308.Wherein:
Step 302, the history for counting each application program installed in electronic equipment freezes number.
Mountable application program (Application, APP) in electronic equipment, application program, which refers in electronic equipment, to be directed to The software that certain application purpose is write, electronic equipment can realize the Demand and service to user by application program.For example, with Family can play game by game class application program, can also see video by video class application program, can also pass through music Class application program plays music etc..Application program can be divided into foreground application and background application journey according to the state of operation Sequence.Foreground application refers to the application program in the front stage operation of electronic equipment, foreground application can on foreground It shows and is realized with user and interacted.Background application refers to the application program in the running background of electronic equipment, background application Program cannot generally show on foreground and realize interactive process with user.
Generally, the application operating of application program is completed jointly by one or more processes (process), and process is It is the program in computer about the primary operation activity on certain data acquisition system, is that system carries out the basic of Resource Distribution and Schedule Unit.Meanwhile a process can correspond to one or more threads, thread is a single sequential control process in program, It is a relatively independent, schedulable execution unit in process.Process may include foreground process and background process, foreground process As in the process of electronic equipment front stage operation, background process is the process in electronic equipment running background.Electronic equipment can To control the switching of foreground process and background process, foreground process can switch to running background, and background process can also be switched to Front stage operation.Specifically, the management to process can be realized by process pool, can be stored in process pool it is one or more into The corresponding process identification (PID) of journey.Process identification (PID) is for uniquely indicating a process.Process pool may include foreground process pond and backstage Process pool, includes the corresponding process identification (PID) of foreground process in foreground process pond, includes that background process is corresponding in background process pond Process identification (PID).When the operating status for detecting foreground process and background process changes, process pool can correspondingly add or Delete the process identification (PID) for generating variation.For example, the process identification (PID) of process A is " 0123 ", when detecting that process A becomes by background process When at foreground process, the process identification (PID) " 0123 " of process A can be removed from background process pond, and be added to foreground process pond In.
Specifically, application program can be frozen, and the application program in frozen state is not closed, only temporarily It does not run.Application program in frozen state is not take up processor resource and is run, but still occupies electronic equipment The resources such as memory and hardware.Resource prioritization and limitation management module in the local ccf layer of electronic equipment can be to using journeys The state of sequence is marked, and the status indication by reading application program freezes shape it is known that whether application program is in State.After application program is waken up, resource prioritization and limitation management module can correspondingly change the status indication of application program, To realize the control to application program frozen state by corresponding status indication.
History freezes number and refers to the number for freezing application program before current time, in particular to before current time Some period in freeze the number of application program.For example, it may be from installation application program at the time of to current time it Between freeze the number of the application program, may also mean that and sometime freeze this between current time before current time The number of application program, in the present embodiment without limiting.Assuming that history freezes the July 1 to July 3 that number is statistics Interior application program freezes number, if application program A on July 1 has freezed 3 times, July 2 has freezed 5 times, and July 3 has freezed 7 It is secondary, then it is exactly 15 times that the history of application program A, which freezes number,.
Step 304, it obtains history and freezes application program of the number greater than frequency threshold value as destination application.
In one embodiment, electronic equipment, can be to the foundation pair of each application program when installing application program The application identities answered, application identities are for uniquely indicating an application program.Application identities can be, but not limited to be application program Packet name (packagename).For example, the packet name of application program can be com.qihoo.appstore.Electronic equipment is being transported During row, the number that freezes of each application program can be recorded.It can be recorded by freeze-off time table, Mei Geying A freeze-off time table is corresponded to program, and establishes the corresponding relationship of the List Identification of application identities and freeze-off time table.Using Program is often freezed once, can record in freeze-off time table primary, and records and corresponding freezes the moment.Freeze in acquisition history secondary Number when, can input statistics start time and statistics finish time, and to statistics start time to count finish time it Between the number freezed counted, obtain history and freeze number.
Electronic equipment can freeze number by history after obtaining the corresponding history of each application program and freezing number How much application program is ranked up, history is then freezed into application program of the number greater than frequency threshold value as target application journey Sequence.For example, frequency threshold value is 3 times, and if it is 2 times that the corresponding history of application program A, which freezes number, the corresponding history of application program B Freezing number is 5 times, then application program B can serve as destination application.
Step 306, the history for obtaining destination application is freezed the moment, and is freezed to generate prediction time constantly according to history Sequence freezes the moment comprising one or more predictions in prediction time sequence.
When history freezes number greater than frequency threshold value, it is believed that the application program is frequently freezed, then can apply journey to this The history freezing data of sequence is learnt, and the litchi freezing pattern of the application program is analyzed.Specifically, history is freezed to refer to history constantly At the time of freezing application program, in some period before can referring to current time every time freeze application program when It carves.Freeze in total destination application 4 times for example, freezing destination application December 3 to December 6, corresponding history is frozen The knot moment be respectively December 3 12:11,12:15 on December 4,12:10 on December 5 and 12:10 on December 6.
It gets after the corresponding history of destination application freezes the moment, so that it may be freezed to obtain prediction constantly according to history Freeze the moment, prediction freeze constantly be exactly prediction obtain at the time of destination application is freezed.For example, target application Program is often frozen in morning 00:00, then it can be 00:00 that the moment is freezed in obtained prediction.It specifically, can be to obtaining The history taken is freezed to be learnt constantly, and the moment is freezed in the prediction for obtaining destination application.Freeze to generate constantly according to prediction One prediction time sequence, destination application can be freezed according to moment sequence to be predicted.
In one embodiment, prediction time sequence can be individually establishes for each destination application, i.e., and one The corresponding prediction time sequence of a destination application.It is also possible to be directed to what all destination applications were established together, i.e., The corresponding prediction time sequence of multiple destination applications.If the corresponding prediction time sequence of a destination application, It then can establish the corresponding relationship of target application mark and sequence identifier, only store corresponding target application in prediction time sequence The moment is freezed in the prediction of program.If the corresponding prediction time sequence of multiple destination applications, can establish prediction and freezes The corresponding relationship at moment and target application mark stores one or more predictions in prediction time sequence and freezes the moment, each Prediction is freezed to correspond to one or more target application marks constantly.
Step 308, when electronic equipment, which detects arrival prediction, freezes the moment, freeze destination application.
Electronic equipment is measured in real time the prediction time sequence of generation, will be in current time and prediction time sequence Prediction is freezed to be compared constantly, when electronic equipment electrical measurement, which reaches prediction, freezes the moment, obtains corresponding destination application, And destination application is freezed.Destination application after freezing cannot temporarily be run, and be not take up processor resource. The condition thawed to destination application can be set, for example, detecting that destination application receives communication message When, destination application is thawed.Or when the duration that destination application enters frozen state is more than threshold value, by mesh Mark application program is thawed.
Applied program processing method provided by the above embodiment, the history for obtaining each application program freeze number, will go through History freezes application program of the number greater than frequency threshold value as destination application.And freezed according to the history of destination application Moment generates the prediction time sequence for freezing the moment comprising prediction, when the moment is freezed in electronic equipment detection arrival prediction, freezes Destination application.Application program can be freezed to predict constantly according to the history freezing data of application program in this way, And according to prediction freeze control freezing for application program constantly, application program can be controlled more accurately, reduce The power consumption of electronic equipment.
Fig. 4 is the flow chart of applied program processing method in another embodiment.Application program processing in the present embodiment Method is described for running on the terminal in Fig. 1 or server.As shown in figure 4, the applied program processing method packet Step 402 is included to step 420.Wherein:
Step 402, the application priority for obtaining each application program obtains corresponding number threshold according to application priority Value.
The significance level of application program can be indicated using priority, user or system can be corresponding by certain standard It is configured with priority.Electronic equipment can establish the corresponding relationship of application identities and application priority, according to application identities It is corresponding using priority that application program can be obtained.For example, system level application can be set to higher application Priority, third party application are set as lower using priority.Or it can be corresponded to according to the type of application program It is configured with the application priority of program, the application program of instant messaging class is set as higher using priority, tool-class Application program be set as lower using priority.Electronic equipment constructs in advance to close using priority is corresponding with frequency threshold value System, then obtains the application priority of each application program, is obtained according to the corresponding relationship constructed in advance corresponding using priority Frequency threshold value.
Step 404, the history for counting each application program installed in electronic equipment freezes number.
Step 406, it obtains history and freezes application program of the number greater than frequency threshold value as destination application.
In one embodiment, electronic equipment counts a history when every predetermined time and freezes number, and root Freeze number according to history and obtains destination application.Specifically, timer can be set in electronic equipment, whenever reaching timing When quarter, history of each application program of electronic equipment statistics installation in statistical time range freezes number, and obtains history and freeze Number is greater than the application program of frequency threshold value, as destination application.For example, electronic equipment can be with No. 1 00:00 in every month When, it counts history of each application program in upper one month and freezes number, and number is freezed according to the history of statistics and is obtained Take destination application.
Step 408, it obtains history corresponding when each destination application freezes every time in statistical time range and freezes the moment, Freeze to obtain the corresponding prediction of each destination application constantly according to history and freezes the moment.
When statistical time range refers to some before the period, in particular to current time for freezing the moment for statistical history Between section.For example, current time is 00:00 on December 12nd, 2017, then statistical time range can be 00:00 on November 1st, 2017 and arrive November in 2017 23:59 on the 30th period, so that it may the history obtained in the statistical time range freezes the moment.It is understood that It is that statistical time range can be any one period before current time, in the present embodiment without limitation.Get history After freezing the moment, can by it is default at the time of prediction model history is freezed to learn constantly, obtain each target and answer Freeze the moment with the corresponding prediction of program.
Step 410, when generating prediction according to the target application mark that moment and destination application are freezed in obtained prediction Carve sequence.
In one embodiment, it is got after prediction freezes the moment according to each destination application, it can be according to more The prediction of a destination application is freezed to generate prediction time sequence constantly, then can establish prediction in the prediction time sequence generated The corresponding relationship of moment sequence and target application mark.Fig. 5 is the schematic diagram of prediction time sequence in one embodiment.Such as Fig. 5 Shown, which is to freeze moment and target application mark generation according to the prediction of multiple destination applications, Prediction is freezed to arrange constantly according to chronological order in prediction time sequence, each prediction is freezed to correspond to one constantly Or the moment is freezed in multiple predictions.As shown in Figure 5 prediction freeze constantly include " 2 days 2 months 9:00 " → " 2 days 2 months 10:30 " → " 2 days 2 months 11:00 " → " 2 days 2 months 13:00 " → " 2 days 2 months 20:00 " →... ..., each prediction freeze to correspond to constantly one or Multiple target application marks.When electronic equipment detection, which reaches the prediction, freezes the moment, available prediction is freezed to correspond to constantly Target application mark, and target application is identified into corresponding destination application and is freezed.
It is understood that destination application can also be classified before generating prediction time sequence, and needle Corresponding prediction time sequence is established to each class destination application.Then step 410 can specifically include: by target application journey Sequence is classified, and freezes the moment according to the corresponding prediction of each class destination application and target application mark generates prediction time Sequence.For example, destination application can be divided into game class application program, shopping class application program, instant messaging class application Prediction time sequence after generating prediction time sequence, can be carried out Classification Management by program etc..
Step 412, when electronic equipment, which detects arrival prediction, freezes the moment, judge the operating status of destination application.
It establishes after prediction time sequence, can be monitored in real time according to prediction time sequence.When arrival prediction time When the moment is freezed in prediction in sequence, moment corresponding target application mark is freezed in available prediction, then obtains target and answers With the corresponding destination application of mark.Operating status may include front stage operation and running background, the application journey of front stage operation Sequence is considered as important application program, and the application program of running background is considered as the lower application program of importance. When the moment is freezed in arrival prediction, the operating status of destination application can be first obtained, according to the operation shape of destination application State to destination application carries out freezing to handle.
Step 414, if detecting, destination application is in running background, freezes destination application.
When the moment is freezed in arrival prediction, the operating status of destination application is obtained.If detecting destination application In running background, then freeze destination application.If detecting, destination application is in front stage operation, available to be somebody's turn to do Destination application is switched to the switching moment on backstage from foreground, if the switching between moment and switching moment is freezed in a upper prediction Duration is less than switching duration threshold value, then freezes destination application.For example, a upper prediction is freezed to switch duration constantly for 9:12 Threshold value is 3 minutes.If destination application is front stage operation in 9:12, then the destination application not will do it and freeze. If destination application when 9:14, is switched to running background, then the switching duration of the destination application is just 2 points The destination application then can be carried out freezing to handle by clock since switching duration is less than switching duration threshold value.
If destination application is in running background, it can also judge whether destination application depends on foreground application journey Sequence.Target application is carried out freezing to handle according to the dependence of destination application and foreground application.Specifically, if It detects that destination application is in running background, then detects whether destination application depends on foreground application;If it is not, Then freeze destination application.Relying on indicates that an application program needs to be used in the data ability of another or multiple application programs It can smoothly realize the relationship of the execution to an application program.There are two application programs of dependence, respectively by according to The application program of bad application program and dependence.For example, application program A depends on application program B or application program B quilt Application program A is relied on, i.e., expression application program A, which needs just to be able to achieve using the data of application program B, holds application program A Row, at this point, application program A is the application program for depending on application program B, application program B is to be relied on by application program A Application program.Specifically, in the embodiment of the present application, it relies on application program and just refers to that the backstage relied on by foreground application is answered Use program.
Dependence between application program is not constant always, but real-time change.Electronic equipment can will be applied Dependence between program is recorded.Specifically, interdepending between two application programs is built upon their needs On the basis communicated with each other.Therefore, it includes: detection target that whether detection destination application, which depends on foreground application, It whether there is correspondence between application program and foreground application.If so, illustrating destination application dependent on foreground Application program;If it is not, then illustrating destination application independent of foreground application.
It in an operating system, is to establish the correspondence between application program by defining communication mechanism.Wherein, lead to Letter mechanism includes Socket, Binder, shared drive etc..It is efficient that Binder communicates the one kind for being to realize in android system IPC (Inter-Process Communication, inter-application communication) mechanism, is a kind of client-server (client End-server) communication structure.Client can define a corresponding proxy interface with server, and client call agency connects Mouthful in method when, the parameter of client can be packaged into a Parcel object by the method for proxy interface, then proxy interface Parcel object is sent to the driving of the Binder in inner nuclear layer.Server can read the request data in Binder driving, Then Parcel object is parsed and is handled, and processing result is returned.Socket communication can be to two network applications Program is communicatively coupled, to realize the data exchange of the application program on network.Specifically, it is communicated between local application It can carry out one application program of unique identification by PID (Process Identity, application program identification), but be answered in network It has no idea to realize with interprogram communication.And (Internet Protocol is interconnected between network IP in network communications Agreement) address can with the host in unique identification network, " agreement+port " can with the application program in unique identification host, It therefore is usually by way of " IP address+agreement+port " come one application program of unique identification in Socket communication. Shared drive is exactly that two incoherent application programs is allowed to access the same logical memory, and shared drive is being transported at two A kind of very effective mode of data, the memory shared between different application are shared and transmitted between capable application program It is usually arranged for same section of physical memory.
Optionally, it includes at least one of following manner that whether detection destination application, which depends on foreground application: It detects and whether there is socket correspondence between destination application and foreground application;Destination application is detected with before It whether there is binder correspondence between platform application program;Detect between destination application and foreground application whether into Row memory sharing.
In other embodiments provided by the present application, if detecting, destination application is in running background, obtains mesh Mark the running background duration of application program;If running background duration is more than the first duration threshold value, freeze destination application.Afterwards Platform operation duration can specifically indicate at the time of the last time is switched to backstage from foreground to the duration current time, according to mesh The running background duration of application program is marked to carry out freezing to handle.For example, the first duration threshold value can be 1 minute, if target is answered It is 2 minutes a length of when with the running background of program, then the destination application can be freezed.
Step 416, the history for obtaining destination application freezes duration, and freezes duration acquisition prediction according to history and freeze Duration.
History freezes duration and refers to duration of freezing when destination application freezes every time, i.e., every time from freezing constantly to solution Freeze the duration being spaced between the moment.Electronic equipment can be recorded by freeze-off time table and be applied when freezing application program every time Program is freezed moment and defrosting moment, and calculates the time interval for freezing to arrive the defrosting moment constantly when freezing every time, as Freeze duration.For example, application program is frozen in 07:11,07:31 is defrosted.The moment of freezing of so application program is just 07:11, the moment of thawing just is 07:31, be calculated to freeze duration just be 20 minutes.
The history that acquisition history is freezed duration specifically and be can be in acquisition statistical time range freezes duration, freezes getting history After tying duration, duration acquisition prediction can be freezed according to history and freeze duration.Specifically, duration can be freezed according to history to obtain The duration average value that takes duration average value, and will acquire freezes duration as prediction.Be also possible to according to be greater than freeze duration threshold The history of value freezes duration and obtains duration average value, and the duration average value that then will acquire freezes duration as prediction.It can be with Freeze duration according to duration prediction model meeting history to be learnt, obtains prediction and freeze duration.In the present embodiment, prediction is obtained Freeze the method for duration without specifically limiting.
Step 418, the timing since at the time of destination application enters frozen state.
At the time of entering frozen state from destination application, electronic equipment can star timer and start timing.Electronics Equipment can establish a corresponding timer for each destination application, and each destination application, which enters, freezes shape When state, timing can be carried out according to corresponding timer.Pre-establish the target application mark and timing of destination application The corresponding relationship of the timing markers of device, is identified corresponding timing markers and is searched and start timer and start to count by target application When.By taking android system as an example, system can pre-define a timer, when detecting that destination application is frozen, The corresponding timer of target application identifier lookup, and pass through timer.setBase (SystemClock.elapsedRealtime ()) function resets timer, then starts timer by timer.start () function, start timing.
Step 420, when timing duration is more than the second duration threshold value, then destination application is thawed.
In one embodiment, when timing duration is more than the second duration threshold value, illustrate what destination application was frozen Duration is more than the second duration threshold value, then destination application can thaw.To realize and apply journey in android system There are many ways to freezing and thaw of sequence.By taking one of which as an example, pm can be passed through (package manager assures reason) Order in pm order, can pass through freeze command pm disable [- user USER_ID] PACKAGE_OR_ to realize Application program is set frozen state by COMPONENT, then can also order pm enable [- user USER_ by thawing ID] PACKAGE_OR_COMPONENT will wake up in the application program of frozen state, by freezing list query order Pm list packages-d obtains the application list for being in frozen state, to check the application journey for being in frozen state Sequence.It is understood that being illustrated by taking Android operation system as an example to applied program processing method in the application, still The applied program processing method of the application is not limited in realizing in android system, can be applied in IOS, Saipan, In the operating systems such as Windows, MAC OS (Macintosh Operating System).
After destination application is defrosted, it can control destination application and enter resource constraint state.Wherein, locate Occupancy threshold is less than to the resources occupation rate of electronic equipment at runtime in the application program of resource constraint state.Resource refers to The software or hardware resource that electronic equipment must be used when handling application affairs, such as the CPU (Central of electronic equipment Processing Unit, central processing unit), memory (Memory), hardware, Internet resources, IO (Input-Output, input it is defeated Out) etc..When destination application is in resource constraint state, destination application to the resources occupation rate of electronic equipment just not It can exceed that occupancy threshold, can control the operational efficiency of destination application in this way, reduce the power consumption of electronic equipment.For example, The CPU usage of destination application at runtime is controlled no more than 5%, to reduce destination application to the excessive of CPU Consumption reduces dependence of the user to mobile phone.Cgroups (control groups, control group) can be passed through in cell phone system Come resources occupation rates such as the CPU, memory, IO that control destination application, that is, controls acquired destination application and enter money Source restriction state.
Specifically, the total occupancy of resource that electronic equipment can also be obtained, according to the total occupancy of the resource of electronic equipment come Control destination application enters resource constraint state.Wherein, the total occupancy of resource refers to occupied resource in electronic equipment With the ratio of total resources.After destination application is defrosted, the total occupancy of resource of electronic equipment is obtained, and according to resource Total occupancy enters resource constraint state to control destination application.Specifically, can pre-establish the total occupancy of resource and The corresponding relationship of resource constraint rank, when in resource constraint state destination application to the resources occupation rate of electronic equipment not It can exceed that occupancy threshold.When in different resource constraint ranks, the corresponding occupancy threshold of destination application is different.It obtains The total occupancy of the resource of electronic equipment is taken, and resource constraint rank is obtained according to the total occupancy of resource;Control destination application Into the corresponding resource constraint state of resource constraint rank.For example, the total occupancy of the resource of electronic equipment is divided into 50%~ 60%, then 60%~80%, 80%~100% etc. three occupancy level respectively corresponds slight resource constraint rank, common money Source limits the three grades such as rank and depth resource constraint rank, according to the available corresponding resource constraint of the total occupancy of resource Rank, the corresponding occupancy threshold of different resource constraint ranks are different.It is understood that the corresponding occupancy of different resource Threshold value can be with difference.For example, CPU usage threshold value can be 5%, memory usage threshold value can be 10%.
It in other embodiments, can also be according to the occupancy feelings of destination application controlled using priority to resource Condition pre-establishes the corresponding relationship using priority and resource constraint rank, then preferential according to the application of destination application Grade controls the resource constraint rank into resource constraint state.It can specifically include: after destination application is defrosted, It is corresponding using priority to obtain destination application;Corresponding resource constraint rank is obtained according to application priority;Control mesh Mark application program enters the corresponding resource constraint state of resource constraint rank.
Fig. 6 is the schematic diagram of the resource constraint state of application program in one embodiment.As shown in fig. 6, electronic equipment Resource includes CPU, memory, IO, Internet resources etc., and the state of application program can be divided into normal operating condition, resource constraint shape State and frozen state.Wherein, resource constraint state can be divided into slight resource constraint state, common resources restriction state and depth again Spend resource constraint state.Under different resource restriction state, corresponding available resources 602 and unavailable resource 604 be not identical.From Slight resource constraint state, common resources restriction state to depth resource constraint state, available resources 602 are successively decreased.Normally transporting Under row state, the available resources 602 of application program are 100%.
Applied program processing method provided by the above embodiment, the history for obtaining each application program freeze number, will go through History freezes application program of the number greater than frequency threshold value as destination application.And freezed according to the history of destination application Moment generates the prediction time sequence for freezing the moment comprising prediction, when the moment is freezed in electronic equipment detection arrival prediction, according to The operating status of destination application freezes destination application.Then the history for obtaining destination application freezes duration, and Freeze duration acquisition prediction according to history and freeze duration, is more than that duration is freezed in prediction in the duration that destination application is frozen When, destination application is thawed.Application program can be freezed according to the history freezing data of application program in this way Moment predicted, freezes duration according to history and obtain prediction to freeze duration, and according to prediction freeze the moment and prediction is freezed Freezing and thawing for duration control application program, more accurately can control application program, while reducing electronics The power consumption of equipment.
It should be understood that although each step in the flow chart of Fig. 3 and Fig. 4 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 3 and Fig. 4 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
Applied program processing method can also include: in one embodiment
(1) the application priority for obtaining each application program obtains corresponding frequency threshold value according to application priority;
(2) history for counting each application program installed in electronic equipment freezes number;
(3) it obtains history and freezes application program of the number greater than frequency threshold value as destination application;
(4) it obtains history corresponding when each destination application freezes every time in statistical time range and freezes the moment, according to History freezes to obtain the corresponding prediction of each destination application constantly and freezes the moment;
(5) prediction time sequence is generated according to the target application mark that moment and destination application are freezed in obtained prediction Column;
(6) when electronic equipment, which detects arrival prediction, freezes the moment, judge the operating status of destination application;
(7) if detecting, the destination application is in running background, detect the destination application whether according to Rely in foreground application;
(8) if it is not, then obtaining the running background duration of the destination application;
(9) if the running background duration is more than the first duration threshold value, freeze the destination application;
(10) history for obtaining destination application freezes duration, and when freezing duration according to history and obtaining prediction and freeze It is long;
(11) timing since at the time of destination application enters frozen state;
(12) when timing duration is more than the second duration threshold value, then destination application is thawed.
In one embodiment, as shown in fig. 7, providing the part architecture diagram of a kind of electronic equipment.Wherein, which sets It include JAVA space layer 71, local ccf layer 72 and kernel (Kernel) space layer 73 in standby architecture system.The space JAVA It may include tactful application program 710 on layer 71, electronic equipment can be initiated to each by the strategy application program 710 using journey Sequence freeze and the strategy that thaws, the operation freezing and thaw is realized to each application program in electronic equipment to realize.Example Such as, the application program of backstage power consumption is judged by tactful application program 710, and initiates to do the application program of the backstage power consumption Freeze operation.Freeze management module 722 comprising resource prioritization and limitation management module 720 and platform in local ccf layer 72. Electronic equipment can be by resource prioritization and limitation management module 720 come the priority of real-time servicing application program and corresponding money Source group, the priority and resource group that application program is adjusted according to the demand on upper layer to reach optimization performance save power consumption Effect.Electronic equipment can freeze management module 722 for can freezing from the background for task according to entrance freeze-off time by platform Length is assigned to the frozen crust of corresponding preset different levels, optionally, the frozen crust can include: CPU limitation sleep pattern, CPU freezes sleep pattern, process deep freezing mode.It include UID management module 730, Cgroup module in kernel spacing layer 73 732, time-out is freezed to exit module 734, Binder control module 736, proceeding internal memory recycling module 738.Wherein, UID manages mould Block 730 can User Identity (User Identifier, UID) Lai Guanli third party application based on application program Resource or freezed.It is compared to and (Process Identifier, PID) Lai Jinhang process pipe is identified based on process identity Control is more convenient for being managed collectively the resource of the application of a user by UID.Cgroup module 732 is a set of perfect for providing Central processing unit (Central Processing Unit, CPU), CPUSET, memory (memory), input/output (input/ Output, I/O) and the relevant resource constraint mechanism of Net.Time-out freeze to exit module 734 for solve occur freezing overtime field The exception that scape generates.Binder manages module 736 for realizing the control of the backstage binder priority communicated.Proceeding internal memory returns Receiving module 738 can when third party application is chronically at frozen state for realizing the deep freezing mode of process To discharge the file area of process, to reach the module for saving memory, also accelerate speed of the application program in starting next time. By above-mentioned framework, it can be achieved that applied program processing method in each embodiment of the application.
Fig. 8 is the structural schematic diagram of application processing apparatus in one embodiment.As shown in figure 8, at the application program Reason device 800 freezes module including number statistical module 802, using acquisition module 804, moment prediction module 806 and application 808.Wherein:
Number statistical module 802, the history for counting each application program installed in electronic equipment freeze number.
Using module 804 is obtained, freeze application program of the number greater than frequency threshold value as mesh for obtaining the history Mark application program.
Moment prediction module 806, the history for obtaining the destination application are freezed the moment, and according to the history Freeze to generate prediction time sequence constantly, freezes the moment comprising one or more predictions in the prediction time sequence.
Using module 808 is freezed, for freezing described when the moment is freezed in the electronic equipment detection arrival prediction Destination application.
Application processing apparatus provided by the above embodiment, the history for obtaining each application program freeze number, will go through History freezes application program of the number greater than frequency threshold value as destination application.And freezed according to the history of destination application Moment generates the prediction time sequence for freezing the moment comprising prediction, when the moment is freezed in electronic equipment detection arrival prediction, freezes Destination application.Application program can be freezed to predict constantly according to the history freezing data of application program in this way, And according to prediction freeze control freezing for application program constantly, application program can be controlled more accurately, reduce The power consumption of electronic equipment.
Fig. 9 is the structural schematic diagram of application processing apparatus in another embodiment.As shown in figure 9, the application program Processing unit 900 freezes module including number statistical module 802, using acquisition module 804, moment prediction module 806 and application 808.Wherein:
Threshold value obtains module 902 and is obtained for obtaining the application priority of each application program according to the application priority Take corresponding frequency threshold value.
Number statistical module 904, the history for counting each application program installed in electronic equipment freeze number.
Using module 906 is obtained, freeze application program of the number greater than frequency threshold value as mesh for obtaining the history Mark application program.
Moment prediction module 908, the history for obtaining the destination application are freezed the moment, and according to the history Freeze to generate prediction time sequence constantly, freezes the moment comprising one or more predictions in the prediction time sequence.
Using module 910 is freezed, for freezing described when the moment is freezed in the electronic equipment detection arrival prediction Destination application.
Using defrosting module 912, the history for obtaining the destination application freezes duration, and according to the history Freeze duration acquisition prediction and freezes duration;The timing since at the time of the destination application enters frozen state;Work as timing Duration is more than the second duration threshold value, then the destination application thaws.
Application processing apparatus provided by the above embodiment, the history for obtaining each application program freeze number, will go through History freezes application program of the number greater than frequency threshold value as destination application.And freezed according to the history of destination application Moment generates the prediction time sequence for freezing the moment comprising prediction, when the moment is freezed in electronic equipment detection arrival prediction, according to The operating status of destination application freezes destination application.Then the history for obtaining destination application freezes duration, and Freeze duration acquisition prediction according to history and freeze duration, is more than that duration is freezed in prediction in the duration that destination application is frozen When, destination application is thawed.Application program can be freezed according to the history freezing data of application program in this way Moment predicted, freezes duration according to history and obtain prediction to freeze duration, and according to prediction freeze the moment and prediction is freezed Freezing and thawing for duration control application program, more accurately can control application program, while reducing electronics The power consumption of equipment.
In one embodiment, it is every to be also used to obtain each destination application in statistical time range for moment prediction module 908 Secondary corresponding history when freezing freezes the moment, freezes to obtain each destination application constantly according to the history corresponding pre- The moment is freezed in survey;Prediction is generated according to the target application mark that moment and the destination application are freezed in the obtained prediction Moment sequence.
In one embodiment, it is also used to reach prediction jelly when electronic equipment detection using freezing module 910 When tying the moment, the operating status of the destination application is judged;If detecting, the destination application is in running background, Then freeze the destination application.
In one embodiment, if being also used to detect that the destination application is in backstage using module 910 is freezed Operation, then detect whether the destination application depends on foreground application;If it is not, then freezing the target application journey Sequence.
In one embodiment, if being also used to detect that the destination application is in backstage using module 910 is freezed Operation, then obtain the running background duration of the destination application;If the running background duration is more than the first duration threshold value, Then freeze the destination application.
The division of modules is only used for for example, in other embodiments in above-mentioned application processing apparatus, can Application processing apparatus is divided into different modules as required, with complete above-mentioned application processing apparatus whole or Partial function.
The realization of the modules in application processing apparatus provided in the embodiment of the present application can be computer program Form.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in On the memory of terminal or server.When the computer program is executed by processor, side described in the embodiment of the present application is realized The step of method.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the processor executes applied program processing method provided by the above embodiment.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is above-mentioned The applied program processing method that embodiment provides.
The embodiment of the present application also provides a kind of electronic equipment.As shown in Figure 10, for ease of description, it illustrates only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone For:
Figure 10 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to figure 10, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 10 does not constitute opponent The restriction of machine may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 1080;The data of uplink can also be sent to base station.In general, RF circuit includes But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 1010 can also be communicated with network and other equipment by wireless communication.It is above-mentioned wireless Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in communication Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1020 can be led It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.
Input unit 1030 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1000 It sets and the related key signals of function control inputs.Specifically, input unit 1030 may include touch panel 1031 and other Input equipment 1032.Touch panel 1031, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user is using finger, stylus any suitable object or attachment on touch panel 1031 or near touch panel 1031 Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1031 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus Information is touched, and is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and added To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 1031.In addition to touch panel 1031, input unit 1030 can also include other input equipments 1032.Specifically, other are inputted Equipment 1032 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc. Kind is a variety of.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041.In one embodiment, liquid crystal display can be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel 1041.In one embodiment, touch panel 1031 can cover display panel 1041, After touch panel 1031 detects touch operation on it or nearby, processor 1080 is sent to determine touch event Type is followed by subsequent processing device 1080 according to the type of touch event and provides corresponding visual output on display panel 1041.Although In Figure 10, touch panel 1031 and display panel 1041 are the input and input for realizing mobile phone as two independent components Function, but in some embodiments it is possible to touch panel 1031 and display panel 1041 are integrated and are realized the input of mobile phone And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1041, and proximity sensor can close display when mobile phone is moved in one's ear Panel 1041 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal Vertical screen switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1060, loudspeaker 1061 and microphone 1062 can provide the audio interface between user and mobile phone.Sound Electric signal after the audio data received conversion can be transferred to loudspeaker 1061, by 1061 turns of loudspeaker by frequency circuit 1060 It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit Audio data is converted to after 1060 receptions, then by after the processing of audio data output processor 1080, can be sent out through RF circuit 1010 Another mobile phone is given, or audio data is exported to memory 1020 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 10 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone 1000, it can according to need and save Slightly.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 1080.
Mobile phone 1000 further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 1080 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 1080 included by the electronic equipment executes the calculating of storage on a memory The step of realizing applied program processing method provided by the above embodiment when machine program.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of applied program processing method characterized by comprising
The history for each application program installed in statistics electronic equipment freezes number;
It obtains the history and freezes application program of the number greater than frequency threshold value as destination application;
The history for obtaining the destination application is freezed the moment, and is freezed to generate prediction time sequence constantly according to the history It arranges, freezes the moment comprising one or more predictions in the prediction time sequence;
When electronic equipment detection, which reaches the prediction, freezes the moment, freeze the destination application.
2. the method according to claim 1, wherein the acquisition history freezes number greater than frequency threshold value Application program as destination application before further include:
The application priority for obtaining each application program obtains corresponding frequency threshold value according to the application priority.
3. the method according to claim 1, wherein when the history for obtaining the destination application is freezed Carve, and freeze to generate prediction time sequence constantly according to the history include:
It obtains history corresponding when each destination application freezes every time in statistical time range and freezes the moment, according to the history Freeze to obtain the corresponding prediction of each destination application constantly and freezes the moment;
Prediction time sequence is generated according to the target application mark that moment and the destination application are freezed in the obtained prediction Column.
4. the method according to claim 1, wherein described freeze when electronic equipment detection reaches the prediction When tying the moment, freezing the destination application includes:
When electronic equipment detection, which reaches the prediction, freezes the moment, the operating status of the destination application is judged;
If detecting, the destination application is in running background, freezes the destination application.
5. according to the method described in claim 4, it is characterized in that, if described detect that the destination application is in backstage Operation, then freezing the destination application includes:
If detecting, the destination application is in running background, detects whether the destination application depends on foreground Application program;
If it is not, then freezing the destination application.
6. according to the method described in claim 4, it is characterized in that, if described detect that the destination application is in backstage Operation, then freezing the destination application includes:
If detecting, the destination application is in running background, when obtaining the running background of the destination application It is long;
If the running background duration is more than the first duration threshold value, freeze the destination application.
7. method according to any one of claim 1 to 6, which is characterized in that the method also includes:
The history for obtaining the destination application freezes duration, and when freezing duration according to the history and obtaining prediction and freeze It is long;
Then the control destination application enters after frozen state further include:
The timing since at the time of the destination application enters frozen state;
When timing duration is more than the second duration threshold value, then the destination application is thawed.
8. a kind of application processing apparatus characterized by comprising
Number statistical module, the history for counting each application program installed in electronic equipment freeze number;
Using module is obtained, freeze application program of the number greater than frequency threshold value as target application journey for obtaining the history Sequence;
Moment prediction module, the history for obtaining the destination application are freezed the moment, and when being freezed according to the history It carves and generates prediction time sequence, freeze the moment comprising one or more predictions in the prediction time sequence;
Using module is freezed, for freezing the target and answering when the moment is freezed in the electronic equipment detection arrival prediction Use program.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor executes the step of the method as described in any one of claims 1 to 7 Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810031035.XA 2018-01-12 2018-01-12 Application program processing method and device, electronic equipment and computer readable storage medium Active CN110046030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810031035.XA CN110046030B (en) 2018-01-12 2018-01-12 Application program processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810031035.XA CN110046030B (en) 2018-01-12 2018-01-12 Application program processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110046030A true CN110046030A (en) 2019-07-23
CN110046030B CN110046030B (en) 2021-08-31

Family

ID=67264273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810031035.XA Active CN110046030B (en) 2018-01-12 2018-01-12 Application program processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110046030B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078405A (en) * 2019-12-10 2020-04-28 Oppo(重庆)智能科技有限公司 Memory allocation method and device, storage medium and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004258936A (en) * 2003-02-26 2004-09-16 Nec Corp Mobile communication terminal, fail-safe method used therefor, and its program
CN102761667A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Intelligent cell phone and process management method thereof
US20120324481A1 (en) * 2011-06-16 2012-12-20 Samsung Electronics Co. Ltd. Adaptive termination and pre-launching policy for improving application startup time
EP2538327A1 (en) * 2011-06-16 2012-12-26 Samsung Electronics Co., Ltd. Adaptive Termination and Pre-Launching Policy for Improving Application Startup Time
CN103853616A (en) * 2014-02-20 2014-06-11 福建升腾资讯有限公司 Method for realizing automatic closing and hardware resource release of cloud computing virtual desktop
CN105243322A (en) * 2015-10-10 2016-01-13 深圳市金立通信设备有限公司 Application program control method and terminal
EP3091453A1 (en) * 2015-05-06 2016-11-09 Vestel Elektronik Sanayi ve Ticaret A.S. Designing a longevity test for a smart tv
CN106293391A (en) * 2016-07-29 2017-01-04 宇龙计算机通信科技(深圳)有限公司 Freezing or defreezing method, device and mobile terminal of application
CN106372462A (en) * 2016-08-31 2017-02-01 北京深思数盾科技股份有限公司 Method for realizing time limitation of software under offline state
CN107450711A (en) * 2017-07-31 2017-12-08 广东欧珀移动通信有限公司 Applied program processing method, device, storage medium and terminal
CN107506019A (en) * 2017-08-07 2017-12-22 北京小米移动软件有限公司 Management method and device, terminal, the storage medium of application program

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004258936A (en) * 2003-02-26 2004-09-16 Nec Corp Mobile communication terminal, fail-safe method used therefor, and its program
US20120324481A1 (en) * 2011-06-16 2012-12-20 Samsung Electronics Co. Ltd. Adaptive termination and pre-launching policy for improving application startup time
EP2538327A1 (en) * 2011-06-16 2012-12-26 Samsung Electronics Co., Ltd. Adaptive Termination and Pre-Launching Policy for Improving Application Startup Time
CN102761667A (en) * 2012-06-29 2012-10-31 惠州Tcl移动通信有限公司 Intelligent cell phone and process management method thereof
CN103853616A (en) * 2014-02-20 2014-06-11 福建升腾资讯有限公司 Method for realizing automatic closing and hardware resource release of cloud computing virtual desktop
EP3091453A1 (en) * 2015-05-06 2016-11-09 Vestel Elektronik Sanayi ve Ticaret A.S. Designing a longevity test for a smart tv
CN105243322A (en) * 2015-10-10 2016-01-13 深圳市金立通信设备有限公司 Application program control method and terminal
CN106293391A (en) * 2016-07-29 2017-01-04 宇龙计算机通信科技(深圳)有限公司 Freezing or defreezing method, device and mobile terminal of application
CN106372462A (en) * 2016-08-31 2017-02-01 北京深思数盾科技股份有限公司 Method for realizing time limitation of software under offline state
CN107450711A (en) * 2017-07-31 2017-12-08 广东欧珀移动通信有限公司 Applied program processing method, device, storage medium and terminal
CN107506019A (en) * 2017-08-07 2017-12-22 北京小米移动软件有限公司 Management method and device, terminal, the storage medium of application program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
S. YAMANE 等: "Verification system for real-time specification based on extended real-time logic", 《 PROCEEDINGS SECOND INTERNATIONAL WORKSHOP ON REAL-TIME COMPUTING SYSTEMS AND APPLICATIONS》 *
李怀涛: "基于Qt的无人机综合管理系统设计与实现", 《电子设计工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078405A (en) * 2019-12-10 2020-04-28 Oppo(重庆)智能科技有限公司 Memory allocation method and device, storage medium and electronic equipment
CN111078405B (en) * 2019-12-10 2022-07-15 Oppo(重庆)智能科技有限公司 Memory allocation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110046030B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109992398A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992438A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110032267A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109992400A (en) Resource allocation methods, device, mobile terminal and computer readable storage medium
CN108112063A (en) Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN108616653A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109992367A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110045809A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN110018900A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992397A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110032266A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110032429A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN108549593A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110032439A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN109992399A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110032397A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992323A (en) Process handling method and device, electronic equipment, computer readable storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant