CN104503828A - Process management method and terminal - Google Patents

Process management method and terminal Download PDF

Info

Publication number
CN104503828A
CN104503828A CN201410779136.7A CN201410779136A CN104503828A CN 104503828 A CN104503828 A CN 104503828A CN 201410779136 A CN201410779136 A CN 201410779136A CN 104503828 A CN104503828 A CN 104503828A
Authority
CN
China
Prior art keywords
terminal
resident
target process
described target
unit
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
CN201410779136.7A
Other languages
Chinese (zh)
Other versions
CN104503828B (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 CN201410779136.7A priority Critical patent/CN104503828B/en
Publication of CN104503828A publication Critical patent/CN104503828A/en
Application granted granted Critical
Publication of CN104503828B publication Critical patent/CN104503828B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a process management method and a terminal. The process management method comprises the following steps: ending a target process to release a terminal memory resource occupied by the target process; acquiring identification information of the target process, and judging whether the target process is a binding process of a preset resident management process according to the identification information of the target process; if the target process is the binding process, newly starting the target process. By using the method, a part of memory resources of the terminal can be released, and the terminal memory resource occupied by the resident process is saved.

Description

A kind of process management method and terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of process management method and terminal.
Background technology
Along with the development of the communication technology, the function of mobile terminal is increasingly abundant, and the application run on mobile terminals also gets more and more, and the use of the memory source of mobile terminal seems and becomes more and more important.Mobile terminal in use usually needs some process reside with monitor terminal running status and make response in time, such as alarm clock process, if close, alarm clock has arrived timing instant and would not ring.But Resident Process takies mobile phone EMS memory and is recovered hardly always, along with mobile terminal uses for a long time, Resident Process can get more and more, and the internal memory that Resident Process takies can increase to some extent due to fragmentation, therefore the memory source that Resident Process takies gets more and more, this travelling speed making mobile terminal is more and more slower, occurs card machine, to report an error or without the situation of response.In addition, because the priority-level of Resident Process is high, generally can not be moved to end, when tag memory resource is lower than time to a certain degree, terminal will be selected to terminate foreground process usually, has a strong impact on Consumer's Experience.
Summary of the invention
Embodiments provide a kind of Resident Process management method and terminal, the memory source that can reduce Resident Process takies, and the memory source making the Resident Process in terminal except resident managing process take easily reclaims, and keep the automatically actuated feature of its energy, improve Consumer's Experience.
Embodiments provide a kind of process management method, described method comprises:
Target end process, to discharge the tag memory resource that described target process takies;
Obtain the identification information of described target process, according to the identification information judgment of described target process, whether target process is the binding process of default resident managing process;
If so, described target process is restarted.
Accordingly, embodiments provide a kind of terminal, described terminal comprises:
End unit, for target end process, to discharge the tag memory resource that described target process takies;
Acquiring unit, for obtaining the identification information of described target process;
Whether judging unit is the binding process of default resident managing process for target process according to the identification information judgment of described target process;
Start unit, when judging that described target process is the binding process of described resident managing process for described judging unit, restarts described target process.
The embodiment of the present invention can target end process, to discharge the tag memory resource that described target process takies, also can obtain the identification information of described target process, according to the identification information judgment of described target process, whether target process is the binding process of default resident managing process, and then restart described target process when judging that described target process is the binding process of default resident managing process, described target process is restPosed, can release portion tag memory resource, reduce the memory source that in terminal, Resident Process takies, and the memory source making other Resident Process in terminal except resident managing process take easily reclaims, and keep other Resident Process can the feature of self-starting, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in embodiment of the present invention technical scheme, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of process management method schematic flow sheet that the embodiment of the present invention provides;
Fig. 2 is the another kind of process management method schematic flow sheet that the embodiment of the present invention provides;
Fig. 3 is another process management method schematic flow sheet that the embodiment of the present invention provides;
Fig. 4 is a kind of terminal structure schematic diagram that the embodiment of the present invention provides;
Fig. 5 is structure one schematic diagram of the end unit that the embodiment of the present invention provides;
Fig. 6 is structure two schematic diagram of the end unit that the embodiment of the present invention provides;
Fig. 7 is the process relation schematic diagram in the terminal that provides of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In specific implementation, terminal mentioned in the embodiment of the present invention includes but not limited to: the electronic equipment such as smart mobile phone (as Android phone, IOS mobile phone), panel computer, notebook computer, palm PC, wearable intelligent equipment.
A kind of process management method provided the embodiment of the present invention below in conjunction with Fig. 1 to Fig. 7 and terminal are specifically described.
See Fig. 1, be a kind of process management method schematic flow sheet that the embodiment of the present invention provides, process management method as shown in the figure can comprise the following steps:
S101, target end process, to discharge the tag memory resource that described target process takies.
In specific implementation, process refers to the application program run in the terminal.The memory source of multiple process shared terminal, when the untapped free memory resource value of terminal is lower than time to a certain degree, the travelling speed of terminal can be more and more slower, occurs card machine, to report an error or without the situation of response.Terminal can provide application manager in order to user management process usually, and when card machine or the situation without response appear in terminal, user can enter application manager and select target end process, to discharge the tag memory resource that target process takies.
The target process that it should be noted that mentioned by the present invention is the Resident Process that terminal is preset when dispatching from the factory, Resident Process refers to the process that long-term occupied terminal memory source provides service, its residence characteristics is embodied in: priority-level is high especially, usually can not be moved to end, also can automatically start immediately even if be moved to end.In the present embodiment, in order to make the memory source shared by target process easily reclaim, need it be allowed to become common process, just terminal can be made to terminate according to the service condition of memory source or to maintain this target process the priority-level reducing target process in advance.
S102, obtains the identification information of described target process, and according to the identification information judgment of described target process, target process is the binding process of default resident managing process.
In specific implementation, in advance the Resident Process of specifying in terminal need be set as resident managing process, other Resident Process in terminal be set to the binding process of described resident managing process.Concrete, terminal can obtain the identification information of target process in advance, and then being registered in resident managing process by the identification information of described target process with target process described in remarks is the binding process of described resident managing process.Such as in resident managing process, create a binding relationship chained list, wherein recording all is the identification information of the process of binding relationship with this resident managing process, and one of them identification information is the identification information of target process.When after terminal target end process, whether first obtain the identification information of this target process, be the binding process of described resident managing process according to the identification information judgment of this target process, if perform next step S103, otherwise, keep the done state of described target process.
The identification information storage of described target process is in the application configuration file of target process, be generally the digital signature of application, also can be other contents in order to the unique identities of identification process, such as, when the operating system that terminal uses is for android system, described identification information to can be in application configuration file the content of android:process in the content of android:sharedUserId in <manifest> in AndroidManifest.xml file or <application>.
It should be noted that, the resident managing process preset in the present embodiment is Resident Process unique in terminal, and become the Resident Process of the binding process of resident managing process, need reduce its priority-level in advance allows and makes to lose residence characteristics, thus allows the present embodiment to perform step S101.
S103, restarts described target process.
The target process be moved to end in step S101 can be made after performing this step to restart to continue to provide service, enable target process have Resident Process automatically actuated feature immediately.
In an alternative embodiment, in the method shown in Fig. 1, perform step S101 target end process, before discharging tag memory resource that described target process takies, can following steps be performed:
11), by the Resident Process of specifying in described terminal be set as described resident managing process, other Resident Process in described terminal is set to the binding process of described resident managing process.
12), the priority-level of the binding process of described resident managing process is revised, to make the priority-level of the binding process of described resident managing process lower than the described foreground process in described terminal.
The residence characteristics of the Resident Process in terminal is mainly reflected in: the priority-level of Resident Process is higher than other processes in terminal, and therefore Resident Process generally can not be moved to end, and also automatically can start immediately when terminal is opened even if be moved to end.In the present embodiment, by step 11) ~ 12), process relation schematic diagram in the terminal that the embodiment of the present invention as shown in Figure 7 provides, resident managing process becomes Resident Process unique in terminal, because this reducing the tag memory resource that Resident Process in terminal takies, and other Resident Process lose its residence characteristics because its priority-level be reduced to lower than foreground process, the state of the start-up performance switch that the manual select target process of user can be allowed to provide or terminate originally as the target process of Resident Process by step S101, to discharge the partial memory resource of terminal, and again by step S102 and S103 restart target process make it keep can the feature of self-starting.It should be noted that, the binding process of the resident managing process in the present embodiment depends on resident managing process to be existed, namely when resident managing process start come into force time, described binding process could start and comes into force.
In another embodiment, in the method shown in Fig. 1, before execution step S103 restarts described target process, can following steps be performed:
21), obtain the state of the start-up performance switch of current described target process, the state of described start-up performance switch comprises: open state or off status.
In specific implementation, terminal can be the start-up performance switch that user provides target process, therefore user is by the selection startup of start-up performance switch manual or target end process, wherein the open state correspondence of start-up performance switch starts target process, and the off status of described start-up performance switch correspond to target end process.The state of target process start-up performance switch can be used as terminal judges the need of the reference conditions automatically starting this target process, such as the start-up performance switch-linear hybrid of target process is open state by terminal before being turned off, after closing a terminal, in terminal, all processes comprise target process and are all moved to end, when terminal starts again, just this process of automatically starting when terminal detects that the start-up performance switch of target process is open state.
22), whether the state that judges described start-up performance switch be open state, restarts described target process step described in if so, performing.
Optionally, if the state of start-up performance switch is off status, maintain the done state of described target process, the tag memory resource shared by such target process just can discharge.
By performing step 21) ~ 22), if the start-up performance switch keeping target process is open state, also can restart immediately when then this target process is moved to end and continue as user service is provided, enable target process have the automatically actuated feature of Resident Process; And if the state of start-up performance switch is off status, terminal target end process also maintains the done state of target process, and the tag memory resource shared by this target process just can discharge.
The embodiment of the present invention, by target end process, obtain the identification information of described target process, and target process is that the binding of default resident managing process restarts described target process when entering according to the identification information judgment of described target process, described target process is restPosed, can release portion tag memory resource, reduce the memory source that in terminal, Resident Process takies, and the memory source making other Resident Process in terminal except resident managing process take easily reclaims, and keep other Resident Process can the feature of self-starting, improve Consumer's Experience.
See Fig. 2, be the another kind of process management method schematic flow sheet that the embodiment of the present invention provides, process management method as shown in the figure can comprise the following steps:
S201, detects that the internal memory use value of target process is greater than predetermined threshold value.
In specific implementation, the situation of RAM leakage can be there is due to defect that program itself designs in some process in operational process, these occur that the memory source of terminal can drain by RAM leakage process gradually, therefore new process can not be created again in terminal, and the situation occurring nothing response, card machine or report an error.RAM leakage is there is in order to prevent process, the threshold value of an internal memory use value can be preset to the process in terminal, when detecting that the internal memory use value of target process is greater than predetermined threshold value in order to terminal, discharge the memory source of the terminal that this target process takies by performing step S202 ~ S205 and restart this target process and make it restPose.
S202, terminates described target process, to discharge the tag memory resource that described target process takies.
The residence characteristics of the Resident Process in terminal is mainly reflected in: priority-level is high especially, generally can not be moved to end, and also automatically can start immediately when terminal is opened even if be moved to end.In the present embodiment, in advance the Resident Process of specifying in terminal need be set as described resident managing process, other Resident Process in terminal is set to the binding process of described resident managing process, and reduce the priority-level of the binding process of resident managing process, making it lose residence characteristics becomes the common process carrying out binding process with resident managing process.Therefore resident managing process becomes Resident Process unique in terminal, and originally can detect in step S201 and S202 that the internal memory use value of target process terminates this process when being greater than predetermined threshold value as the target process of Resident Process, the memory source making it take easily is recovered, and make target process still have Resident Process by step S203 ~ S206 can by automatically actuated feature again after end.
S203, obtains the identification information of described target process, and according to the identification information judgment of described target process, target process is the binding process of default resident managing process.
S204, obtains the state of the start-up performance switch of current described target process, and the state of described start-up performance switch comprises: open state or off status.
In specific implementation, terminal can be the start-up performance switch that user provides target process, therefore user is by the selection startup of start-up performance switch manual or target end process, wherein the open state correspondence of start-up performance switch starts target process, and the off status of described start-up performance switch correspond to target end process.The state of target process start-up performance switch can be used as terminal judges the need of the reference conditions automatically starting this target process, such as the start-up performance switch-linear hybrid of target process is open state by terminal before being turned off, after closing a terminal, in terminal, all processes comprise target process and are all moved to end, when terminal starts again, just this process of automatically starting when terminal detects that the start-up performance switch of target process is open state; If the state of target process start-up performance switch is before the end off status, maintain the done state of described target process.
S205, judges that the state of described start-up performance switch is open state.
S206, restarts described target process.
In the present embodiment, the step S102 in step S203 step S206 difference embodiment shown in Figure 1 and step S103, does not repeat them here.
The embodiment of the present invention, when detecting that the internal memory use value of target process is greater than predetermined threshold value, terminate described target process, then the identification information of described target process is obtained, according to the identification information judgment of described target process, target process is the binding process of default resident managing process, and the start-up performance on off state of described target process restarts described target process when being open state, target process is restPosed, can release portion tag memory resource, reduce the memory source that in terminal, Resident Process takies, and prevent the process in terminal from occurring RAM leakage and causing the memory source of terminal to be drained.
See Fig. 3, be another process management method schematic flow sheet that the embodiment of the present invention provides, process management method as shown in the figure can comprise the following steps:
S301, is set as described resident managing process by the Resident Process of specifying in described terminal, and other Resident Process in described terminal is set to the binding process of described resident managing process.
S302, revises the priority-level of the binding process of described resident managing process, to make the priority-level of the binding process of described resident managing process lower than the described foreground process in described terminal.
In specific implementation, the priority-level that the residence characteristics of the Resident Process in terminal is mainly reflected in Resident Process is high especially, generally can not be moved to end, also automatically can start immediately when terminal is opened even if be moved to end.In the present embodiment, by the Resident Process that step S301 and step S302 make resident managing process become unique in terminal, decrease the memory source that Resident Process in terminal takies, and other Resident Process have lost its residence characteristics because its priority-level be reduced to lower than foreground process, and become the binding process of resident managing process, decrease the tag memory resource that Resident Process in terminal takies.And by step S303 ~ S305 when detecting that the internal memory use value of terminal is greater than predetermined threshold value; terminal medium priority rank is defined as described target process lower than the process of foreground process; and terminate this target process; to discharge the tag memory resource that this target process takies; the partial memory resource that can discharge terminal preferentially can meet the needs of foreground process to memory source again, and protection foreground process is not by end-stop.
S303, detects that the internal memory use value of terminal is greater than predetermined threshold value.
In specific implementation, when the untapped free memory resource value of terminal is lower than time to a certain degree, the travelling speed of terminal can be more and more slower, occur card machine, report an error or without response situation, in order to prevent above-mentioned situation, a tag memory use value threshold value can be pre-set, when detecting that the internal memory use value of terminal is greater than predetermined threshold value in order to terminal, by performing step S302 and step S303 with the memory source of release portion terminal.
S304, is defined as target process by described terminal medium priority rank lower than the process of foreground process.
In terminal, free memory resource is lower than the travelling speed affecting terminal time to a certain degree; terminal needs latter end process with release portion memory source; usual user more pays close attention to and currently carries out mutual foreground process with user; wish that terminal preferentially can meet the use of foreground process memory source; in order to avoid foreground process lost by end-stop current foreground process and user interactions the data that produce; therefore prioritizing selection is terminated the process of priority-level lower than foreground process by terminal, to protect foreground process.
S305, terminates described target process, to discharge the tag memory resource that described target process takies.
S306, obtains the identification information of described target process, and according to the identification information judgment of described target process, target process is the binding process of default resident managing process.
In specific implementation, in advance the Resident Process of specifying in terminal need be set as described resident managing process, other Resident Process in terminal is set to the binding process of described resident managing process, and the priority-level of the binding process of the resident managing process of amendment, to make the priority-level of the binding process of resident managing process lower than the foreground process in terminal, therefore the binding process of resident managing process can be confirmed as target process in step s 304.
S307, restarts described target process.
In the present embodiment, the step S101 in step S305 and step S307 difference embodiment shown in Figure 1 and step S103, does not repeat them here.
The embodiment of the present invention, when detecting that the internal memory use value of terminal is greater than predetermined threshold value, described terminal medium priority rank is defined as described target process lower than the process of foreground process, and then terminate described target process, then the identification information of described target process is obtained, described target process is restarted when target process is the binding process of default resident managing process according to the identification information judgment of described target process, can release portion tag memory resource, the foreground process of protection terminal is not by end-stop, reduce the memory source that in terminal, Resident Process takies, and the memory source making other Resident Process in terminal except resident managing process take easily reclaims and keeps the feature of its energy self-starting, improve Consumer's Experience.
See Fig. 4, a kind of terminal structure schematic diagram that the embodiment of the present invention provides, terminal at least can comprise as shown in the figure: end unit 401, acquiring unit 402, judging unit 403, start unit 404.
End unit 401, for target end process, to discharge the tag memory resource that described target process takies.
Process refers to the application program run in terminal system.The memory source of multiple process shared terminal, when the untapped free memory resource value of terminal is lower than time to a certain degree, the travelling speed of terminal can be more and more slower, occurs card machine, to report an error or without the situation of response.Terminal can provide application manager in order to user management process usually, and when card machine or the situation without response appear in terminal, user can enter application manager and select to terminate some process, to discharge the tag memory resource that these processes take.Optionally, end unit 401 can when residual terminal memory source be low, according to the priority-level target end process of process in terminal, to discharge the tag memory resource that described target process takies.
It should be noted that the Resident Process of target process originally for presetting when terminal is dispatched from the factory mentioned by the present invention, Resident Process refers to the process that long-term occupied terminal memory source provides service, its residence characteristics is embodied in: priority-level is high especially, usually can not be moved to end, also can automatically start immediately even if be moved to end.In order to make the memory source originally shared by the target process of Resident Process easily reclaim, need it be made to lose residence characteristics the priority-level reducing target process in advance, end unit 401 could terminate this target process according to the service condition of memory source.
Acquiring unit 402, for obtaining the identification information of described target process.
The identification information storage of target process is in the application configuration file of target process, be generally the digital signature of process, also can be other contents in order to the unique identities of identification process, such as, when the operating system that terminal uses is for android system, described identification information to can be in application configuration file the content of android:process in the content of android:sharedUserId in <manifest> in AndroidManifest.xml file or <application>.
Whether judging unit 403 is the binding process of default resident managing process for target process according to the identification information judgment of described target process.
Before at judging unit 403 target process according to the identification information judgment of described target process being whether the binding process of default resident managing process, in advance the Resident Process of specifying in terminal need be set as described resident managing process, other Resident Process in terminal be set to the binding process of described resident managing process.Concrete, acquiring unit 402 obtains the identification information of target process, is then registered by described identification information with the binding process of target process described in remarks as described resident managing process in resident managing process.Such as in resident managing process, create a binding relationship chained list, wherein record all identification informations setting up the process of binding relationship with this resident managing process, one of them identification information is the identification information of target process.When after end unit 401 target end process, acquiring unit 402 obtains the identification information of this target process, whether judging unit 403 is the binding process of described resident managing process according to the identification information judgment of this target process, if so, then described target process is restarted by start unit 404.
Start unit 404, when judging that the identification information of described target process is the binding process of default resident managing process for described judging unit 403, restarts described target process.
It should be noted that, resident managing process is Resident Process unique in terminal, and become the Resident Process of the binding process of resident managing process, need reduce its priority-level in advance makes it lose residence characteristics, thus allows end unit 401 to terminate originally as the target process of Resident Process.
In an alternative embodiment, described terminal also comprises: setting unit 405, before terminating described target process for described end unit 401, the Resident Process of specifying in described terminal is set as described resident managing process, other Resident Process in described terminal is set to the binding process of described resident managing process.
Accordingly, described terminal also comprises: priority modification unit 406, for revising the priority-level of the binding process of described resident managing process, to make the priority-level of the binding process of described resident managing process lower than the described foreground process in described terminal.
In specific implementation, the residence characteristics of the Resident Process in terminal is mainly reflected in: priority-level is high especially, generally can not be moved to end, and also automatically can start immediately when terminal is opened even if be moved to end.By the setting unit 405 in terminal and priority modification unit 406, process relation schematic diagram in the terminal that the embodiment of the present invention as shown in Figure 7 provides, resident managing process becomes Resident Process unique in terminal, decrease the tag memory resource that Resident Process in terminal takies, and other Resident Process have lost its residence characteristics because its priority-level be reduced to lower than foreground process, therefore end unit 401 can go to terminate other Resident Process described according to the service condition of memory source in terminal, the memory source shared by other Resident Process is made to be easy to reclaim.
In another embodiment, described acquiring unit 402, before also restarting described target process for described start unit 404, obtain the state of the start-up performance switch of current described target process, the state of described start-up performance switch comprises: open state or off status.
In specific implementation, terminal can be the start-up performance switch that user provides target process, therefore user is by the selection startup of start-up performance switch manual or target end process, wherein the open state correspondence of start-up performance switch starts target process, and the off status of described start-up performance switch correspond to target end process.The state of target process start-up performance switch can be used as terminal judges the need of the reference conditions automatically starting this target process, such as the start-up performance switch-linear hybrid of target process is open state by terminal before being turned off, after closing a terminal, in terminal, all processes comprise target process and are all moved to end, when terminal starts again, just this process of automatically starting when terminal detects that the start-up performance switch of target process is open state; If the state of target process start-up performance switch is before the end off status, maintain the done state of described target process.
Described judging unit 403, also for judging whether the state of described start-up performance switch is open state.
Described start unit 404, when also judging that the state of described start-up performance switch is open state for described judging unit 403, restarts described target process.
The embodiment of the present invention can target end process, also can obtain the identification information of described target process, according to the identification information judgment of described target process, whether target process is the binding process of default resident managing process, and then restart described target process when judging that described target process is the binding process of default resident managing process, tag memory resource can be discharged, reduce the memory source that in terminal, Resident Process takies, and the memory source enabling the Resident Process in terminal except resident managing process take easily reclaims and keeps the feature of its self-starting, improve Consumer's Experience.
Further see Fig. 5, structure one schematic diagram of the end unit that the embodiment of the present invention provides; Described end unit 401 can comprise: detection sub-unit 4101, determines subelement 4102, terminates subelement 4103.
Detection sub-unit, whether the internal memory use value for sense terminals is greater than predetermined threshold value.
In specific implementation, when the untapped free memory resource value of terminal is lower than time to a certain degree, the travelling speed of terminal can be more and more slower, occur card machine, report an error or without response situation, in order to prevent above-mentioned situation, a tag memory use value threshold value can be pre-set, when detecting that the internal memory use value of terminal is greater than predetermined threshold value in order to detection sub-unit 4101, by determining subelement 4102 and terminating subelement 4103 target end process with the memory source of release portion terminal.
Determine subelement 4102, when detecting that the internal memory use value of described terminal is greater than predetermined threshold value for described detection sub-unit 4101, described terminal medium priority rank is defined as described target process lower than the process of foreground process.
The travelling speed of terminal can be affected when tag memory consumed resource is very large; need latter end process with release portion memory source; usual user more pays close attention to and currently carries out mutual foreground process with user; wish that terminal preferentially can meet the use of foreground process memory source; in order to avoid foreground process lost by end-stop current foreground process and user interactions the data that produce; therefore determine that subelement 4102 terminates the process of priority-level lower than foreground process, to protect foreground process by preferentially determining.
Terminate subelement 4103, for terminating described target process, to discharge the tag memory resource that described target process takies.
Further see Fig. 6, structure two schematic diagram of the end unit that the embodiment of the present invention provides; Described end unit 401 can comprise: detection sub-unit 4111, terminates subelement 4112.
Whether detection sub-unit 4111, be greater than predetermined threshold value for the internal memory use value detecting described target process.
In specific implementation, the situation of RAM leakage can be there is due to defect that program itself designs in some process in operational process, these occur that the memory source of terminal can drain by RAM leakage process gradually, therefore new process can not be created again in terminal, and the situation occurring nothing response, card machine or report an error.RAM leakage is there is in order to prevent process, the threshold value of an internal memory use value can be preset to the process in terminal, when detecting that the internal memory use value of target process is greater than predetermined threshold value in order to detection sub-unit in terminal 4111, by terminating subelement 4112 this target process with the memory source of the terminal discharging this target process and take, then restart this target process by judging unit 403 and start unit 404 and make it restPose.
Terminate subelement, when detecting that the internal memory use value of described target process is greater than predetermined threshold value for described detection sub-unit 4111, terminate described target process, to discharge the tag memory resource that described target process takies.
By the description of above-described embodiment, the embodiment of the present invention can target end process, also can obtain the identification information of described target process, according to the identification information judgment of described target process, whether target process is the binding process of default resident managing process, and then restart described target process when judging that described target process is the binding process of default resident managing process, described target process is restPosed, can release portion tag memory resource, reduce the memory source that in terminal, Resident Process takies, and the memory source making other Resident Process in terminal except resident managing process take easily reclaims, and keep other Resident Process can the feature of self-starting, improve Consumer's Experience.
Above a kind of process management method disclosed in the embodiment of the present invention and terminal are described in detail, above disclosedly be only present pre-ferred embodiments, certainly the interest field of the present invention can not be limited with this, therefore according to the equivalent variations that the claims in the present invention are done, the scope that the present invention is contained still is belonged to.

