CN107463435A - Application process priority management method, apparatus, storage medium and electronic equipment - Google Patents

Application process priority management method, apparatus, storage medium and electronic equipment Download PDF

Info

Publication number
CN107463435A
CN107463435A CN201710643255.3A CN201710643255A CN107463435A CN 107463435 A CN107463435 A CN 107463435A CN 201710643255 A CN201710643255 A CN 201710643255A CN 107463435 A CN107463435 A CN 107463435A
Authority
CN
China
Prior art keywords
navigation
priority
navigation process
duration
keep
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
CN201710643255.3A
Other languages
Chinese (zh)
Other versions
CN107463435B (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 CN201710643255.3A priority Critical patent/CN107463435B/en
Publication of CN107463435A publication Critical patent/CN107463435A/en
Application granted granted Critical
Publication of CN107463435B publication Critical patent/CN107463435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)

Abstract

The invention discloses a kind of application process priority management method, apparatus, storage medium and electronic equipment, methods described to include:When detecting running background navigation process, navigation task parameter corresponding to navigation process is obtained, navigation task parameter includes completing the experience duration estimated between duration, and current time distance navigation task initial time of navigation task;If experience duration is less than the duration of estimating of navigation task, priority corresponding to navigation process is obtained;Judge whether the priority of navigation process meets the keep-alive condition for allowing electronic equipment to carry out keep-alive to navigation process;If the priority of navigation process is unsatisfactory for keep-alive condition, the priority of navigation process is adjusted, so that the priority of the navigation process after adjustment meets keep-alive condition.In the embodiment of the present invention, electronic equipment can be on the premise of ensureing to the cleaning effect for the process of being of little use, it is ensured that the normal operation for the navigation process being used.

Description

