CN109871280A - Background process management method and device - Google Patents

Background process management method and device Download PDF

Info

Publication number
CN109871280A
CN109871280A CN201910204972.5A CN201910204972A CN109871280A CN 109871280 A CN109871280 A CN 109871280A CN 201910204972 A CN201910204972 A CN 201910204972A CN 109871280 A CN109871280 A CN 109871280A
Authority
CN
China
Prior art keywords
memory
application program
specified
space
memory headroom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910204972.5A
Other languages
Chinese (zh)
Inventor
郑鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ELEX Technology Co Ltd
Original Assignee
Beijing ELEX Technology Co 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 Beijing ELEX Technology Co Ltd filed Critical Beijing ELEX Technology Co Ltd
Priority to CN201910204972.5A priority Critical patent/CN109871280A/en
Publication of CN109871280A publication Critical patent/CN109871280A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of background process management method and devices, it include: the application program for obtaining user and specifying, it is in memory the application assigned memory headroom, and as specified memory space, the space occupied size when the specified memory space is run at least more than the application program;The occupancy percentage of presently described memory is obtained, if the occupancy percentage is greater than preset threshold, according to predetermined manner, discharges the memory headroom in addition to the specified memory space.Due to that can be managed to the memory headroom that background process uses, and selectively close background application, from the application program for needing to continue to use without some users by the closing of mistake, and cause user that need to reopen application program, record the problem of losing.Therefore, greatly the user experience is improved.

Description