Claims (10)

1. a process management method, is characterized in that, comprising:
Target end process, to discharge the tag memory resource that described target process takies;
Obtain the identification information of described target process, according to the identification information judgment of described target process, whether target process is the binding process of default resident managing process;
If so, described target process is restarted.
2. method according to claim 1, is characterized in that, described target end process, and the tag memory resource taken to discharge described target process comprises:
Whether the internal memory use value of sense terminals is greater than predetermined threshold value;
If so, described terminal medium priority rank is defined as described target process lower than the process of foreground process;
Terminate described target process, to discharge the tag memory resource that described target process takies.
3. method according to claim 2, is characterized in that, described target end process, also comprises before discharging tag memory resource that described target process takies:
The Resident Process of specifying in described terminal is set as described resident managing process, other Resident Process in described terminal is set to the binding process of described resident managing process;
Revise the priority-level of the binding process of described resident managing process, to make the priority-level of the binding process of described resident managing process lower than the described foreground process in described terminal.
4. method according to claim 1, is characterized in that, described target end process, and the tag memory resource taken to discharge described target process comprises:
Whether the internal memory use value detecting described target process is greater than predetermined threshold value;
If so, described target process is terminated, to discharge the tag memory resource that described target process takies.
5. method according to claim 1, is characterized in that, described in restart described target process before, also comprise:
Obtain the state of the start-up performance switch of current described target process, the state of described start-up performance switch comprises: open state or off status;
Whether the state judging described start-up performance switch is open state, restarts described target process step described in if so, performing.
6. a terminal, is characterized in that, described terminal comprises:
End unit, for target end process, to discharge the tag memory resource that described target process takies;
Acquiring unit, for obtaining the identification information of described target process;
Whether judging unit is the binding process of default resident managing process for target process according to the identification information judgment of described target process;
Start unit, when judging that described target process is the binding process of described resident managing process for described judging unit, restarts described target process.
7. terminal according to claim 6, is characterized in that, described end unit comprises:
Detection sub-unit, whether the internal memory use value for sense terminals is greater than predetermined threshold value;
Determine subelement, when detecting that the internal memory use value of described terminal is greater than predetermined threshold value for described detection sub-unit, described terminal medium priority rank is defined as described target process lower than the process of foreground process;
Terminate subelement, for terminating described target process, to discharge the tag memory resource that described target process takies.
8. terminal according to claim 7, is characterized in that, described terminal also comprises:
Setting unit, before terminating described target process, is set as described resident managing process by the Resident Process of specifying in described terminal for described end unit, and other Resident Process in described terminal is set to the binding process of described resident managing process;
Priority modification unit, for revising the priority-level of the binding process of described resident managing process, to make the priority-level of the binding process of described resident managing process lower than the described foreground process in described terminal.
9. terminal according to claim 6, is characterized in that, described end unit comprises:
Whether detection sub-unit, be greater than predetermined threshold value for the internal memory use value detecting described target process;
Terminate subelement, when detecting that the internal memory use value of described target process is greater than predetermined threshold value for described detection sub-unit, terminate described target process, to discharge the tag memory resource that described target process takies.
10. terminal according to claim 1, is characterized in that,
Described acquiring unit, before also restarting described target process for described start unit, obtain the state of the start-up performance switch of current described target process, the state of described start-up performance switch comprises: open state or off status;
Described judging unit, also for judging whether the state of described start-up performance switch is open state;
Described start unit, when also judging that the state of described start-up performance switch is open state for described judging unit, restarts described target process.
CN201410779136.7A 2014-12-12 2014-12-12 A kind of process management method and terminal Expired - Fee Related CN104503828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410779136.7A CN104503828B (en) 2014-12-12 2014-12-12 A kind of process management method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779136.7A CN104503828B (en) 2014-12-12 2014-12-12 A kind of process management method and terminal

