CN105786670B - A kind of operating system method for restarting and device - Google Patents

A kind of operating system method for restarting and device Download PDF

Info

Publication number
CN105786670B
CN105786670B CN201410806739.1A CN201410806739A CN105786670B CN 105786670 B CN105786670 B CN 105786670B CN 201410806739 A CN201410806739 A CN 201410806739A CN 105786670 B CN105786670 B CN 105786670B
Authority
CN
China
Prior art keywords
memory size
electronic equipment
change
memory
application
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.)
Active
Application number
CN201410806739.1A
Other languages
Chinese (zh)
Other versions
CN105786670A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410806739.1A priority Critical patent/CN105786670B/en
Publication of CN105786670A publication Critical patent/CN105786670A/en
Application granted granted Critical
Publication of CN105786670B publication Critical patent/CN105786670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of operating system method for restarting and device, wherein os starting method, include: the memory size situation of change for obtaining current electronic device, memory size situation of change show in the first time period pace of change of memory size and/or in second time period memory size amplitude of variation;The various applications that run on electronic equipment in this way can show the occupancy situation of memory size with memory volume change situation.When memory size situation of change satisfaction restarts condition, the operating system of electronic equipment is restarted.In operating system restarting process, the data for being stored in memory various applications are also cleaned, to realize that the memory size occupied with reboot operation system to resident applications and system application is cleared up.

Description