Background process management method and device
Technical field
The present embodiments relate to Internet technical fields, and in particular to a kind of background process management method and device.
Background technique
There are more and more APP to apply currently on the market, people would generally be downloaded in mobile phone terminal and install these APP come into Row viewing takes pictures, learns, a series of activities such as game.However, mobile terminal device this kind of for mobile phone, running memory one As be limited, when multiple application programs are simultaneously in running background, the running memory of mobile phone may will soon be saturated or Close to saturation, there is the case where memory takes, will lead to that the mobile phone speed of service is slack-off even to collapse in this way.In the relevant technologies In, it is to discharge mobile phone running memory in time using the operating system of mobile phone itself, but operating system can't be closed selectively Background application is closed, application program that some users need to continue to use is easy to appear by the closing of mistake, user is caused to need Reopen application program, the problem of record is lost, strong influence user experience, interaction is unfriendly.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of background process management method and device, to solve to occur in the prior art The problem of application program that some users need to continue to use is closed by mistake.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
According to a first aspect of the embodiments of the present invention, a kind of background process management method is provided, comprising:
The application program that user specifies is obtained, is in memory the application assigned memory headroom, and as specified Memory headroom, the space occupied size when the specified memory space is run at least more than the application program;
The occupancy percentage of presently described memory is obtained, if the occupancy percentage is greater than preset threshold, according to default Mode discharges the memory headroom in addition to the specified memory space.
Further, described is the application assigned memory headroom in memory, comprising:
Currently available memory headroom in the memory is detected, default size is chosen from the currently available memory headroom Memory headroom, and initial address and the end address of the memory headroom of the default size are recorded, by the initial address and institute Stating end address, process corresponding with the application program is associated simultaneously, and adds and lock to the memory headroom of the default size Mark.
Further, the predetermined manner is application program occupied memory headroom of the release in addition to system application.
Further, described according to predetermined manner, after discharging the memory headroom in addition to the specified memory space, also Include:
If the occupancy percentage of presently described memory is also greater than the preset threshold, prompt the user whether to discharge described Specified memory space.
Further, it is described prompt the user whether to discharge the specified memory space after, further includes:
If the memory headroom that the application program currently occupies is less than the specified memory space, discharge described specified The still not used memory headroom of application program described in memory headroom.
Further, it is described discharge the still not used memory headroom of application program described in the specified memory space it Afterwards, further includes:
If the occupancy percentage of presently described memory is also greater than the preset threshold, check the application program it is corresponding into The operating status of journey discharges the specified memory space if the process is in deadlock state.
Further, after the release specified memory space, further includes:
The RR release record for obtaining the specified memory space, the use of the application program is generated according to the RR release record Report, and user is fed back to using report by described.
Further, after the RR release record for obtaining the specified memory space, further includes:
Process currently occupied memory headroom is corresponded to according to the RR release record and the application program, is again institute State application assigned memory headroom.
According to a second aspect of the embodiments of the present invention, a kind of background process managing device is provided, comprising:
Obtain module, the application program specified for obtaining user;
First distribution module, for being in memory the application assigned memory headroom, and as specified memory sky Between, the space occupied size when the specified memory space is run at least more than the application program;
First release module, for obtaining the occupancy percentage of presently described memory, if the occupancy percentage is greater than in advance If threshold value, then according to predetermined manner, the memory headroom in addition to the specified memory space is discharged.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising:
At least one processor;And
At least one processor being connect with processor communication, in which:
Memory is stored with the program instruction that can be executed by processor, and the instruction of processor caller is able to carry out first party Background process management method provided by any possible implementation in the various possible implementations in face.
The embodiment of the present invention has the advantages that the application program specified by obtaining user, answers in memory to be described With program storage allocation space, and as specified memory space.The occupancy percentage of presently described memory is obtained, if the occupancy Percentage is greater than preset threshold, then according to predetermined manner, discharges the memory headroom in addition to the specified memory space.Due to can To be managed to the memory headroom that background process uses, and selectively close background application, from without The application program that some users need to continue to use causes user that need to reopen application program, record by the closing of mistake The problem of loss.Therefore, greatly the user experience is improved.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Structure depicted in this specification, ratio, size etc., only to cooperate the revealed content of specification, for Those skilled in the art understands and reads, and is not intended to limit the invention enforceable qualifications, therefore does not have technical Essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the function of the invention that can be generated Under effect and the purpose that can reach, should all still it fall in the range of disclosed technology contents obtain and can cover.
Fig. 1 is a kind of overall flow schematic diagram for background process management method that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of overall structure diagram for background process managing device that the embodiment of the present invention 2 provides;
Fig. 3 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention 3 provides.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
There are more and more APP to apply currently on the market, people would generally be downloaded in mobile phone terminal and install these APP come into Row viewing takes pictures, learns, a series of activities such as game.However, mobile terminal device this kind of for mobile phone, running memory one As be limited, when multiple application programs are simultaneously in running background, the running memory of mobile phone may will soon be saturated or Close to saturation, there is the case where memory takes, will lead to that the mobile phone speed of service is slack-off even to collapse in this way.In the relevant technologies In, it is to discharge mobile phone running memory in time using the operating system of mobile phone itself, but operating system can't be closed selectively Background application is closed, application program that some users need to continue to use is easy to appear by the closing of mistake, user is caused to need Reopen application program, the problem of record is lost, strong influence user experience, interaction is unfriendly.
For said circumstances, as described in Figure 1, a kind of the whole of background process management method of the specific embodiment of the invention is shown Body flow chart, comprising: the application program that user specifies S1, is obtained, is in memory the application assigned memory headroom, and As specified memory space, the space occupied size when the specified memory space is run at least more than the application program;S2, The occupancy percentage of presently described memory is obtained, if the occupancy percentage is greater than preset threshold, according to predetermined manner, release Memory headroom in addition to the specified memory space.
Wherein, user can be by the relevant APP specified application of memory management, for the application assigned memory Space, the present invention is not especially limit this.Specifically, user can specify on mobile phone and be not desired to pent application Program, mobile phone are not desired to pent application program to what user specified, can be its storage allocation space, as specified memory sky Between, and the specified memory space is locked, to improve its priority, make its resident backstage.
When user uses mobile phone, system monitors the occupancy situation of mobile phone running memory in real time, when monitoring running memory When nervous namely when the occupancy percentage of memory is greater than preset threshold, system is first to all application programs of running background It is detected, the memory headroom in addition to specified memory space is preferentially discharged further according to testing result, specified with to retain user Application program.
Method provided in an embodiment of the present invention, the application program specified by obtaining user, is in memory the application Program storage allocation space, and as specified memory space.The occupancy percentage of presently described memory is obtained, if described occupy hundred Divide than being greater than preset threshold, then according to predetermined manner, discharges the memory headroom in addition to the specified memory space.Due to can be with The memory headroom that background process uses is managed, and selectively closes background application, from without one The application program that a little users need to continue to use is caused user that need to reopen application program, is recorded and lose by the closing of mistake The problem of mistake.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method is provided, including described It is the application assigned memory headroom in depositing, comprising: currently available memory headroom in the memory is detected, from described current The memory headroom of default size is chosen in available memory space, and record the memory headroom of the default size initial address and End address, by the initial address and the end address, process corresponding with the application program is associated simultaneously, and right The memory headroom addition lock mark of the default size.
Wherein, by the initial address and the end address, process corresponding with the application program is associated simultaneously, It can be realized by way of locking.It specifically, can be the memory headroom distribution lock mark of default size, when other application journey When sequence needs to take over for use this block memory headroom, it can first determine whether the memory headroom is locked, it is other if be not locked Application program can directly be taken over for use, if locked, other application program must not be taken over for use, to guarantee that user specified answers It can be operated normally with program.
Method provided in an embodiment of the present invention detects currently available memory headroom in the memory, from described currently available The memory headroom of default size is chosen in memory headroom, and records the initial address and end of the memory headroom of the default size Address, by the initial address and the end address, process corresponding with the application program is associated simultaneously, and to described The memory headroom addition lock mark of the default size.Due to that can be managed to the memory headroom that background process uses, and Background application is selectively closed, from the application program for needing to continue to use without some users by mistake The problem of closing, and causing user that need to reopen application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method is provided, it is described default Mode is application program occupied memory headroom of the release in addition to system application.
If may result in system crash since system application is released memory headroom, and then cause user specified Application program be forced to exit, so as to discharge except system application in addition to application program occupy memory headroom.For example, It can discharge some in backstage but user's long period not used application program.
Method provided in an embodiment of the present invention, by discharging the occupied memory sky of application program in addition to system application Between.Due to that can be managed to the memory headroom that background process uses, and background application is selectively closed, thus Be not in some users application program that needs to continue to use by the closing of mistake, and cause user that need to reopen using journey The problem of sequence, record are lost.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method is provided, according to default Mode, after discharging memory headroom in addition to the specified memory space, further includes: if the occupancy percentage of presently described memory Than being also greater than the preset threshold, then prompt the user whether to discharge the specified memory space.
Method provided in an embodiment of the present invention, after dischargeing partial memory space, if EMS memory occupation percentage still compares It is larger, then by reminding whether user discharges the specified memory space, so that user can be according to their own needs To be selectively managed to specified memory space.Due to that can be managed to the memory headroom that background process uses, and Background application is selectively closed, from the application program for needing to continue to use without some users by mistake The problem of closing, and causing user that need to reopen application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method, the prompt are provided Whether user discharges after the specified memory space, further includes: if the memory headroom that the application program currently occupies is small In the specified memory space, then the still not used memory headroom of application program described in the specified memory space is discharged.
Compared to the memory headroom that application program generally occupies, when for the specified memory space of application assigned, point The space size matched can be bigger than the memory headroom generally occupied.It, can be by specified memory for more reasonably application memory space The still not used memory headroom of application program described in space discharges.
Method provided in an embodiment of the present invention is less than the finger by the memory headroom currently occupied in the application program When determining memory headroom, then the still not used memory headroom of application program described in the specified memory space is discharged.Due to can be with The memory headroom that background process uses is managed, and selectively closes background application, from without one The application program that a little users need to continue to use is caused user that need to reopen application program, is recorded and lose by the closing of mistake The problem of mistake.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method, the release are provided After falling the still not used memory headroom of application program described in the specified memory space, further includes: if presently described memory It occupies percentage and is also greater than the preset threshold, then check that the application program corresponds to running state of a process, if the process In deadlock state, then the specified memory space is discharged.
Wherein, deadlock state refers to that program process does not continue to promote and executes, and the resource occupied is not yet It can voluntarily discharge.It therefore, can be corresponding by deadlock state in time by judging that application program corresponds to running state of a process The occupied resource of process discharges.
Method provided in an embodiment of the present invention is also greater than the default threshold by the occupancy percentage in presently described memory It when value, then checks that the application program corresponds to running state of a process, if the process is in deadlock state, discharges the finger Determine memory headroom.Due to that can be managed to the memory headroom that background process uses, and selectively close background application Program from the application program for needing to continue to use without some users by the closing of mistake, and causes user to need again The problem of opening application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method, the release are provided After the specified memory space, further includes: the RR release record for obtaining the specified memory space, it is raw according to the RR release record It is reported at the use of the application program, and feeds back to user using report for described.
Wherein, the embodiment of the present invention does not make specific restriction to the content for using report to include, and can specifically include in following Hold: application program was originally the size in the specified memory space of its distribution, every time the releasing memory space from specified memory space Size and time, the frequency of usage of application program and the duration that uses every time.User, can be certainly after receiving use report Row decides whether to continue a certain application program as specified application program.
Method provided in an embodiment of the present invention is released by obtaining the RR release record in the specified memory space according to described The use report that record generates the application program is put, and feeds back to user using report for described.Due to producing using report User is accused and fed back to, is decided in its sole discretion and whether is continued the application program specified before as specified application journey by user Sequence, so that memory management is more humanized.In addition, due to that can be managed to the memory headroom that background process uses, and have The closing background application of selectivity, from the application program for needing to continue to use without some users by the pass of mistake The problem of closing, and causing user that need to reopen application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process management method, the acquisition are provided After the RR release record in the specified memory space, further includes: according to the RR release record and the application program it is corresponding into The occupied memory headroom of Cheng Dangqian is again the application assigned memory headroom.
Wherein, the memory headroom that the application program being designated occupies may not be unalterable.For example, for big For most app, with the time, its increased function may be more and more, this certainly will will lead to the memory headroom meeting of its occupancy It is increasing.Therefore, for specified application program, for its distribution specified memory space as time goes by it is possible that Not enough situation.It therefore, can be again as procedure described above application assigned memory headroom.
Method provided in an embodiment of the present invention is worked as by corresponding to process according to the RR release record and the application program Preceding occupied memory headroom is again the application assigned memory headroom.Due to can be with application program committed memory The variation in space is adjusted to the size in the specified memory space of application assigned, dynamically constantly so as to more effectively manage Manage memory headroom.In addition, due to that can be managed to the memory headroom that background process uses, and selectively close backstage Application program from the application program for needing to continue to use without some users by the closing of mistake, and causes user to need The problem of reopening application program, record loss.Therefore, greatly the user experience is improved.
Such as Fig. 2, a kind of overall structure diagram of background process managing device of the specific embodiment of the invention is shown, comprising:
Obtain modules A 01, the application program specified for obtaining user;
First distribution module A02, for being in memory the application assigned memory headroom, and as specified memory Space, the space occupied size when the specified memory space is run at least more than the application program;
First release module A03, for obtaining the occupancy percentage of presently described memory, if the occupancy percentage is greater than Preset threshold discharges the memory headroom in addition to the specified memory space then according to predetermined manner.
Wherein, user can be by the relevant APP specified application of memory management, for the application assigned memory Space, the present invention is not especially limit this.Specifically, user can specify on mobile phone and be not desired to pent application Program, mobile phone are not desired to pent application program to what user specified, can be its storage allocation space, as specified memory sky Between, and the specified memory space is locked, to improve its priority, make its resident backstage.
When user uses mobile phone, system monitors the occupancy situation of mobile phone running memory in real time, when monitoring running memory When nervous namely when the occupancy percentage of memory is greater than preset threshold, system is first to all application programs of running background It is detected, the memory headroom in addition to specified memory space is preferentially discharged further according to testing result, specified with to retain user Application program.
Device provided in an embodiment of the present invention, the application program specified by obtaining user, is in memory the application Program storage allocation space, and as specified memory space.The occupancy percentage of presently described memory is obtained, if described occupy hundred Divide than being greater than preset threshold, then according to predetermined manner, discharges the memory headroom in addition to the specified memory space.Due to can be with The memory headroom that background process uses is managed, and selectively closes background application, from without one The application program that a little users need to continue to use is caused user that need to reopen application program, is recorded and lose by the closing of mistake The problem of mistake.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device, the first distribution are provided Modules A 02 is chosen default big for detecting currently available memory headroom in the memory from the currently available memory headroom Small memory headroom, and initial address and the end address of the memory headroom of the default size are recorded, by the initial address And process corresponding with the application program is associated simultaneously for the end address, and to the memory of default size sky Between addition lock mark.
Wherein, by the initial address and the end address, process corresponding with the application program is associated simultaneously, It can be realized by way of locking.It specifically, can be the memory headroom distribution lock mark of default size, when other application journey When sequence needs to take over for use this block memory headroom, it can first determine whether the memory headroom is locked, it is other if be not locked Application program can directly be taken over for use, if locked, other application program must not be taken over for use, to guarantee that user specified answers It can be operated normally with program.
Device provided in an embodiment of the present invention detects currently available memory headroom in the memory, from described currently available The memory headroom of default size is chosen in memory headroom, and records the initial address and end of the memory headroom of the default size Address, by the initial address and the end address, process corresponding with the application program is associated simultaneously, and to described The memory headroom addition lock mark of the default size.Due to that can be managed to the memory headroom that background process uses, and Background application is selectively closed, from the application program for needing to continue to use without some users by mistake The problem of closing, and causing user that need to reopen application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device is provided, it is described default Mode is application program occupied memory headroom of the release in addition to system application.
If may result in system crash since system application is released memory headroom, and then cause user specified Application program be forced to exit, so as to discharge except system application in addition to application program occupy memory headroom.For example, It can discharge some in backstage but user's long period not used application program.
Device provided in an embodiment of the present invention, by discharging the occupied memory sky of application program in addition to system application Between.Due to that can be managed to the memory headroom that background process uses, and background application is selectively closed, thus Be not in some users application program that needs to continue to use by the closing of mistake, and cause user that need to reopen using journey The problem of sequence, record are lost.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device is provided, the device is also It include: cue module, for when the occupancy percentage of presently described memory is also greater than the preset threshold, then user being prompted to be It is no to discharge the specified memory space.
Device provided in an embodiment of the present invention, after dischargeing partial memory space, if EMS memory occupation percentage still compares It is larger, then by reminding whether user discharges the specified memory space, so that user can be according to their own needs To be selectively managed to specified memory space.Due to that can be managed to the memory headroom that background process uses, and Background application is selectively closed, from the application program for needing to continue to use without some users by mistake The problem of closing, and causing user that need to reopen application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device is provided, the device is also It include: the second release module, when the memory headroom for currently occupying when the application program is less than the specified memory space, Then discharge the still not used memory headroom of application program described in the specified memory space.
Compared to the memory headroom that application program generally occupies, when for the specified memory space of application assigned, point The space size matched can be bigger than the memory headroom generally occupied.It, can be by specified memory for more reasonably application memory space The still not used memory headroom of application program described in space discharges.
Device provided in an embodiment of the present invention is less than the finger by the memory headroom currently occupied in the application program When determining memory headroom, then the still not used memory headroom of application program described in the specified memory space is discharged.Due to can be with The memory headroom that background process uses is managed, and selectively closes background application, from without one The application program that a little users need to continue to use is caused user that need to reopen application program, is recorded and lose by the closing of mistake The problem of mistake.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device is provided, the device is also It include: third release module, for when the occupancy percentage of presently described memory is also greater than the preset threshold, then checking institute It states application program and corresponds to running state of a process, if the process is in deadlock state, discharge the specified memory space.
Wherein, deadlock state refers to that program process does not continue to promote and executes, and the resource occupied is not yet It can voluntarily discharge.It therefore, can be corresponding by deadlock state in time by judging that application program corresponds to running state of a process The occupied resource of process discharges.
Device provided in an embodiment of the present invention is also greater than the default threshold by the occupancy percentage in presently described memory It when value, then checks that the application program corresponds to running state of a process, if the process is in deadlock state, discharges the finger Determine memory headroom.Due to that can be managed to the memory headroom that background process uses, and selectively close background application Program from the application program for needing to continue to use without some users by the closing of mistake, and causes user to need again The problem of opening application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device is provided, the device is also Include: feedback module, for obtaining the RR release record in the specified memory space, the application is generated according to the RR release record The use of program is reported, and feeds back to user using report for described.
Wherein, the embodiment of the present invention does not make specific restriction to the content for using report to include, and can specifically include in following Hold: application program was originally the size in the specified memory space of its distribution, every time the releasing memory space from specified memory space Size and time, the frequency of usage of application program and the duration that uses every time.User, can be certainly after receiving use report Row decides whether to continue a certain application program as specified application program.
Device provided in an embodiment of the present invention is released by obtaining the RR release record in the specified memory space according to described The use report that record generates the application program is put, and feeds back to user using report for described.Due to producing using report User is accused and fed back to, is decided in its sole discretion and whether is continued the application program specified before as specified application journey by user Sequence, so that memory management is more humanized.In addition, due to that can be managed to the memory headroom that background process uses, and have The closing background application of selectivity, from the application program for needing to continue to use without some users by the pass of mistake The problem of closing, and causing user that need to reopen application program, record loss.Therefore, greatly the user experience is improved.
On the basis of any above-mentioned specific embodiment of the invention, a kind of background process managing device is provided, the device is also It include: the second distribution module, it is current occupied interior for corresponding to process according to the RR release record and the application program Space is deposited, is again the application assigned memory headroom.
Wherein, the memory headroom that the application program being designated occupies may not be unalterable.For example, for big For most app, with the time, its increased function may be more and more, this certainly will will lead to the memory headroom meeting of its occupancy It is increasing.Therefore, for specified application program, for its distribution specified memory space as time goes by it is possible that Not enough situation.It therefore, can be again as procedure described above application assigned memory headroom.
Device provided in an embodiment of the present invention is worked as by corresponding to process according to the RR release record and the application program Preceding occupied memory headroom is again the application assigned memory headroom.Due to can be with application program committed memory The variation in space is adjusted to the size in the specified memory space of application assigned, dynamically constantly so as to more effectively manage Manage memory headroom.In addition, due to that can be managed to the memory headroom that background process uses, and selectively close backstage Application program from the application program for needing to continue to use without some users by the closing of mistake, and causes user to need The problem of reopening application program, record loss.Therefore, greatly the user experience is improved.
For example as follows:
Fig. 3 illustrates the entity structure schematic diagram of a kind of electronic equipment, as shown in figure 3, the electronic equipment may include: place Manage device (processor) 310, communication interface (Communications Interface) 320,330 He of memory (memory) Communication bus 340, wherein processor 310, communication interface 320, memory 330 complete mutual lead to by communication bus 340 Letter.Processor 310 can call the logical order in memory 330, to execute following method: obtain the application journey that user specifies Sequence is in memory the application assigned memory headroom, and as specified memory space, the specified memory space is at least The space occupied size when greater than application program operation;The occupancy percentage of presently described memory is obtained, if the occupancy Percentage is greater than preset threshold, then according to predetermined manner, discharges the memory headroom in addition to the specified memory space.
In addition, the logical order in above-mentioned memory 330 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally Substantially the part of the part that contributes to existing technology or the technical solution can be in other words for the technical solution of invention The form of software product embodies, which is stored in a storage medium, including some instructions to So that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation of the present invention The all or part of the steps of example the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), magnetic or disk etc. it is various It can store the medium of program code.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, The computer program is implemented to carry out the various embodiments described above offer method when being executed by processor, for example, obtain user Specified application program is in memory the application assigned memory headroom, and as specified memory space, described specified The space occupied size when memory headroom is run at least more than the application program;Obtain the occupancy percentage of presently described memory Than according to predetermined manner, discharging in addition to the specified memory space if the occupancy percentage is greater than preset threshold Deposit space.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of background process management method characterized by comprising
The application program that user specifies is obtained, is in memory the application assigned memory headroom, and as specified memory Space, the space occupied size when the specified memory space is run at least more than the application program;
The occupancy percentage of presently described memory is obtained, if the occupancy percentage is greater than preset threshold, according to predetermined manner, Discharge the memory headroom in addition to the specified memory space.
2. background process management method according to claim 1, which is characterized in that described to apply journey in memory to be described Sequence storage allocation space, comprising:
Currently available memory headroom in the memory is detected, the memory of default size is chosen from the currently available memory headroom Space, and initial address and the end address of the memory headroom of the default size are recorded, by the initial address and the knot Process corresponding with the application program is associated simultaneously for beam address, and adds lock mark to the memory headroom of the default size Know.
3. background process management method according to claim 1, which is characterized in that the predetermined manner is that release removes system The occupied memory headroom of application program except.
4. background process management method according to claim 1, which is characterized in that described according to predetermined manner, release removes After memory headroom except the specified memory space, further includes:
If the occupancy percentage of presently described memory is also greater than the preset threshold, prompt the user whether to discharge described specified Memory headroom.
5. background process management method according to claim 4, which is characterized in that described to prompt the user whether to discharge institute After stating specified memory space, further includes:
If the memory headroom that the application program currently occupies is less than the specified memory space, the specified memory is discharged The still not used memory headroom of application program described in space.
6. background process management method according to claim 5, which is characterized in that described to discharge the specified memory sky Between after the still not used memory headroom of the application program, further includes:
If the occupancy percentage of presently described memory is also greater than the preset threshold, check that the application program corresponds to process Operating status discharges the specified memory space if the process is in deadlock state.
7. background process management method according to claim 6, which is characterized in that the release specified memory space Later, further includes:
The RR release record for obtaining the specified memory space generates the use report of the application program according to the RR release record It accuses, and feeds back to user using report for described.
8. background process management method according to claim 7, which is characterized in that described to obtain the specified memory space RR release record after, further includes:
Process currently occupied memory headroom is corresponded to according to the RR release record and the application program, is answered again to be described With program storage allocation space.
9. a kind of background process managing device characterized by comprising
Obtain module, the application program specified for obtaining user;
First distribution module, for being in memory the application assigned memory headroom, and as specified memory space, institute State the space occupied size when specified memory space is run at least more than the application program;
First release module, for obtaining the occupancy percentage of presently described memory, if the occupancy percentage is greater than default threshold Value discharges the memory headroom in addition to the specified memory space then according to predetermined manner.
10. a kind of electronic equipment characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough execute method as described in any of the claims 1 to 8.
CN201910204972.5A 2019-03-18 2019-03-18 Background process management method and device Pending CN109871280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910204972.5A CN109871280A (en) 2019-03-18 2019-03-18 Background process management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910204972.5A CN109871280A (en) 2019-03-18 2019-03-18 Background process management method and device