Publications (2)

Publication Number Publication Date
CN104503828A true CN104503828A (en) 2015-04-08
CN104503828B CN104503828B (en) 2018-12-11

Family

ID=52945229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779136.7A Expired - Fee Related CN104503828B (en) 2014-12-12 2014-12-12 A kind of process management method and terminal

Country Status (1)

Country Link
CN (1) CN104503828B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105700960A (en) * 2016-01-13 2016-06-22 广东欧珀移动通信有限公司 Network positioning process start stop method, device and mobile terminal
CN105912394A (en) * 2016-04-25 2016-08-31 深圳市万普拉斯科技有限公司 Thread processing method and system
CN106095558A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 A kind of method of audio effect processing and terminal
CN106294059A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 The restoration methods of process and device in network management system
CN106648863A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Live keeping method and system of Android application installation package and application target process
CN106775851A (en) * 2016-12-02 2017-05-31 深圳创维数字技术有限公司 A kind of self-start method and device
CN106951335A (en) * 2017-02-28 2017-07-14 维沃移动通信有限公司 A kind of process guard method and mobile terminal
CN109189562A (en) * 2018-08-09 2019-01-11 麒麟合盛网络技术股份有限公司 The method and apparatus of control process operation
CN110209548A (en) * 2018-04-19 2019-09-06 深圳市腾讯计算机系统有限公司 Service control method, system, electronic equipment and computer readable storage medium
CN110737562A (en) * 2018-07-19 2020-01-31 深圳市鸿合创新信息技术有限责任公司 method and system for monitoring process and electronic equipment
CN112882832A (en) * 2018-08-28 2021-06-01 Oppo广东移动通信有限公司 Memory management method and device applied to browser, terminal and storage medium
CN113032130A (en) * 2021-05-24 2021-06-25 荣耀终端有限公司 System exception handling method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489049A (en) * 2002-10-11 2004-04-14 华为技术有限公司 Method for monitoring background programme
US20110271074A1 (en) * 2010-04-30 2011-11-03 Youngki Lyu Method for memory management to reduce memory fragments
CN102436404A (en) * 2011-08-24 2012-05-02 苏州阔地网络科技有限公司 Daemon implementing method
CN102479108A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Terminal resource management system for multi-application process embedded system and method
CN102981878A (en) * 2012-11-28 2013-03-20 广东欧珀移动通信有限公司 Method for automatically closing background programs and mobile terminal of automatically closing background programs
CN103324536A (en) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and application program protection method
CN103678084A (en) * 2012-09-21 2014-03-26 成都勤智数码科技股份有限公司 Flexible application process guarding method
CN103838630A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 Information processing method, system and electronic equipment
CN104050044A (en) * 2014-06-19 2014-09-17 宇龙计算机通信科技(深圳)有限公司 Terminal and method and device for releasing memory

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489049A (en) * 2002-10-11 2004-04-14 华为技术有限公司 Method for monitoring background programme
US20110271074A1 (en) * 2010-04-30 2011-11-03 Youngki Lyu Method for memory management to reduce memory fragments
CN102479108A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Terminal resource management system for multi-application process embedded system and method
CN102436404A (en) * 2011-08-24 2012-05-02 苏州阔地网络科技有限公司 Daemon implementing method
CN103324536A (en) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and application program protection method
CN103678084A (en) * 2012-09-21 2014-03-26 成都勤智数码科技股份有限公司 Flexible application process guarding method
CN102981878A (en) * 2012-11-28 2013-03-20 广东欧珀移动通信有限公司 Method for automatically closing background programs and mobile terminal of automatically closing background programs
CN103838630A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 Information processing method, system and electronic equipment
CN104050044A (en) * 2014-06-19 2014-09-17 宇龙计算机通信科技(深圳)有限公司 Terminal and method and device for releasing memory

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294059A (en) * 2015-06-26 2017-01-04 中兴通讯股份有限公司 The restoration methods of process and device in network management system
CN105700960B (en) * 2016-01-13 2018-01-19 广东欧珀移动通信有限公司 A kind of start and stop method, device and mobile terminal of network positions process
CN105700960A (en) * 2016-01-13 2016-06-22 广东欧珀移动通信有限公司 Network positioning process start stop method, device and mobile terminal
CN105912394A (en) * 2016-04-25 2016-08-31 深圳市万普拉斯科技有限公司 Thread processing method and system
CN106095558B (en) * 2016-06-16 2019-05-10 Oppo广东移动通信有限公司 A kind of method and terminal of audio effect processing
US11023254B2 (en) 2016-06-16 2021-06-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for sound effect processing and storage medium
US10853092B2 (en) 2016-06-16 2020-12-01 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for sound effect processing
CN106095558A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 A kind of method of audio effect processing and terminal
CN106775851A (en) * 2016-12-02 2017-05-31 深圳创维数字技术有限公司 A kind of self-start method and device
CN106648863A (en) * 2016-12-08 2017-05-10 武汉斗鱼网络科技有限公司 Live keeping method and system of Android application installation package and application target process
CN106648863B (en) * 2016-12-08 2020-01-03 武汉斗鱼网络科技有限公司 Android application installation package, application target process keep-alive method and system
CN106951335A (en) * 2017-02-28 2017-07-14 维沃移动通信有限公司 A kind of process guard method and mobile terminal
CN106951335B (en) * 2017-02-28 2020-08-04 维沃移动通信有限公司 Process daemon method and mobile terminal
CN110209548A (en) * 2018-04-19 2019-09-06 深圳市腾讯计算机系统有限公司 Service control method, system, electronic equipment and computer readable storage medium
CN110737562A (en) * 2018-07-19 2020-01-31 深圳市鸿合创新信息技术有限责任公司 method and system for monitoring process and electronic equipment
CN109189562A (en) * 2018-08-09 2019-01-11 麒麟合盛网络技术股份有限公司 The method and apparatus of control process operation
CN109189562B (en) * 2018-08-09 2021-08-20 麒麟合盛网络技术股份有限公司 Method and device for controlling process operation
CN112882832A (en) * 2018-08-28 2021-06-01 Oppo广东移动通信有限公司 Memory management method and device applied to browser, terminal and storage medium
CN113032130A (en) * 2021-05-24 2021-06-25 荣耀终端有限公司 System exception handling method and device