A kind of operating system method for restarting and device
Technical field
The present invention relates to operation system technology field, in particular to a kind of operating system method for restarting and device.
Background technique
Android system is a kind of open source code operating system based on Linux and JAVA, initially by Andy Rubin (An Dilubin) exploitation, then by Google company and open mobile phone alliance leader and exploitation after being purchased by Google, mainly Suitable for portable electronic devices such as mobile phone and plates.
At present there is much resident applications in Android system, such as the application of desktop application, mobile phone safe software, wherein resident answer With the application for being memory-resident.Resident applications generally have system permission under normal conditions, pre-install in electronic equipment factory, and And as the growth of its terminate-and-stay-resident time will appear memory swelling, so that the free memory capacity of electronic equipment reduces, Influence the operation of other application.
But current memory method for cleaning is only for the application for not having system permission, to this with system permission Resident applications do not work, therefore are badly in need of a kind of method that the memory size that can be occupied to resident applications is cleared up at present.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of operating system method for restarting and devices, pass through reboot operation System is cleared up come the memory size occupied to resident applications and system application.Technical solution is as follows:
On the one hand, the present invention provides a kind of os starting method, comprising:
The memory size situation of change for obtaining current electronic device, wherein the memory size situation of change shows first In period the pace of change of memory size and/or in second time period memory size amplitude of variation;
Judge whether the memory size situation of change meets and restart condition, obtains judging result;
When the judging result show the memory size situation of change meet described in restart condition when, restart the electronics The operating system of equipment.
Preferably, the method also includes:
Before the operating system for restarting the electronic equipment, the application of the electronic equipment operation is recorded;
Start the recorded all or part application after the operating system of the electronic equipment is restarted.
Preferably, the method also includes: before the operating system for restarting the electronic equipment, record the electronic equipment The volume used is arranged and closes volume;
Volume is adjusted after the operating system of the electronic equipment is restarted to the volume setting recorded.
Preferably, judge whether the memory size situation of change meets to restart condition and include:
Based on the memory size situation of change, the free memory capacity of presently described electronic equipment is obtained;
When the free memory capacity is less than the default memory size, when obtaining the operation of presently described electronic equipment Carve the application parameter with the stack top application of presently described electronic equipment operation;
Restart in the period when the time of running of the electronic equipment is in, and the application parameter of stack top application indicates institute Stack top application is stated when not changing, determines that the memory size situation of change satisfaction restarts condition.
On the other hand, the present invention also provides a kind of os starting devices, comprising:
Acquiring unit, for obtaining the memory size situation of change of current electronic device, wherein the memory size changes Situation show in the first time period pace of change of memory size and/or in second time period memory size variation width Degree;
Judging unit restarts condition for judging whether the memory size situation of change meets, and obtains judging result;
Control unit, for showing that the memory size situation of change restarts condition described in meeting when the judging result When, restart the operating system of the electronic equipment.
Preferably, described device further include:
First recording unit, for before the operating system for restarting the electronic equipment, recording the electronic equipment operation Application;
Described control unit be also used to start after the operating system of the electronic equipment is restarted recorded whole or The part application.
Preferably, described device further include: the second recording unit, in the operating system for restarting the electronic equipment Before, it records the volume that the electronic equipment uses and is arranged and closes volume;
Described control unit is also used to adjust what volume was extremely recorded after the operating system of the electronic equipment is restarted The volume setting.
Preferably, the judging unit includes: the first acquisition subelement, the second acquisition subelement and determines subelement;Its In,
Described first obtains subelement, for being based on the memory size situation of change, obtains presently described electronic equipment Free memory capacity;
Described second obtains subelement, for obtaining when the free memory capacity is less than the default memory size The application parameter of the stack top application of the time of running of presently described electronic equipment and the operation of presently described electronic equipment;
The determining subelement is in for the time of running when the electronic equipment and restarts in the period, and the stack top When the application parameter of application indicates that the stack top application does not change, determine that the memory size situation of change satisfaction restarts item Part.
It can be seen from the above technical proposal that showing the memory size in first time period by memory size situation of change Pace of change and/or in second time period memory size amplitude of variation, the various applications run on such electronic equipment The occupancy situation of memory size can be shown with memory volume change situation.When memory size situation of change satisfaction restarts item When part, the operating system of electronic equipment is restarted.In operating system restarting process, it is stored in memory the data of various applications It is cleaned, to realize that the memory size occupied with reboot operation system to resident applications and system application is cleared up.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow chart of operating system method for restarting provided in an embodiment of the present invention;
Fig. 2 is the flow chart of step 102 in Fig. 1;
Fig. 3 is another flow chart of operating system method for restarting provided in an embodiment of the present invention;
Fig. 4 is another flow chart of operating system method for restarting provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of operating system rebooting device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of judging unit in Fig. 5;
Fig. 7 is another structural schematic diagram of operating system rebooting device provided in an embodiment of the present invention.
Specific embodiment
Inventor has found that the memory that current memory method for cleaning is unable to resident applications and system application occupies Capacity is cleared up, and memory swelling occurs using the growth of residence time in memory in resident applications and system in this way, So that the free memory capacity of electronic equipment reduces, the operation of other application is influenced.And the memory in operating system restarting process Cleared up together, so core of the invention thought first is that: resident applications and system are answered by restarting for operating system It is cleared up with the memory size of occupancy.
In order to make those skilled in the art more fully understand the present invention, following will be combined with the drawings in the embodiments of the present invention, Technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only the present invention A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Referring to Fig. 1, it illustrates a kind of a kind of flow chart of os starting method provided in an embodiment of the present invention, It may comprise steps of:
101: obtaining the memory size situation of change of current electronic device, wherein memory size situation of change shows first In period the pace of change of memory size and/or in second time period memory size amplitude of variation.
First time period and second time period can be either different time sections of same period, it can under normal circumstances Normally to be determined to there is the intumescent time interval of memory according to from memory size, to this embodiment of the present invention and unlimited Determine the specific value of first time period and second time period.
In embodiments of the present invention, the pace of change of memory size and/or in second time period in first time period The amplitude of variation of memory size is used to indicate whether memory size mutates within a certain period of time.Such as with resident applications The growth of residence time will appear memory swelling in memory, which illustrates memory size in a timing Between mutate in section, therefore the embodiment of the present invention can at least determine whether memory occurs by memory size situation of change Memory swelling determines a need for reboot operation system based on this.
Further, memory size situation of change can indicate that wherein free memory capacity is to remove with free memory capacity Remaining memory size except occupied capacity, acquisition modes are as follows:
The average memory that memory size-resident applications that the total memory of free memory capacity R=-system application occupies occupy holds Measure CMavg, wherein resident applications occupy average memory size CMavgThe average memory occupied in measurement period for resident applications Capacity, measurement period are that electronic equipment is judged whether to automatically using operating system method for restarting provided in an embodiment of the present invention The time interval restarted can be by measurement period of day or with one week as measurement period.
In embodiments of the present invention, the average memory size CM that resident applications occupyavgAcquisition process be: obtain each The memory consumption CM of resident applications in period Tii n, then to the memory consumption CM of resident applicationsi nIt is averaged, it is resident to obtain Using the average memory size CM of occupancyavg=average (CMi n).Wherein n is period total number, and i is i-th of period, period It can be the period as unit of hour for the time of the memory consumption of acquisition resident applications, such as period Ti, such as (0-8 point, 8-12 point, 12-18 point, 18-0 point), obtain the memory consumption CM of resident applications in this four periodsi n
102: judging whether memory size situation of change meets and restart condition, obtain judging result.
In embodiments of the present invention, restart condition to be used to indicate whether to need reboot operation system, it specifically can be using not It is used as with condition and restarts condition.A kind of feasible pattern for restarting condition is: when memory size situation of change is held using free memory When amount indicates, restarting condition then can be default memory size, and the default memory size is except system application and resident applications Except other application occupy maximum memory capacity.
When free memory capacity is not more than default memory size, show that free memory capacity is not able to satisfy except system application With the demand of the other application except resident applications, determine that memory size situation of change satisfaction restarts condition at this time;In available When depositing capacity and being greater than default memory size, other for showing that free memory capacity meets in addition to system is applied and resident applications are answered Demand determines that memory size situation of change is unsatisfactory for restarting condition at this time.
Another feasible pattern for restarting condition is: increasing other conditions on the basis of default memory size, specifically may be used As shown in fig.2, judging whether memory size situation of change meets Fig. 2 shows provided in an embodiment of the present invention and restarting condition A kind of mode, may comprise steps of:
1021: volume change situation based on memory obtains the free memory capacity of current electronic device.Wherein free memory Capacity is the free memory capacity R in step 101, and acquisition modes are refering to the related description in step 101, and and will not be described here in detail.
1022: when free memory capacity is less than default memory size, obtaining the time of running of current electronic device and work as The application parameter of the stack top application of preceding electronic equipment operation.
In embodiments of the present invention, the time of running is used to indicate the working time of current electronic device, can set from electronics It is obtained in standby interior clock generation circuit.Application parameter is used to indicate out the stack top application for being currently resident in stack top, at least wraps The Apply Names of stack top application are included, wherein Apply Names can be obtained by getTopApp () method in call operation system It takes.
1023: restarting in the period when the time of running of electronic equipment is in, and the application parameter of stack top application indicates stack top When using not changing, determine that memory size situation of change satisfaction restarts condition.
The period is restarted at the time of being manually reset by monitor operating system to determine, when monitoring at a time It is manually reset repeatedly, then using the certain period of time centered on a certain moment as restarting the period.Certainly restarting the period can also be with It is arranged according to the work and rest of user habit, this embodiment of the present invention is not limited specifically and restarts the period.
After getting application parameter, the application parameter currently got and the last application parameter got are carried out It compares to judge whether stack top application changes.When the application parameter currently got and the last application parameter got When identical, show that stack top application does not change.When stack top application does not change, indicate that user does not operate electronics and sets It is standby, it can determine that memory size situation of change satisfaction restarts condition when determining that the time of running is in reset time at this time.
When the application parameter currently got and the last application parameter difference got, show that stack top application occurs Variation indicates that user is operating electronic equipment when stack top application changes, and then determines that memory size changes feelings Condition is unsatisfactory for restarting condition.
This figure 2 show the stack top of free memory capacity, the time of running and current electronic device operation can be used to answer Application parameter restarts condition to judge whether memory size situation of change meets, and this mode can consider free memory Capacity is it is further contemplated that user operates, so that operating system restarts the demand that can more meet user, reduction is operated in user The probability of reboot operation system during electronic equipment.
103: when judging result shows that memory size situation of change satisfaction restarts condition, restarting the operation system of electronic equipment System.
When memory size situation of change satisfaction restarts condition, show the pace of change of the memory size in first time period Comparatively fast and/or the amplitude of variation of memory size is larger in second time period, so that memory size is within a certain period of time It mutates, which is likely to result in memory and memory swelling occur, needs internally to deposit into row at this time and clears up so that available Memory size meets the needs of other application, therefore when memory size situation of change satisfaction restarts condition, reboot operation system.
In operating system restarting process, the data for being stored in memory various applications are also cleaned, to realize with weight The memory size that operating system occupies resident applications and system application is opened to clear up.
Referring to Fig. 3, it illustrates another flow chart of operating system method for restarting provided in an embodiment of the present invention, it can With the following steps are included:
301: obtaining the memory size situation of change of current electronic device, wherein memory size situation of change shows first In period the pace of change of memory size and/or in second time period memory size amplitude of variation.
302: judging whether memory size situation of change meets and restart condition, obtain judging result.
303: when judging result shows that memory size situation of change satisfaction restarts condition, restarting the operation system of electronic equipment System.
Wherein step 301 is to step 303: it is identical to step 103 as above-mentioned steps 101, no longer to this embodiment of the present invention Step 301 is elaborated to step 303.
304: before restarting the operating system of electronic equipment, the application of record electronic equipment operation.
305: starting recorded all or part of application after the operating system of electronic equipment is restarted.
In operating system restarting process, the historical data for being stored in memory each application is removed, because of history number According to be with application in memory the growth of residence time and it is increased, these historical datas will not after operating system is restarted Committed memory capacity again, so starting recorded all or part of application after operating system is restarted still can be to memory Capacity is cleared up.
Further when actuating section in application, the number of applications of starting is less than the number of applications that starting is all applied, in this way Available more free memory capacity are used for other application, but are started all using can weigh automatically in operating system Application before starting is restarted in the case where opening, guarantee to restart the operation of front and back electronic equipment using identical, realization user not Automatically the resident whole applications in memory of cleaning in the case where knowing.
Referring to Fig. 4, it illustrates another flow chart of operating system method for restarting provided in an embodiment of the present invention, it can With the following steps are included:
401: obtaining the memory size situation of change of current electronic device, wherein memory size situation of change shows first In period the pace of change of memory size and/or in second time period memory size amplitude of variation.
402: judging whether memory size situation of change meets and restart condition, obtain judging result.
403: when judging result shows that memory size situation of change satisfaction restarts condition, restarting the operation system of electronic equipment System.
Wherein step 401 is to step 403: it is identical to step 103 as above-mentioned steps 101, no longer to this embodiment of the present invention Step 401 is elaborated to step 403.
404: before restarting the operating system of electronic equipment, the volume that record electronic equipment uses is arranged and closes volume.
405: volume is adjusted after the operating system of electronic equipment is restarted to the volume setting recorded.
In embodiments of the present invention, the volume setting recorded can be the common volume setting of user.It is in operation Volume adjustment to the volume recorded is arranged after restarting for system, so that user without changing manually after operating system is restarted Volume setting.The treatment process of volume also can be applied in above-mentioned flow chart shown in Fig. 3 in certain embodiment of the present invention, This embodiment of the present invention is no longer illustrated.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
Corresponding with above method embodiment, the embodiment of the present invention also provides a kind of operating system rebooting device, structure Schematic diagram can be as shown in fig.5, include: acquiring unit 11, judging unit 12 and control unit 13.Wherein,
Acquiring unit 11, for obtaining the memory size situation of change of current electronic device, wherein memory size changes feelings Condition show in the first time period pace of change of memory size and/or in second time period memory size amplitude of variation.
First time period and second time period can be either different time sections of same period, it can under normal circumstances Normally to be determined to there is the intumescent time interval of memory according to from memory size, to this embodiment of the present invention and unlimited Determine the specific value of first time period and second time period.
In embodiments of the present invention, the pace of change of memory size and/or in second time period in first time period The amplitude of variation of memory size is used to indicate whether memory size mutates within a certain period of time.Such as with resident applications The growth of residence time will appear memory swelling in memory, which illustrates memory size in a timing Between mutate in section, therefore the embodiment of the present invention can at least determine whether memory occurs by memory size situation of change Memory swelling determines a need for reboot operation system based on this.
Further, memory size situation of change can indicate that wherein free memory capacity is to remove with free memory capacity Remaining memory size except occupied capacity, acquisition modes are as follows:
The average memory that memory size-resident applications that the total memory of free memory capacity R=-system application occupies occupy holds Measure CMavg, wherein resident applications occupy average memory size CMavgThe average memory occupied in measurement period for resident applications Capacity, measurement period are that electronic equipment is judged whether to automatically using operating system method for restarting provided in an embodiment of the present invention The time interval restarted can be by measurement period of day or with one week as measurement period.
In embodiments of the present invention, the average memory size CM that resident applications occupyavgAcquisition process be: obtain each The memory consumption CM of resident applications in period Tii n, then to the memory consumption CM of resident applicationsi nIt is averaged, it is resident to obtain Using the average memory size CM of occupancyavg=average (CMi n).Wherein n is period total number, and i is i-th of period, period It can be the period as unit of hour for the time of the memory consumption of acquisition resident applications, such as period Ti, such as (0-8 point, 8-12 point, 12-18 point, 18-0 point), obtain the memory consumption CM of resident applications in this four periodsi n
Judging unit 12 restarts condition for judging whether memory size situation of change meets, and obtains judging result.
In embodiments of the present invention, restart condition to be used to indicate whether to need reboot operation system, it specifically can be using not It is used as with condition and restarts condition.A kind of feasible pattern for restarting condition is: when memory size situation of change is held using free memory When amount indicates, restarting condition then can be default memory size, and the default memory size is except system application and resident applications Except other application occupy maximum memory capacity.
When free memory capacity is not more than default memory size, show that free memory capacity is not able to satisfy except system application With the demand of the other application except resident applications, determine that memory size situation of change satisfaction restarts condition at this time;In available When depositing capacity and being greater than default memory size, other for showing that free memory capacity meets in addition to system is applied and resident applications are answered Demand determines that memory size situation of change is unsatisfactory for restarting condition at this time.
Another feasible pattern for restarting condition is: increasing other conditions on the basis of default memory size, specifically may be used With the structural schematic diagram refering to judging unit 12 shown in Fig. 6, judging unit 12 may include: the first acquisition subelement 121, second It obtains subelement 122 and determines subelement 123.Wherein,
First obtains subelement 121, for volume change situation based on memory, obtains the free memory of current electronic device Capacity.Wherein free memory capacity is the free memory capacity R in step 101, and acquisition modes are refering to mutually speaking on somebody's behalf in step 101 Bright, and will not be described here in detail.
Second obtains subelement 122, for obtaining Current electronic and setting when free memory capacity is less than default memory size The application parameter of the stack top application of the standby time of running and current electronic device operation.In embodiments of the present invention, the time of running It is used to indicate the working time of current electronic device, can be obtained from the clock generation circuit in electronic equipment.Application parameter It is used to indicate out the stack top application for being currently resident in stack top, includes at least the Apply Names of stack top application, wherein Apply Names It can be obtained by the getTopApp () method in call operation system.
It determines subelement 123, is in and is restarted in the period for the time of running when electronic equipment, and the application of stack top application When parameter instruction stack top application does not change, determine that memory size situation of change satisfaction restarts condition.
The period is restarted at the time of being manually reset by monitor operating system to determine, when monitoring at a time It is manually reset repeatedly, then using the certain period of time centered on a certain moment as restarting the period.Certainly restarting the period can also be with It is arranged according to the work and rest of user habit, this embodiment of the present invention is not limited specifically and restarts the period.
After getting application parameter, the application parameter currently got and the last application parameter got are carried out It compares to judge whether stack top application changes.When the application parameter currently got and the last application parameter got When identical, show that stack top application does not change.When stack top application does not change, indicate that user does not operate electronics and sets It is standby, it can determine that memory size situation of change satisfaction restarts condition when determining that the time of running is in reset time at this time.
When the application parameter currently got and the last application parameter difference got, show that stack top application occurs Variation indicates that user is operating electronic equipment when stack top application changes, and then determines that memory size changes feelings Condition is unsatisfactory for restarting condition.
This figure 2 show the stack top of free memory capacity, the time of running and current electronic device operation can be used to answer Application parameter restarts condition to judge whether memory size situation of change meets, and this mode can consider free memory Capacity is it is further contemplated that user operates, so that operating system restarts the demand that can more meet user, reduction is operated in user The probability of reboot operation system during electronic equipment.
Control unit 13, for restarting electronics when judging result shows that memory size situation of change satisfaction restarts condition The operating system of equipment.
When memory size situation of change satisfaction restarts condition, show the pace of change of the memory size in first time period Comparatively fast and/or the amplitude of variation of memory size is larger in second time period, so that memory size is within a certain period of time It mutates, which is likely to result in memory and memory swelling occur, needs internally to deposit into row at this time and clears up so that available Memory size meets the needs of other application, therefore when memory size situation of change satisfaction restarts condition, reboot operation system.
In operating system restarting process, the data for being stored in memory various applications are also cleaned, to realize with weight The memory size that operating system occupies resident applications and system application is opened to clear up.
Referring to Fig. 7, it illustrates another structural representations of operating system rebooting device provided in an embodiment of the present invention Figure, can also include: the first recording unit 14 on the basis of Fig. 5, for before restarting the operating system of electronic equipment, record to be electric The application of sub- equipment operation.Corresponding control unit 13, which is also used to start after the operating system of electronic equipment is restarted, to be recorded All or part of application.
In operating system restarting process, the historical data for being stored in memory each application is removed, because of history number According to be with application in memory the growth of residence time and it is increased, these historical datas will not after operating system is restarted Committed memory capacity again, so starting recorded all or part of application after operating system is restarted still can be to memory Capacity is cleared up.
Further when actuating section in application, the number of applications of starting is less than the number of applications that starting is all applied, in this way Available more free memory capacity are used for other application, but are started all using can weigh automatically in operating system Application before starting is restarted in the case where opening, guarantee to restart the operation of front and back electronic equipment using identical, realization user not Automatically the resident whole applications in memory of cleaning in the case where knowing.
Furthermore the operating system rebooting device of above-mentioned offer can also include: the second recording unit, for restarting electronics Before the operating system of equipment, the volume that record electronic equipment uses is arranged and closes volume.In the operating system weight of electronic equipment Control unit 13 adjusts volume to the volume setting recorded after opening.
In embodiments of the present invention, the volume setting recorded can be the common volume setting of user.It is in operation Volume adjustment to the volume recorded is arranged after restarting for system, so that user without changing manually after operating system is restarted Volume setting.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of operating system method for restarting provided by the present invention and device are described in detail above, answered herein With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage Solve method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention, There will be changes in specific embodiment and application range, in conclusion the content of the present specification should not be construed as to this hair Bright limitation.