Application process priority management method, apparatus, storage medium and electronic equipment
Technical field
The present invention relates to electronic technology field, and in particular to a kind of application process priority management method, apparatus, storage are situated between Matter and electronic equipment.
Background technology
In current electronic device, such as smart mobile phone, using needing to realize operation by background process.But in order to Running efficiency of system is improved, usual system can periodically clear up background process automatically, and the not high application of utilization rate can be preferentially closed. Some are applied to lift the survival rate of oneself application, and application processes pull-up and keep-alive can be synchronously realized by account data, So that the process of these applications operates in system background always, so as to influence the cleaning effect of background process, increase the consumption of system Electricity.
Therefore, the priority of each application program can be classified, is carried out clearly to background process in the prior art During reason, application process conventional, that priority is high can be subjected to keep-alive processing, and to it is being of little use, priority is low Application process is cleared up, on the premise of realizing in the application process being of little use by clearing up and improving running efficiency of system, Ensure the normal operation of conventional application process.But the priority of each application process can not be adjusted arbitrarily after setting, be faced When using it is some be of little use application process when, these application processes that are of little use often excessively are cleared up, influence user to navigation The normal use of process.
The content of the invention
The embodiment of the present invention provides a kind of application process priority management method, apparatus, storage medium and electronic equipment, can Effectively to reduce the power consumption of electronic equipment.
In a first aspect, the embodiment of the present invention provides a kind of application process priority management method, applied to electronic equipment, bag Include:
When detecting running background navigation process, navigation task parameter corresponding to the navigation process is obtained, it is described to lead Boat task parameters estimate duration including completion navigation task, and current time is between the navigation task initial time Experience duration;
If the experience duration estimates duration less than the navigation task, obtain preferential corresponding to the navigation process Level;
Judge whether the priority of the navigation process meets to allow the electronic equipment to protect the navigation process Keep-alive condition living;
If the priority of the navigation process is unsatisfactory for the keep-alive condition, the priority of the navigation process is adjusted, So that the priority of the navigation process after adjustment meets the keep-alive condition.
Second aspect, a kind of application process priority management device provided in an embodiment of the present invention, the application process are excellent First level managing device, including:
Position acquisition module, for when detecting running background navigation process, obtaining and being led corresponding to the navigation process Boat task parameters, the navigation task parameter includes completing the duration of estimating of navigation task, and is led described in current time distance Experience duration between boat task initial time;
Priority acquisition module, if estimating duration less than the navigation task for the experience duration, obtain institute State priority corresponding to navigation process;
Whether judge module, the priority for judging the navigation process meet to carry out keep-alive to the navigation process Keep-alive condition;
Priority adjusting module, if the priority for the navigation process is unsatisfactory for the keep-alive condition, adjust The priority of the navigation process, so that the priority of the navigation process after adjustment meets the keep-alive condition.
The third aspect, the embodiment of the present invention provide a kind of storage medium, and the storage medium stores a plurality of instruction, described more When bar instruction is suitable to run on computers so that the computer performs application process priority management side as described above Method.
Fourth aspect, a kind of electronic equipment, including processor and memory, a plurality of instruction of memory storage are described Processor is used to perform application process priority management method as described above by loading the instruction in the memory.
A kind of application process priority management method provided in an embodiment of the present invention, when detect running background navigate process When, navigation task parameter corresponding to electronic equipment navigation process is obtained, by judging whether undergo duration in navigation task parameter Duration is estimated less than navigation task, if contrast of the experience duration with estimating duration shows electronic equipment with not reaching navigation purpose When position and the relatively low navigation process priority, the priority of the navigation process is adjusted, to avoid the navigation process because of priority It is relatively low and by cleaned system influence user normal use the problem of, so as to ensure to the cleaning effect for the process of being of little use before Put, it is ensured that the normal operation for the navigation process being used.
Brief description of the drawings
Below in conjunction with the accompanying drawings, by the way that the embodiment of the present invention is described in detail, technical scheme will be made And other beneficial effects are apparent.
Fig. 1 is the implementation process figure of application process priority management method provided in an embodiment of the present invention.
Fig. 2 is the first application scenario diagram of application process priority management method provided in an embodiment of the present invention.
Fig. 3 is the flow chart of acquisition navigation task parameter provided in an embodiment of the present invention.
Fig. 4 is another flow chart of acquisition navigation task parameter provided in an embodiment of the present invention.
Fig. 5 is another flow chart of acquisition navigation task parameter provided in an embodiment of the present invention.
Fig. 6 is the second application scenario diagram of application process priority management method provided in an embodiment of the present invention.
Fig. 7 is another implementation process figure of application process priority management method provided in an embodiment of the present invention.
Fig. 8 is the structural representation of application process priority management device provided in an embodiment of the present invention.
Fig. 9 is the structural representation of time-obtaining module provided in an embodiment of the present invention.
Figure 10 is another structural representation of time-obtaining module provided in an embodiment of the present invention.
Figure 11 is another structural representation of time-obtaining module provided in an embodiment of the present invention.
Figure 12 is another structural representation of application process priority management device provided in an embodiment of the present invention.
Figure 13 is the structural representation of electronic equipment provided in an embodiment of the present invention.
Figure 14 is another structural representation of electronic equipment provided in an embodiment of the present invention.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention is by with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer of finger, which performs, to be included by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.The data or the opening position being maintained in the memory system of the computer are changed in this operation, and its is reconfigurable Or change the running of the computer in a manner of known to the tester of this area in addition.The data structure that the data are maintained For the provider location of the internal memory, it has the particular characteristics as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that it is not represented as a kind of limitation, this area tester will appreciate that plurality of step as described below and behaviour Also may be implemented among hardware.
Term as used herein " module " can be the software object performed in the arithmetic system.Difference as described herein Component, module, engine and service can be the objective for implementation in the arithmetic system.And device and method as described herein can be with The mode of software is implemented, and can also be implemented certainly on hardware, within the scope of the present invention.
Term " first ", " second " and " the 3rd " in the present invention etc. is to be used to distinguish different objects, rather than for retouching State particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include. Such as contain the step of process, method, system, product or the equipment of series of steps or module is not limited to list or Module, but some embodiments also include the step of not listing or module, or some embodiments also include for these processes, Method, product or equipment intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Wherein, the executive agent of the embodiment of the present invention can be electronic equipment, electronic equipment can include mobile phone (or Referred to as " honeycomb " phone, such as smart mobile phone) or with wireless communication module computer, for example, tablet personal computer, can also be The car-mounted computer of portable, pocket, hand-held, they exchange language and/or data with wireless access network.It is for example, personal Communication service (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, WLL (Wireless Local Loop, WLL) Stand, the equipment such as personal digital assistant (Personal Digital Assistant, PDA), be not limited thereto.
When this method is applied in electronic equipment, electronic equipment can include but is not limited to smart mobile phone, tablet personal computer, pen Remember the terminals such as this computer, palm PC, Intelligent bracelet.Wherein, the application process priority management method may operate at electronics In the operating system of equipment, it may include but it is not limited to Windows operating system, Mac OS operating systems, Android operations system System, IOS, Symbian (Saipan) operating system, Windows Phone operating systems etc., the embodiment of the present invention is not Limit.
As shown in figure 1, a kind of application process priority management method, comprises the following steps:
Step S101, when detecting running background navigation process, obtain navigation task corresponding to the navigation process and join Number.
In certain embodiments, can be by pre-setting navigation-related application list, the application that will be currently running Matching is compared with the navigation-related application list in title or attribute, to judge whether the navigation type being currently running Using determining whether the navigation process related to navigation feature.Or there is positioning authority by monitoring whether to exist Associated process be currently running, and the frequent degree for combining its location action determines whether the navigation related to navigation feature Process.
When it is determined that during in the presence of the navigation process related to navigation feature, electronic equipment can be triggered to being led corresponding to navigation process The acquisition for task parameters of navigating.
Navigation task parameter includes completing the duration of estimating of navigation task, and during the starting of current time distance navigation task Experience duration between quarter.
In certain embodiments, estimating duration can the distance based on navigation task, traffic and/or the vehicles etc. The time that factor is spent to needs is estimated, for example, it is assumed that the distance of navigation task is 100 kilometers, and the average car of automobile Speed is 50 kilometers/hour, then a length of 2 hours when estimating of the navigation task in ideal conditions.It is a length of from navigation during experience Task, which starts, is continued for timing obtains duration, for example, it is assumed that navigation task separately begins from 2 pm 10, and obtains through lasting At the time of when long for 2 points 40 minutes, then spent 30 minutes of a length of navigation task when undergoing.
In certain embodiments, electronic equipment can start or call the timer for timing, and the timer can be place Manage the timer built in unit or realized using other available for the timing element of timing, when being originated by setting Carve, you can the duration from initial time to current time is obtained by timing.
For example, with reference to Fig. 2, the first of application process priority management method provided in an embodiment of the present invention is shown in figure Application scenario diagram, the application process of entitled " A navigation " is included in the application process in figure, should " A navigation " belong to navigation process In register, moreover, also comprising music process, video process etc., certainly, the method in the present embodiment is primarily directed to Navigation process.Now, electronic equipment can obtain navigation task parameter corresponding to navigation process, can be obtained by navigation task parameter " 2 hours " a length of when estimating of navigation task, initial time be " 10 divide when 13 ", current time be " 40 divide when 13 ", can be with A length of 30 points when obtaining relative time namely experience between the two by the initial time in navigation task and current time Clock.
Step S102, judges to undergo duration and whether is less than navigation task and estimates duration.
Estimate duration according to what electronic equipment completed navigation task, and current time apart from the navigation task originate when Experience duration between quarter, judges to undergo duration and whether is less than navigation task and estimates duration;If so, then obtain navigation process pair The priority answered;If it is not, action is not performed then.
In certain embodiments, can obtain navigation task estimates duration, initial time and current time, and then obtains The relative time namely experience duration of initial time and current time between the two are obtained, and duration will be undergone and estimate duration Judged, it is determined that duration is estimated with undergoing the magnitude relationship of duration, so as to estimate duration with undergoing the size of duration according to this Relation determines whether the navigation task has been completed.
Step S103, obtain priority corresponding to navigation process.
If experience duration is less than the duration of estimating of navigation task, priority corresponding to navigation process is obtained.
In certain embodiments, priority is the default parameter related to process, and the significance level of process passes through preferential Level makes a distinction, and electronic equipment can determine whether to carry out keep-alive to it according to the height of the process priority.It is excellent when process When first level is higher, it may be determined that the process belongs to the higher process of significance level, if electronic equipment is needed in cleaning system The normal operation of the process can be maintained during process, and the low process of priority is closed, removed;Or apply and holding , it is necessary to perform the pull-up operation to own process, electronic equipment can also be according to the height of priority under the instruction of row cycle synchronisation The low process pull-up determined whether to the application.
When determining whether experience duration is less than when estimating duration of navigation task, it can now determine that user is very possible Need to be continuing with the navigation process, if now because the priority of the navigation process is relatively low and by cleaned system, can influence User now needs to obtain the priority of the navigation process, to carry to judgment step below to the normal use of the navigation process For foundation.
Step S104, judges whether the priority of navigation process meets the keep-alive condition that keep-alive is carried out to navigation process.
System can be classified to the priority of each application program first, in the process cleared up background process In, the high application process of conventional, priority can be carried out to keep-alive, and the low application process of being of little use, priority is carried out Cleaning.The process of keep-alive, the process after closing is either mainly subjected to drawing work by the application process close To realize.
In certain embodiments, keep-alive condition can be parameter one comparison threshold of offer for the priority of the process Value, determines whether the priority of the navigation process exceeds threshold value by comparing, and determines whether to meet the keep-alive condition;
For example, setting the priority limit of process as 1-5, the smaller then priority of numeral is lower, if keep-alive condition provides this The threshold value of part is 3, and the priority limit for meeting keep-alive condition is 3-5, then the priority of the navigation process needs to expire more than 3 Sufficient keep-alive condition.
In further embodiments, can be by performing whether following steps meet keep-alive bar to the priority for process of navigating Part is judged:
Acquisition meets between priority area corresponding to keep-alive condition;
It is determined that whether the priority of navigation process is between priority area;
If, it is determined that the priority for process of navigating meets keep-alive condition.
Priority typically has a span, such as sets the priority limit of process as 1-5, can between the priority area To be set in 3-5, it is determined that navigation process priority whether between priority area during, can be by the navigation of acquisition It is compared between the priority of process and the priority area, such as the priority of the navigation process is 2, then understands to be somebody's turn to do by comparing The priority of navigation process is not between the priority area, so being unsatisfactory for keep-alive condition.
Certainly, significance level height, priority limit and the threshold value for judgement corresponding to the priority height of process Value, can be set according to being actually needed, the concrete numerical value of above-mentioned case is only used for illustrating, not to we Case is defined.
Step S105, the priority of navigation process is adjusted, so that the priority of the navigation process after adjustment meets keep-alive bar Part.
If the priority of navigation process is unsatisfactory for keep-alive condition, the priority of navigation process is adjusted, so that after adjustment The priority of navigation process meet keep-alive condition.
In certain embodiments, when the priority for getting navigation process, whether the navigation process priority can be met Keep-alive condition is judged, if the navigation process is unsatisfactory for keep-alive condition, illustrates that the navigation process is likely to by system Process cleanup action next time is to removing, or actively will not carry out pull-up to the navigation process.After there is the above situation, User needs that the navigation process can only be reloaded when using the navigation process, it is likely that cause the loss of data of navigation task, Influence the normal use of user.
In order to avoid the generation of problem, now need to be adjusted the priority for process of navigating, in certain embodiments, Can with calling system to priority of a process modification authority, to be modified to the priority for process of navigating so that this navigate into The priority of journey can meet that system carries out the minimum requirements of keep-alive to process.
For example, setting the priority limit of process as 1-5, the smaller then priority of numeral is lower, if keep-alive condition provides this The threshold value of part is 3, and the priority limit for meeting keep-alive condition is 3-5.Now, if the priority of the navigation process is 2, it is clear that small In the threshold value 3 of keep-alive condition, then the priority of the navigation process can be adjusted to 3 or more, so that system will not be led to this Boat process is cleared up.
A kind of application process priority management method provided in an embodiment of the present invention, when detect running background navigate process When, navigation task parameter corresponding to navigation process is obtained, navigation task parameter includes completing the duration of estimating of navigation task, and Experience duration between current time distance navigation task initial time;If experience duration estimates duration less than navigation task, Then obtain priority corresponding to navigation process;Judge whether the priority of navigation process meets to allow electronic equipment to navigation process Carry out the keep-alive condition of keep-alive;If the priority of navigation process is unsatisfactory for the keep-alive condition, the preferential of navigation process is adjusted Level, with avoid the navigation process because priority is relatively low and the problem of influence the normal use of user by cleaned system, so as to protecting On the premise of demonstrate,proving the cleaning effect to the process of being of little use, it is ensured that the normal operation for the navigation process being used.
Fig. 3 shows the implementation process of acquisition navigation task parameter provided by the invention, for convenience of description, only shows in figure The part related to present invention is gone out.
As shown in figure 3, in certain embodiments, step S101 can have implementations below:
Step S201, when detecting running background navigation process, obtain and led described in default first history duration Boat process carries out the synchronization times of active synchronization to data;
First history duration can be the duration manually set, e.g. 1 hour, 1 day or 1 week etc., during first history Length can be based on actual use situation and formulate, and the embodiment of the present invention is not construed as limiting to this.
According to the navigation process data are carried out with the synchronization times of active synchronization, use of the user to the application can be known Situation, during user frequently uses the application in a period of time, caused navigation process carries out active synchronization to data Synchronization times it is also more, using the navigation process to data carry out active synchronization synchronization times come judge application use feelings Condition, it can effectively know the liveness of navigation process during this period of time.
Step S202, judges whether synchronization times are more than or equal to default frequency threshold value;
In certain embodiments, the frequency threshold value data for judgement can be obtained, the first history duration that will be got The synchronization times that interior navigation process carries out active synchronization to data are compared with default frequency threshold value, obtain comparison result.
Frequency threshold value can be 5 times, 10 any one inferior integer, and the frequency threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
For example, certain navigation process, in 1 hour before current time, the number that data are carried out with active synchronization is 5 times, , can be with if the number that the frequency threshold value is set as carrying out data in 1 hour before current time active synchronization is 3 times Determine that the number is more than frequency threshold value.It should be noted that the concrete numerical value of above-mentioned case is only used for illustrating, not to this Scheme is defined.
Step S203, if so, then obtaining the current location of electronic equipment and the mesh that navigates corresponding with the navigation process Position.
It should be understood that in order to avoid repeating, the specific acquisition of navigation task parameter corresponding to electronic equipment navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the fig. 3 embodiment, before navigation task parameter corresponding to electronic equipment navigation process is obtained, using acquisition The navigation process to data carry out active synchronization synchronization times, and using this to data carry out active synchronization synchronization times and The comparison of default frequency threshold value acts to decide whether to perform acquisition, can further know the liveness feelings of the navigation process Condition, to the navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation enter The significance level of journey, so as to be decided whether to carry out the action of next step according to the significance level of the navigation process.
As shown in figure 4, in certain embodiments, step S101 can also have implementations below:
Step S301, when detecting running background navigation process, obtain navigation process and be in the second history duration The run time on system foreground;
Second history duration can be the duration manually set, e.g. 1 hour, 1 day etc., and the second history duration can be with Formulated based on actual use situation, the embodiment of the present invention is not construed as limiting to this.
In certain embodiments, when know navigation process has been currently running in electronic equipment when, can to it is each navigate into The level of journey is monitored.
For example, when knowing in electronic system " A navigation " be present, then the process of " the A navigation " is monitored, when user makes When using " A navigation ", the process of " A navigation " can be called to system foreground, when now can be to the operation of the process of " the A navigation " Between carry out timing.Assuming that a length of 1 hour during the second history, then before obtaining navigation process and being in system in the second history duration During the run time of platform, the process of " the A navigation " is transferred in first 1 hour of current time during lasting in system foreground Between.
When user is using some application, the process of the application can be called to system foreground, and statistics navigation process is in system The run time on foreground can effectively know the use frequent degree of navigation task.
Step S302, judges whether the run time is more than or equal to default time threshold;
In certain embodiments, the time threshold for judgement can be obtained, the navigation process got is gone through second The run time in system foreground is compared with default time threshold in history duration, obtains comparison result.
The time threshold can be the threshold value being manually set or the time threshold based on certain Rule.Its Unit can be arranged to the accounting or concrete numerical value that the process in the second history duration is located at the time on system foreground, The embodiment of the present invention is not construed as limiting to this.
For example, the second history duration is set in first 1 hour of current time, navigation process system front stage operation when Between threshold value be arranged to run 30 minutes in first 1 hour of time in this prior, and the navigation process got is in current time The run time in system foreground is 40 minutes in first 1 hour, then by comparing, can know the navigation process when current Between first 1 hour in the run time on system foreground be more than the time threshold.
Step S303, if so, then obtaining the current location and navigation purpose status corresponding with the navigation process Put.
It should be understood that in order to avoid repeating, the specific of navigation task parameter corresponding to the navigation process of electronic equipment is obtained Take method may refer to Fig. 1 for embodiment in introduction.
In the fig. 4 embodiment, before navigation task parameter corresponding to electronic equipment navigation process is obtained, using acquisition Navigation process is in the run time on system foreground in the second history duration, and utilizes the run time and default time threshold Value is compared to decide whether to perform acquisition action, can further know the liveness situation of the navigation process, this is led Boat process whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process important journey Degree, so as to be decided whether to carry out the action of next step according to the significance level of the navigation process.
As shown in figure 5, in certain embodiments, step S101 can also have implementations below:
Step S401, when detecting running background navigation process, obtain first that the electronic equipment is currently located Put;
Step S402, getting the first position and after preset duration, obtaining the current institute of the electronic equipment The second place;
In certain embodiments, electronic equipment can know navigation process be present when, obtain electronic equipment current time The position at place is as first position, and after reaching sometime by preset duration, then where obtaining primary electron equipment Current location as the second place.
When being set as first for example, as shown in fig. 6, when electronic equipment is known in the presence of navigation process, at the time of will at that time Carve, and it is " Shenzhen Che Kung Temple " to obtain first position of the electronic equipment where at the first moment., can after preset duration It was set as the second moment to be set as 1 hour, at the time of by 1 hour the first moment of distance, obtains electronic equipment at the second moment When where the second place be " Dongguan Chang'an ".
It should be understood that the computational methods of the preset duration and specific change in location distance can be according to being actually needed Set, the concrete numerical value of above-mentioned case is only used for illustrating, and this programme is not defined.
Step S403, judges whether the change in location distance between the first position and the second place is more than first Distance threshold;
In certain embodiments, can be by first position and the after the geographic position data of two positions is obtained The geographic position data of two the two positions of positions is compared, calculated, and obtains the relative distance between two positions, or two Between individual position the path distance through path, by the relative distance or path distance be set to preset two moment between position Put change distance.
Next, the first distance threshold for judgement is obtained, by between the first position got and the second place Change in location distance be compared with default first distance threshold.
First distance threshold can be any one integer, and first distance threshold can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
For example, the first distance threshold is set as 100 meters, then only when the position corresponding to two moment change in location away from During from more than 100 meters, default condition could be met.
Step S404, if so, then obtaining navigation task parameter corresponding to the navigation process.
It should be understood that in order to avoid repeating, the specific of navigation task parameter corresponding to the navigation process of electronic equipment is obtained Take method may refer to Fig. 1 for embodiment in introduction.
In the 5 embodiment of figure 5, before navigation task parameter corresponding to electronic equipment navigation process is obtained, using acquisition Change in location distance between two moment of the navigation process, and utilize the change in location distance with default first apart from threshold Value is compared to decide whether to perform acquisition action, can further know the liveness situation of the navigation process, this is led Boat process whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process important journey Degree, so as to be decided whether to carry out the action of next step according to the significance level of the navigation process.
Referring to Fig. 7, another implementation process of application process priority management method is shown in figure, for convenience of description, The part related to present invention is illustrate only in figure.
Shown in Fig. 7, a kind of application process priority management method, comprise the following steps:
Step S501, when detecting running background navigation process, obtain navigation task corresponding to the navigation process and join Number.
Step S502, judges to undergo duration and whether is less than navigation task and estimates duration;Led if the experience duration is less than Boat task estimates duration, then obtains priority corresponding to navigation process;If it is not, then terminate the step.
Electronic equipment is judged currently whether on the navigation purpose position, can be by judging between navigation task parameter Distance whether be less than default second distance threshold value and realize.
In certain embodiments, coordinate position of the navigation task parameter in geographic coordinate system can be obtained, and passes through two The coordinate difference of individual position knows its relative distance, current to judge by judging whether the relative distance is less than preset value Whether position is on the navigation purpose position.
Second predetermined threshold value can be any one integer, and the second distance threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
For example, second distance threshold value is set as 100 meters, then the distance only between navigation task parameter is less than 100 meters When, default condition could be met.
Step S503, obtain priority corresponding to navigation process.
Step S504, judges whether the priority of navigation process meets the keep-alive condition that keep-alive is carried out to navigation process.
Step S505, the priority of navigation process is adjusted, so that the priority of the navigation process after adjustment meets keep-alive bar Part.
Step S506, when monitoring that undergoing duration is more than or equal to when estimating duration of navigation task, then will navigate process Preferential level restoration to adjust before priority.
In certain embodiments, in order to improve management and control degree of the system to process, in navigation task corresponding to navigation process Duration is undergone after end, i.e., in navigation task and is more than or equal to when estimating duration of navigation task, it is believed that the navigation is appointed Business has been completed, and the importance of the navigation task reduces.Now, if being raised to the priority of the navigation process before, Priority before then the preferential level restoration of the navigation process extremely can be adjusted, to avoid the navigation process from being constantly in keep-alive shape It state, can so keep application processes that the beneficial effect of priority is set, reduce the power consumption of electronic equipment.
Referring to Fig. 8, application process priority management device is shown in figure, illustrate only for convenience of description, in figure with The related part of present invention.
As shown in figure 8, a kind of application process priority management device, including time-obtaining module 601, judge module 602, Priority acquisition module 602, judge module 603 and priority adjusting module 604, wherein:
Time-obtaining module 601, for when detecting running background navigation process, obtaining the navigation process of electronic equipment Corresponding navigation task parameter.
In certain embodiments, can be by pre-setting navigation-related application list, the application that will be currently running Matching is compared with the navigation-related application list in title or attribute, to judge whether the navigation type being currently running Using determining whether the navigation process related to navigation feature.Or there is positioning authority by monitoring whether to exist Associated process be currently running, and the frequent degree for combining its location action determines whether the navigation related to navigation feature Process.
When it is determined that during in the presence of the navigation process related to navigation feature, electronic equipment can be triggered to being led corresponding to navigation process The acquisition for task parameters of navigating.
Navigation task parameter includes completing the duration of estimating of navigation task, and during the starting of current time distance navigation task Experience duration between quarter.
In certain embodiments, estimating duration can the distance based on navigation task, traffic and/or the vehicles etc. The time that factor is spent to needs is estimated, for example, it is assumed that the distance of navigation task is 100 kilometers, and the average car of automobile Speed is 50 kilometers/hour, then a length of 2 hours when estimating of the navigation task in ideal conditions.It is a length of from navigation during experience Task, which starts, is continued for timing obtains duration, for example, it is assumed that navigation task separately begins from 2 pm 10, and obtains through lasting At the time of when long for 2 points 40 minutes, then spent 30 minutes of a length of navigation task when undergoing.
Priority acquisition module 602, if estimating duration less than the navigation task for the experience duration, obtain Priority corresponding to the navigation process.
Estimate duration according to what electronic equipment completed navigation task, and current time apart from the navigation task originate when Experience duration between quarter, judges to undergo duration and whether is less than navigation task and estimates duration;If so, then obtain navigation process pair The priority answered;If it is not, action is not performed then.
In certain embodiments, can obtain navigation task estimates duration, initial time and current time, and then obtains The relative time namely experience duration of initial time and current time between the two are obtained, and duration will be undergone and estimate duration Judged, it is determined that duration is estimated with undergoing the magnitude relationship of duration, so as to estimate duration with undergoing the size of duration according to this Relation determines whether the navigation task has been completed.
If whether experience duration is less than the duration of estimating of navigation task, priority corresponding to navigation process is obtained.
In certain embodiments, priority is the default parameter related to process, and the significance level of process passes through preferential Level makes a distinction, and electronic equipment can determine whether to carry out keep-alive to it according to the height of the process priority.It is excellent when process When first level is higher, it may be determined that the process belongs to the higher process of significance level, if electronic equipment is needed in cleaning system The normal operation of the process can be maintained during process, and the low process of priority is closed, removed;Or apply and holding , it is necessary to perform the pull-up operation to own process, electronic equipment can also be according to the height of priority under the instruction of row cycle synchronisation The low process pull-up determined whether to the application.
Duration is undergone when judgement and estimates duration less than navigation task, can now determine that user probably needs to continue Using to the navigation process, if now because the priority of the navigation process is relatively low and by cleaned system, user can be influenceed to this The normal use of navigation process, now need to obtain the priority of the navigation process, to provide foundation to judgment step below.
Whether judge module 603, the priority for judging navigation process meet the keep-alive that keep-alive is carried out to navigation process Condition.
In certain embodiments, keep-alive condition can be parameter one comparison threshold of offer for the priority of the process Value, determines whether the priority of the navigation process exceeds threshold value by comparing, and determines whether to meet the keep-alive condition;
Certainly, significance level height, priority limit and the threshold value for judgement corresponding to the priority height of process Value, can be set according to being actually needed, the concrete numerical value of above-mentioned case is only used for illustrating, not to we Case is defined.
Priority adjusting module 604, for adjusting the priority of navigation process so that adjustment after navigation process it is preferential Level meets keep-alive condition.
If the priority of navigation process is unsatisfactory for keep-alive condition, the priority of navigation process is adjusted, so that after adjustment The priority of navigation process meet keep-alive condition.
In certain embodiments, when the priority for getting navigation process, whether the navigation process priority can be met Keep-alive condition is judged, if the navigation process is unsatisfactory for keep-alive condition, illustrates that the navigation process is likely to by system Process cleanup action next time is to removing, or actively will not carry out pull-up to the navigation process.After there is the above situation, User needs that the navigation process can only be reloaded when using the navigation process, it is likely that cause the loss of data of navigation task, Influence the normal use of user.
In order to avoid the generation of problem, now need to be adjusted the priority for process of navigating, in certain embodiments, Can with calling system to priority of a process modification authority, to be modified to the priority for process of navigating so that this navigate into The priority of journey can meet that system carries out the minimum requirements of keep-alive to process.
A kind of application process priority management device provided in an embodiment of the present invention, when detect running background navigate process When, navigation task parameter corresponding to navigation process is obtained, navigation task parameter includes completing the duration of estimating of navigation task, and Experience duration between current time distance navigation task initial time;If experience duration estimates duration less than navigation task, Then obtain priority corresponding to navigation process;Judge whether the priority of navigation process meets to allow electronic equipment to navigation process Carry out the keep-alive condition of keep-alive;If the priority of navigation process is unsatisfactory for the keep-alive condition, the preferential of navigation process is adjusted Level, with avoid the navigation process because priority is relatively low and the problem of influence the normal use of user by cleaned system, so as to protecting On the premise of demonstrate,proving the cleaning effect to the process of being of little use, it is ensured that the normal operation for the navigation process being used.
Fig. 9 shows the structure of time-obtaining module 601 provided in an embodiment of the present invention, for convenience of description, in figure only Show the part related to present invention.
As shown in figure 9, in certain embodiments, time-obtaining module 601 include synchronization times acquisition submodule block 6010, First judging submodule 6011 and the first parameter acquiring submodule 6012, wherein:
Synchronization times acquisition submodule block 6010, for when detecting running background navigation process, obtaining default Process of being navigated described in first history duration carries out the synchronization times of active synchronization to data;
First history duration can be the duration manually set, e.g. 1 hour, 1 day or 1 week etc., during first history Length can be based on actual use situation and formulate, and the embodiment of the present invention is not construed as limiting to this.
According to the navigation process data are carried out with the synchronization times of active synchronization, use of the user to the application can be known Situation, during user frequently uses the application in a period of time, caused navigation process carries out active synchronization to data Synchronization times it is also more, using the navigation process to data carry out active synchronization synchronization times come judge application use feelings Condition, it can effectively know the liveness of navigation process during this period of time.
First judging submodule 6011, for judging whether synchronization times are more than or equal to default frequency threshold value;
In certain embodiments, the frequency threshold value data for judgement can be obtained, the first history duration that will be got The synchronization times that interior navigation process carries out active synchronization to data are compared with default frequency threshold value, obtain comparison result.
Frequency threshold value can be 5 times, 10 any one inferior integer, and the frequency threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
First parameter acquiring submodule 6012, for if so, then obtaining the current location of electronic equipment and being led with described Navigation purpose position corresponding to boat process.
It should be understood that in order to avoid repeating, the concrete structure of navigation task parameter corresponding to electronic equipment navigation process May refer to Fig. 8 for embodiment in introduction.
In the embodiment in fig. 9, obtaining corresponding to electronic equipment before navigation task parameter, using obtain this navigate into Journey carries out the synchronization times of active synchronization to data, and utilizes the synchronization times to data progress active synchronization and default time The comparison of number threshold value acts to decide whether to perform acquisition, the liveness situation of the navigation process can be further known, to this Navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process it is important Degree, so as to be decided whether to carry out the action of next step according to the significance level of the navigation process.
As shown in Figure 10, in certain embodiments, time-obtaining module 601 includes time acquisition submodule 6013, second The parameter acquiring submodule 6015 of judging submodule 6014 and second, wherein:
Time acquisition submodule 6013, for when detecting running background navigation process, obtaining navigation process second The run time on system foreground is in history duration;
Second history duration can be the duration manually set, e.g. 1 hour, 1 day etc., and the second history duration can be with Formulated based on actual use situation, the embodiment of the present invention is not construed as limiting to this.
In certain embodiments, when know navigation process has been currently running in electronic equipment when, can to it is each navigate into The level of journey is monitored.
When user is using some application, the process of the application can be called to system foreground, and statistics navigation process is in system The run time on foreground can effectively know the use frequent degree of navigation task.
Second judging submodule 6014, for judging whether the run time is more than or equal to default time threshold;
In certain embodiments, the time threshold for judgement can be obtained, the navigation process got is gone through second The run time in system foreground is compared with default time threshold in history duration, obtains comparison result.
The time threshold can be the threshold value being manually set or the time threshold based on certain Rule.Its Unit can be arranged to the accounting or concrete numerical value that the process in the second history duration is located at the time on system foreground, The embodiment of the present invention is not construed as limiting to this.
Second parameter acquiring submodule 6015, for if so, then obtaining navigation task parameter corresponding to the navigation process.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 8 for embodiment in introduction.
In the embodiment in figure 10, obtaining corresponding to electronic equipment before navigation task parameter, using acquisition navigate into Journey is in the run time on system foreground in the second history duration, and is carried out using the run time and default time threshold Compare to decide whether to perform acquisition action, the liveness situation of the navigation process can be further known, to the navigation process Whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process significance level, from And decided whether to carry out the action of next step according to the significance level of the navigation process.
As shown in figure 11, in certain embodiments, time-obtaining module 601 include first position acquisition submodule 6016, Second place acquisition submodule 6017, the second judging submodule 6018 and the second parameter acquiring submodule 6019:
First position acquisition submodule 6016, for when detecting running background navigation process, obtaining the electronics and setting The standby first position being currently located;
Second place acquisition submodule 6017, for getting the first position and after preset duration, obtaining The second place that the electronic equipment is currently located;
In certain embodiments, electronic equipment can know navigation process be present when, obtain electronic equipment current time The position at place is as first position, and after reaching sometime by preset duration, then where obtaining primary electron equipment Current location as the second place.
After the geographic position data of two positions is obtained, the geographic position data of two positions can be compared To, calculate, obtain two positions between relative distance, or between two positions the path distance through path, by the phase Adjust the distance or path distance is set to preset the change in location distance between two moment.
It should be understood that the computational methods of the preset duration and specific change in location distance can be according to being actually needed Set, the concrete numerical value of above-mentioned case is only used for illustrating, and this programme is not defined.
3rd judging submodule 6018, for judge the change in location between the first position and the second place away from From whether being more than the first distance threshold;
In certain embodiments, the first distance threshold for judgement can be obtained, by the first position got and Change in location distance between the second place is compared with the first distance threshold.
First distance threshold can be any one integer, and first distance threshold can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
3rd parameter acquiring submodule 6019, for if so, then obtain the current location and with the navigation process Corresponding navigation purpose position.
It should be understood that in order to avoid repeating, the specific knot of navigation task parameter corresponding to the navigation process of electronic equipment Structure may refer to Fig. 8 for embodiment in introduction.
In the embodiment in figure 11, before navigation task parameter corresponding to electronic equipment is obtained, using the acquisition navigation Change in location distance between two moment of process, and carried out using the change in location distance and default first distance threshold Compare to decide whether to perform acquisition action, the liveness situation of the navigation process can be further known, to the navigation process Whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process significance level, from And decided whether to carry out the action of next step according to the significance level of the navigation process.
Referring to Figure 12, another structure of application process priority management device is shown in figure, for convenience of description, in figure It illustrate only the part related to present invention.
Relative to the application process priority management device in Fig. 8, the part-structure of the device is identical with Fig. 8, in order to not Repeat again, the embodiment of same section may be referred to the description in Fig. 8.
Shown in Figure 12, a kind of application process priority management device, including time-obtaining module 601, priority obtain mould Block 602, judge module 603, priority adjusting module 604 and priority recovery module 605, it is specific as follows:
Time-obtaining module 601, for when detecting running background navigation process, obtaining the navigation process of electronic equipment Corresponding navigation task parameter.
Priority acquisition module 602, if estimating duration less than the navigation task for the experience duration, obtain Priority corresponding to navigation process.
Whether judge module 603, the priority for judging navigation process meet the keep-alive that keep-alive is carried out to navigation process Condition.
Priority adjusting module 604, for adjusting the priority of navigation process so that adjustment after navigation process it is preferential Level meets keep-alive condition.
Priority recovery module 605, for when monitor undergo duration be more than or equal to when estimating duration of navigation task, The then priority by the preferential level restoration of the process of navigation to before adjusting.
In certain embodiments, in order to improve management and control degree of the system to process, in navigation task corresponding to navigation process Duration is undergone after end, i.e., in navigation task and is more than or equal to when estimating duration of navigation task, it is believed that the navigation is appointed Business has been completed, and the importance of the navigation task reduces.Now, if being raised to the priority of the navigation process before, Priority before then the preferential level restoration of the navigation process extremely can be adjusted, to avoid the navigation process from being constantly in keep-alive shape It state, can so keep application processes that the beneficial effect of priority is set, reduce the power consumption of electronic equipment.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment can be smart mobile phone, tablet personal computer, desk-top The equipment such as computer, notebook, palm PC.Figure 13 is referred to, electronic equipment 700 includes processor 701 and memory 702. Wherein, processor 701 is electrically connected with memory 702.
The processor 700 is the control centre of electronic equipment 700, is set using various interfaces and the whole electronics of connection Standby various pieces, by the application program of operation or load store in memory 702, and call and be stored in memory Data in 702, the various functions and processing data of electronic equipment 700 are performed, so as to carry out overall prison to electronic equipment 700 Control.
The memory 702 can be used for storage software program and module, and processor 701 is stored in memory by operation 702 software program and module, so as to perform various function application and data processing.Memory 702 can mainly include depositing Program area and storage data field are stored up, wherein, storing program area can storage program area, the application program needed at least one function (such as sound-playing function, image player function etc.) etc.;Storage data field can store uses what is created according to server Data etc..In addition, memory 702 can include high-speed random access memory, nonvolatile memory can also be included, such as At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 702 can be with Including Memory Controller, to provide access of the processor 701 to memory 702.
In embodiments of the present invention, the processor 701 in electronic equipment 700 can be according to the steps, by one or one Instruction is loaded into memory 702 corresponding to the process of application program more than individual, and is stored in storage by the operation of processor 701 Application program in device 702 is as follows so as to realize various functions:
When detecting running background navigation process, navigation task parameter corresponding to the navigation process is obtained, it is described to lead Boat task parameters estimate duration including completion navigation task, and current time is between the navigation task initial time Experience duration;If the experience duration estimates duration less than the navigation task, obtain corresponding to the navigation process Priority;Judge whether the priority of the navigation process meets to allow the electronic equipment to carry out keep-alive to the navigation process Keep-alive condition;If the priority of the navigation process is unsatisfactory for the keep-alive condition, the preferential of the navigation process is adjusted Level, so that the priority of the navigation process after adjustment meets the keep-alive condition.
In some embodiments, the use state of the application includes time for the active synchronization that the application is triggered Number, the processor 701 can be also used for:
When detecting running background navigation process, the navigation process logarithm described in default first history duration is obtained According to the synchronization times for carrying out active synchronization;Judge whether the synchronization times are more than or equal to default frequency threshold value;If so, then Obtain navigation task parameter corresponding to the navigation process.
In some embodiments, the processor 701 can be also used for:
When detect running background navigate process when, obtain the navigation process in the second history duration be in system before The run time of platform;Judge whether the run time is more than or equal to default time threshold;If so, then obtain the navigation Navigation task parameter corresponding to process.
In some embodiments, the use state of the application includes the data download state of the application, the place Reason device 701 can be also used for:
When detecting running background navigation process, the first position that the electronic equipment is currently located is obtained;Obtaining To the first position and after preset duration, the second place that the electronic equipment is currently located is obtained;Judge described Whether the change in location distance between one position and the second place is more than the first distance threshold;If so, led described in then obtaining Navigation task parameter corresponding to boat process.
In some embodiments, the processor 701 can be also used for:
Acquisition meets between priority area corresponding to the keep-alive condition;Determine whether the priority of the navigation process is located at Between the priority area;If, it is determined that the priority of the navigation process meets the keep-alive condition.
In some embodiments, the processor 701 can be also used for:
When monitor it is described experience duration be more than or equal to when estimating duration of the navigation task, then by it is described navigate into Priority before the preferential level restoration of journey to the adjustment.
Electronic equipment provided in an embodiment of the present invention, when detecting running background navigation process, obtain electronic equipment and lead Navigation task parameter corresponding to boat process, by judging to undergo whether duration is less than estimating for navigation task in navigation task parameter Duration, if contrast of the experience duration with estimating duration shows that electronic equipment does not reach navigation purpose position and the navigation process is excellent When first level is relatively low, adjust the priority of the navigation process, with avoid the navigation process because priority is relatively low and by cleaned system shadow The problem of ringing the normal use of user, so as on the premise of ensureing to the cleaning effect for the process of being of little use, it is ensured that be used Navigation process normal operation.
Also referring to Figure 14, in some embodiments, electronic equipment 700 can also include:Display 703, radio frequency Circuit 704, voicefrequency circuit 705, wireless fidelity module 706 and power supply 707.Wherein, wherein, display 703, radio circuit 704th, voicefrequency circuit 705, wireless fidelity module 706 and power supply 707 are electrically connected with processor 701 respectively.
The display 703 is displayed for the information inputted by user or is supplied to the information of user and various figures Shape user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display 703 can include display panel, in some embodiments, can use liquid crystal display (LCD, Liquid Crystal Display) or the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) is aobvious to configure Show panel.
The radio circuit 704 can be used for transceiving radio frequency signal, to pass through radio communication and the network equipment or other electricity Sub- equipment establishes wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
The voicefrequency circuit 705 can be used for providing the audio between user and electronic equipment by loudspeaker, microphone Interface.
The wireless fidelity module 706 can be used for short range wireless transmission, and user can be helped to send and receive e-mail, be clear Look at and website and access streaming video etc., it has provided the user wireless broadband internet and accessed.
The power supply 707 is used to all parts power supply of electronic equipment 700.In certain embodiments, power supply 707 Can be logically contiguous by power-supply management system and processor 701, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although not shown in Figure 14, electronic equipment 700 can also include camera, bluetooth module etc., will not be repeated here.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium stores a plurality of instruction, a plurality of instruction Suitable for being loaded by processor to perform the application process priority management method in above-described embodiment, such as:When detect backstage When running navigation process, navigation task parameter corresponding to the navigation process is obtained, the navigation task parameter is led including completion Boat task estimates duration, and experience duration of the current time between the navigation task initial time;If the warp Last length and estimate duration less than the navigation task, then obtain priority corresponding to the navigation process;Judge the navigation Whether the priority of process meets the keep-alive condition for allowing the electronic equipment to carry out keep-alive to the navigation process;If described lead The priority of boat process is unsatisfactory for the keep-alive condition, then adjusts the priority of the navigation process, so that described after adjustment The priority of navigation process meets the keep-alive condition.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable medium In, the medium can include but is not limited to:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Application process priority management device, device, storage medium and the electronics provided above the embodiment of the present invention Equipment is described in detail, and specific case used herein is set forth to the principle and embodiment of the present invention, with The explanation of upper embodiment is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the technology of this area Personnel, according to the thought of the present invention, there will be changes in specific embodiments and applications, in summary, this theory Bright book content should not be construed as limiting the invention.