Also Published As

Publication number Publication date
CN104503828B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN104503828A (en) Process management method and terminal
WO2017084293A1 (en) Application closing method, device and electronic equipment
CN111045901B (en) Container monitoring method and device, storage medium and electronic equipment
CN103164229A (en) Method and device for clearing progresses of mobile terminal
CN103425506A (en) Powering off method, starting up method and communication terminal
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
JP6101360B2 (en) Method, apparatus, program and recording medium for setting application state
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN110554762A (en) Method and terminal for controlling application program
CN105446776A (en) Application program closing method and device and electronic equipment
CN114096953A (en) Memory management method and device, electronic equipment and computer readable medium
CN103744727A (en) Service starting method, device and intelligent equipment
CN105516502A (en) Mobile terminal and flow control method therefor
CN107645546B (en) File monitoring method based on android system, intelligent device and storage medium
CN105786519B (en) Android device program management method and android device
CN105487635A (en) Management method of applications running in background, and terminal
CN104731593A (en) Information processing method and electronic equipment
CN104809046A (en) Application program networking control method and application program networking control device
CN103257700A (en) Energy saving method and energy saving device for Android system
CN105975320A (en) Third party application installation forbidding method and device and terminal
CN105893221B (en) The alarm method and device of terminal operating duration
CN106200866A (en) A kind of application freezing method and mobile terminal
CN106227569A (en) A kind of application upgrade method and terminal unit
CN104778041A (en) Management method and management system for multi-program shared speech equipment
CN103995717A (en) Method for upgrading software in embedded device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

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

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

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

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181211

CF01 Termination of patent right due to non-payment of annual fee