Claims (8)

1. a kind of os starting method characterized by comprising
The memory size situation of change of current electronic device is obtained, wherein the memory size situation of change shows at the first time In section the pace of change of memory size and/or in second time period memory size amplitude of variation, should in first time period The pace of change of the memory size and/or amplitude of variation of memory size is used to indicate memory size certain in second time period Whether mutate in period, the memory size mutates within a certain period of time characterizes resident applications and system application There is memory swelling;
Judge whether the memory size situation of change meets and restart condition, obtains judging result;
When the judging result show the memory size situation of change meet described in restart condition when, restart the electronic equipment Operating system, with clear up resident applications and system application occupy electronic equipment memory size.
2. the method according to claim 1, wherein the method also includes:
Before the operating system for restarting the electronic equipment, the application of the electronic equipment operation is recorded;
Start the recorded all or part application after the operating system of the electronic equipment is restarted.
3. method according to claim 1 or 2, which is characterized in that the method also includes: restarting the electronic equipment Operating system before, record the volume that the electronic equipment uses and be arranged and close volume;
Volume is adjusted after the operating system of the electronic equipment is restarted to the volume setting recorded.
4. restarting the method according to claim 1, wherein judging whether the memory size situation of change meets Condition includes:
Based on the memory size situation of change, the free memory capacity of presently described electronic equipment is obtained;
When the free memory capacity is less than default memory size, time of running of presently described electronic equipment and current is obtained The application parameter of the stack top application of the electronic equipment operation;
Restart in the period when the time of running of the electronic equipment is in, and the application parameter of stack top application indicates the stack When top application does not change, determine that the memory size situation of change satisfaction restarts condition.
5. a kind of os starting device characterized by comprising
Acquiring unit, for obtaining the memory size situation of change of current electronic device, wherein the memory size situation of change Show in the first time period pace of change of memory size and/or in second time period memory size amplitude of variation, should The pace of change of the memory size and/or amplitude of variation of memory size is used to indicate in second time period in first time period Whether memory size mutates within a certain period of time, and the memory size mutates to characterize within a certain period of time and reside There is memory swelling using with system application;
Judging unit restarts condition for judging whether the memory size situation of change meets, and obtains judging result;
Control unit, for when the judging result show the memory size situation of change meet described in restart condition when, weight The operating system of the electronic equipment is opened, to clear up the electronic equipment memory size of resident applications and system application occupancy.
6. device according to claim 5, which is characterized in that described device further include:
First recording unit, for before the operating system for restarting the electronic equipment, recording answering for the electronic equipment operation With;
Described control unit is also used to start recorded all or part after the operating system of the electronic equipment is restarted The application.
7. device according to claim 5 or 6, which is characterized in that described device further include: the second recording unit is used for Before the operating system for restarting the electronic equipment, records the volume that the electronic equipment uses and be arranged and close volume;
Described control unit is also used to adjust volume after the operating system of the electronic equipment is restarted to described in being recorded Volume setting.
8. device according to claim 5, which is characterized in that the judging unit includes: the first acquisition subelement, second It obtains subelement and determines subelement;Wherein,
Described first obtains subelement, and for being based on the memory size situation of change, obtain presently described electronic equipment can Use memory size;
Described second obtains subelement, for obtaining presently described when the free memory capacity is less than default memory size The application parameter of the stack top application of the time of running of electronic equipment and the operation of presently described electronic equipment;
The determining subelement is in for the time of running when the electronic equipment and restarts in the period, and the stack top application Application parameter when indicating that stack top application does not change, determine that the memory size situation of change satisfaction restarts condition.
CN201410806739.1A 2014-12-22 2014-12-22 A kind of operating system method for restarting and device Active CN105786670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410806739.1A CN105786670B (en) 2014-12-22 2014-12-22 A kind of operating system method for restarting and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410806739.1A CN105786670B (en) 2014-12-22 2014-12-22 A kind of operating system method for restarting and device