Claims (14)

  1. A kind of 1. application process priority management method, applied to electronic equipment, it is characterised in that including:
    When detecting running background navigation process, navigation task parameter corresponding to the navigation process is obtained, the navigation is appointed Business parameter estimates duration, and warp of the current time between the navigation task initial time including completion navigation task Last length;
    If the experience duration estimates duration less than the navigation task, priority corresponding to the navigation process is obtained;
    Judge whether the priority of the navigation process meets to allow the electronic equipment to carry out keep-alive to the navigation process Keep-alive condition;
    If the priority of the navigation process is unsatisfactory for the keep-alive condition, the priority of the navigation process is adjusted, so that The priority of the navigation process after adjustment meets the keep-alive condition.
  2. 2. application process priority management method as claimed in claim 1, it is characterised in that described to detect running background During navigation process, navigation task parameter corresponding to the navigation process is obtained, including:
    When detecting running background navigation process, obtain process of being navigated described in default first history duration and data are entered The synchronization times of row active synchronization;
    Judge whether the synchronization times are more than or equal to default frequency threshold value;
    If so, then obtain navigation task parameter corresponding to the navigation process.
  3. 3. application process priority management method as claimed in claim 1, it is characterised in that described to detect running background During navigation process, navigation task parameter corresponding to the navigation process is obtained, including:
    When detecting running background navigation process, obtain the navigation process and system foreground is in the second history duration Run time;
    Judge whether the run time is more than or equal to default time threshold;
    If so, then obtain navigation task parameter corresponding to the navigation process.
  4. 4. application process priority management method as claimed in claim 1, it is characterised in that described to detect running background During navigation process, navigation task parameter corresponding to the navigation process is obtained, including:
    When detecting running background navigation process, the first position that the electronic equipment is currently located is obtained;
    Get the first position and after preset duration, obtain the second place that the electronic equipment is currently located;
    Judge whether the distance of the change in location between the first position and the second place is more than the first distance threshold;
    If so, then obtain navigation task parameter corresponding to the navigation process.
  5. 5. application process priority management method as claimed in claim 1, it is characterised in that judge the excellent of the navigation process Whether first level meets the keep-alive condition that keep-alive is carried out to the navigation process, including:
    Acquisition meets between priority area corresponding to the keep-alive condition;
    Determine the priority of the navigation process whether between the priority area;
    If, it is determined that the priority of the navigation process meets the keep-alive condition.
  6. 6. application process priority management method as claimed in claim 1, it is characterised in that if in the navigation process Priority be unsatisfactory for the keep-alive condition, then adjust the priority of the navigation process so that adjustment after it is described navigate into After the priority of journey meets the keep-alive condition, in addition to:
    When monitor it is described experience duration be more than or equal to when estimating duration of the navigation task, then by the navigation process Priority before preferential level restoration to the adjustment.
  7. A kind of 7. application process priority management device, it is characterised in that including:
    Position acquisition module, for when detecting running background navigation process, obtaining navigation corresponding to the navigation process and appointing Business parameter, the navigation task parameter includes completing the duration of estimating of navigation task, and current time appoints apart from the navigation Experience duration between business initial time;
    Priority acquisition module, if being less than the duration of estimating of the navigation task for the experience duration, led described in acquisition Priority corresponding to boat process;
    Whether judge module, the priority for judging the navigation process meet the keep-alive that keep-alive is carried out to the navigation process Condition;And
    Priority adjusting module, if the priority for the navigation process is unsatisfactory for the keep-alive condition, described in adjustment The priority of navigation process, so that the priority of the navigation process after adjustment meets the keep-alive condition.
  8. 8. application process priority management device as claimed in claim 7, it is characterised in that the position acquisition module, bag Include:
    Synchronization times acquisition submodule, for when detecting running background navigation process, obtaining in default first history Process of being navigated described in length carries out the synchronization times of active synchronization to data;
    First judging submodule, for judging whether the synchronization times are more than or equal to default frequency threshold value;And
    First parameter acquiring submodule, for if so, then obtaining navigation task parameter corresponding to the navigation process.
  9. 9. application process priority management device as claimed in claim 7, it is characterised in that the position acquisition module, bag Include:
    Time acquisition submodule, for when detecting running background navigation process, obtaining the navigation process in the second history The run time on system foreground is in duration;
    Second judging submodule, for judging whether the run time is more than or equal to default time threshold;And
    Second parameter acquiring submodule, for if so, then obtaining navigation task parameter corresponding to the navigation process.
  10. 10. application process priority management device as claimed in claim 7, it is characterised in that the position acquisition module, bag Include:
    First position acquisition submodule, for when detecting running background navigation process, obtaining the current institute of the electronic equipment First position;
    Second place acquisition submodule, for getting the first position and after preset duration, obtaining the electronics The second place that equipment is currently located;
    3rd judging submodule, for judging whether the distance of the change in location between the first position and the second place is big In default first distance threshold;And
    3rd parameter acquiring submodule, for if so, then obtaining navigation task parameter corresponding to the navigation process.
  11. 11. application process priority management device as claimed in claim 7, it is characterised in that:
    The judge module, it is additionally operable to acquisition and meets between priority area corresponding to the keep-alive condition;Determine the navigation process Priority whether in the priority area;If, it is determined that the priority of the navigation process meets the keep-alive Condition.
  12. 12. application process priority management device as claimed in claim 7, it is characterised in that the application process priority Managing device, in addition to:
    Priority recovery module, monitor that the experience duration estimates duration more than or equal to the navigation task for working as When, then by the priority before the preferential level restoration of the navigation process to the adjustment.
  13. 13. a kind of storage medium, it is characterised in that the storage medium stores a plurality of instruction, and a plurality of instruction is suitable to counting When being run on calculation machine so that the computer performs the application process priority management as described in claim 1 to 6 any one Method.
  14. 14. a kind of electronic equipment, it is characterised in that including processor and memory, a plurality of instruction of memory storage is described Processor is used to perform the application process as described in claim 1 to 6 any one by the instruction loaded in the memory Priority management method.