Publications (1)

Publication Number Publication Date
CN109871280A true CN109871280A (en) 2019-06-11

Family

ID=66920698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910204972.5A Pending CN109871280A (en) 2019-03-18 2019-03-18 Background process management method and device

Country Status (1)

Country Link
CN (1) CN109871280A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111599204A (en) * 2020-04-16 2020-08-28 维沃移动通信有限公司 Arrival reminding method and electronic equipment
CN111984197A (en) * 2020-08-24 2020-11-24 许昌学院 Computer buffer memory allocation method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294528A (en) * 2012-03-01 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and process control method
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
WO2015175223A1 (en) * 2014-05-16 2015-11-19 Centurylink Intellectual Property Llc System and method for service provider cloud services
CN106371913A (en) * 2015-07-21 2017-02-01 赤子城网络技术(北京)有限公司 Memory cleaning method and apparatus
CN106951328A (en) * 2017-03-28 2017-07-14 努比亚技术有限公司 The management method and system of application program
CN107608744A (en) * 2017-09-05 2018-01-19 珠海格力电器股份有限公司 A kind of application process management method and its device, mobile terminal
CN108205475A (en) * 2017-08-25 2018-06-26 珠海市魅族科技有限公司 EMS memory management process, terminal device, computer installation and readable storage medium storing program for executing
CN108776615A (en) * 2018-05-24 2018-11-09 四川斐讯信息技术有限公司 A kind of method and system for preventing background process from accidentally being closed when mobile phone EMS memory anxiety
CN108932164A (en) * 2018-07-16 2018-12-04 郑州云海信息技术有限公司 A kind of specified function program operation method, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294528A (en) * 2012-03-01 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and process control method
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
WO2015175223A1 (en) * 2014-05-16 2015-11-19 Centurylink Intellectual Property Llc System and method for service provider cloud services
CN106371913A (en) * 2015-07-21 2017-02-01 赤子城网络技术(北京)有限公司 Memory cleaning method and apparatus
CN106951328A (en) * 2017-03-28 2017-07-14 努比亚技术有限公司 The management method and system of application program
CN108205475A (en) * 2017-08-25 2018-06-26 珠海市魅族科技有限公司 EMS memory management process, terminal device, computer installation and readable storage medium storing program for executing
CN107608744A (en) * 2017-09-05 2018-01-19 珠海格力电器股份有限公司 A kind of application process management method and its device, mobile terminal
CN108776615A (en) * 2018-05-24 2018-11-09 四川斐讯信息技术有限公司 A kind of method and system for preventing background process from accidentally being closed when mobile phone EMS memory anxiety
CN108932164A (en) * 2018-07-16 2018-12-04 郑州云海信息技术有限公司 A kind of specified function program operation method, device and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111599204A (en) * 2020-04-16 2020-08-28 维沃移动通信有限公司 Arrival reminding method and electronic equipment
CN111984197A (en) * 2020-08-24 2020-11-24 许昌学院 Computer buffer memory allocation method
CN111984197B (en) * 2020-08-24 2023-12-15 许昌学院 Computer cache allocation method