Publications (2)

Publication Number Publication Date
CN105786670A CN105786670A (en) 2016-07-20
CN105786670B true CN105786670B (en) 2019-06-25

Family

ID=56385480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410806739.1A Active CN105786670B (en) 2014-12-22 2014-12-22 A kind of operating system method for restarting and device

Country Status (1)

Country Link
CN (1) CN105786670B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111581014B (en) * 2020-03-30 2024-03-22 中国建设银行股份有限公司 Method and device for restarting automatic control host and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873616A (en) * 2010-06-21 2010-10-27 宇龙计算机通信科技(深圳)有限公司 Mobile terminal self-check method and system and mobile terminal
CN103856615A (en) * 2012-12-04 2014-06-11 赛龙通信技术(深圳)有限公司 Method for displaying dynamic variation data of state parameters of mobile phone

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1038368B1 (en) * 1997-11-13 2013-07-31 Intellectual Ventures I LLC File transfer system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873616A (en) * 2010-06-21 2010-10-27 宇龙计算机通信科技(深圳)有限公司 Mobile terminal self-check method and system and mobile terminal
CN103856615A (en) * 2012-12-04 2014-06-11 赛龙通信技术(深圳)有限公司 Method for displaying dynamic variation data of state parameters of mobile phone

Also Published As