CN201710643255.3A 2017-07-31 2017-07-31 Application process priority management method and device, storage medium and electronic equipment Active CN107463435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710643255.3A CN107463435B (en) 2017-07-31 2017-07-31 Application process priority management method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710643255.3A CN107463435B (en) 2017-07-31 2017-07-31 Application process priority management method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107463435A true CN107463435A (en) 2017-12-12
CN107463435B CN107463435B (en) 2020-04-14

Family

ID=60548192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710643255.3A Active CN107463435B (en) 2017-07-31 2017-07-31 Application process priority management method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107463435B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108766550A (en) * 2018-03-22 2018-11-06 青岛海信医疗设备股份有限公司 Medical Devices end message store method, storage medium and Medical Devices terminal
CN108920264A (en) * 2018-06-12 2018-11-30 深圳市德名利电子有限公司 A kind of command timeout processing method and system
CN109669730A (en) * 2018-12-26 2019-04-23 北京达佳互联信息技术有限公司 A kind of process keepalive method, device, electronic equipment and medium
CN109756888A (en) * 2019-01-03 2019-05-14 中国—东盟信息港股份有限公司 A kind of eSIM service keep-alive system of different brands terminal
CN111930481A (en) * 2020-07-16 2020-11-13 重庆帮企科技集团有限公司 Android system-based process priority improving method and device
CN112400308A (en) * 2018-09-26 2021-02-23 深圳市欢太科技有限公司 Charging prompting method and related product
WO2022166675A1 (en) * 2021-02-04 2022-08-11 腾讯科技(深圳)有限公司 Method and apparatus for keeping client alive, and electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813015A (en) * 2014-02-24 2014-05-21 联想(北京)有限公司 Method and device for information processing
CN106375604A (en) * 2016-11-11 2017-02-01 北京小米移动软件有限公司 Terminal electric quantity controlling method and device
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813015A (en) * 2014-02-24 2014-05-21 联想(北京)有限公司 Method and device for information processing
CN106375604A (en) * 2016-11-11 2017-02-01 北京小米移动软件有限公司 Terminal electric quantity controlling method and device
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108766550A (en) * 2018-03-22 2018-11-06 青岛海信医疗设备股份有限公司 Medical Devices end message store method, storage medium and Medical Devices terminal
CN108766550B (en) * 2018-03-22 2022-06-28 青岛海信医疗设备股份有限公司 Medical equipment terminal information saving method, storage medium and medical equipment terminal
CN108920264A (en) * 2018-06-12 2018-11-30 深圳市德名利电子有限公司 A kind of command timeout processing method and system
CN112400308A (en) * 2018-09-26 2021-02-23 深圳市欢太科技有限公司 Charging prompting method and related product
CN109669730A (en) * 2018-12-26 2019-04-23 北京达佳互联信息技术有限公司 A kind of process keepalive method, device, electronic equipment and medium
CN109669730B (en) * 2018-12-26 2022-05-06 北京达佳互联信息技术有限公司 Process keep-alive method, device, electronic equipment and medium
CN109756888A (en) * 2019-01-03 2019-05-14 中国—东盟信息港股份有限公司 A kind of eSIM service keep-alive system of different brands terminal
CN109756888B (en) * 2019-01-03 2021-07-06 中国—东盟信息港股份有限公司 eSIM service keep-alive system for terminals of different brands
CN111930481A (en) * 2020-07-16 2020-11-13 重庆帮企科技集团有限公司 Android system-based process priority improving method and device
WO2022166675A1 (en) * 2021-02-04 2022-08-11 腾讯科技(深圳)有限公司 Method and apparatus for keeping client alive, and electronic device and storage medium