Similar Documents

Publication Publication Date Title
CN108920937A (en) It throws screen system, throw screen method and apparatus
CN110460658A (en) A kind of distributed storage construction method based on mimicry construction
CN106662907B (en) Wake-up lock control method, device and terminal based on terminal
CN106713168B (en) Flow control method and system
CN104978201A (en) Method and device for controlling automatic pop-up window display
CN104125170A (en) Router based user accessed bandwidth adjusting method, device and system
JP2003521183A (en) Preemptive bandwidth allocation with dynamic allocation
CN104113492A (en) Router based user access bandwidth adjusting method, device and system
CN109871280A (en) Background process management method and device
CN106127030A (en) A kind of interface control method and device
CN103838630A (en) Information processing method, system and electronic equipment
CN107533596B (en) Fingerprint identification method and mobile terminal
CN114143265A (en) Network flow current limiting method, device, equipment and storage medium
CN108681481A (en) The processing method and processing device of service request
CN111259421A (en) Privacy authority anti-disclosure processing method and device, electronic equipment and storage medium
CN103188160A (en) Flow control method and forwarding unit
CN112583734A (en) Burst flow control method and device, electronic equipment and storage medium
CN107222618A (en) Terminal screenshotss method and device
CN108933675B (en) Conference resource allocation method, device and storage medium
CN103927191B (en) Resource allocation method and resource allocation device for invoking function
US8416930B2 (en) Apparatus and method for controlling an amount of concurrent calls
CN112188500A (en) Dynamic allocation method and device for frequency spectrum resources
CN112463266A (en) Execution policy generation method and device, electronic equipment and storage medium
CN112035249A (en) Application program network proportion adjusting method and device and storage medium
CN109522113B (en) Memory management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190611

RJ01 Rejection of invention patent application after publication