Publication number Publication date
CN105786670A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
US9354686B2 (en) Monitoring and managing processor activity in power save mode of portable electronic device
CN110058889B (en) Application awakening method and device
KR102604735B1 (en) Apparatus and method for manegementing consumption power in a electrolic device
US9753517B2 (en) User-personalized wake policy based on learned user behavior
US9910485B2 (en) Performance of services based on power consumption
CN107550475A (en) A kind of method, apparatus and wearable device for monitoring human heart rate
WO2015131679A1 (en) Task process processing method and device
US9747111B2 (en) Task execution on a managed node based on compliance with execution policy
CN106095038A (en) For preventing method and the electronic equipment thereof of cell expansion
US20170052514A1 (en) Method and computer software program for a smart home system
CN105786552B (en) A kind of memory method for cleaning and electronic equipment
CN105824294A (en) System and method of intelligent alarm control
CN105373485A (en) Memory cleaning system and method and terminal device
CN105786670B (en) A kind of operating system method for restarting and device
CN111290284A (en) Method for managing equipment according to user habits and terminal equipment
CN105511880A (en) Transparent computing based intelligent software starting method
US11206152B2 (en) Method and apparatus for managing missed events
CN111984337A (en) Operation mode collection method, terminal device, massage device and storage medium
CN104350476B (en) A kind of version detection period control method and device
CN109408145A (en) A kind of processor starting method, apparatus, system and computer readable storage medium
CN105183176B (en) A kind for the treatment of method and apparatus of application program
CN113615659A (en) Control method of mosquito eradication device, and computer-readable storage medium
CN103488506A (en) Method and device for unloading management of application programs
CN105912395B (en) A kind of process management method and device
CN109445268A (en) A kind of quarter-bell control method, terminal device and storage medium

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