Also Published As

Publication number Publication date
CN107463435B (en) 2020-04-14

Similar Documents

Publication Publication Date Title
CN107463435A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN107463445A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN108205451A (en) application management method, device, storage medium and electronic equipment
CN107357617A (en) Using update method, device, storage medium and electronic equipment
CN106776036A (en) A kind of resource allocation methods and device
WO2015131679A1 (en) Task process processing method and device
CN104735671A (en) Malicious call recognition method and device
CN103476064A (en) Method and device for flow control of terminal device and terminal device
CN107479954B (en) Process management method, device, storage medium and electronic equipment
CN104980455A (en) Multi-terminal data synchronization method based on cloud storage, device and system thereof
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN104253870A (en) Method and device for controlling data access period
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN105205066B (en) Picture searching method and device
CN107908273B (en) Application management method and device, storage medium and electronic equipment
CN107729062A (en) Using freezing method and related product
CN107402626A (en) Using cycle synchronisation management method, device, storage medium and electronic equipment
CN110209415A (en) Firmware method for refreshing, device and storage medium
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN109992363A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN104427106A (en) Prompt event processing method and device, terminal and server
CN108255282A (en) A kind of terminal processes management method and terminal
CN113965915B (en) Data processing method and electronic equipment
CN102110165B (en) Method and system for scheduling interior of browser of mobile terminal
CN107450710B (en) Application period synchronous management method and device, storage medium and electronic equipment

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 Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant