CN103984743A - Method and device for managing memory resources - Google Patents

Method and device for managing memory resources Download PDF

Info

Publication number
CN103984743A
CN103984743A CN201410221521.XA CN201410221521A CN103984743A CN 103984743 A CN103984743 A CN 103984743A CN 201410221521 A CN201410221521 A CN 201410221521A CN 103984743 A CN103984743 A CN 103984743A
Authority
CN
China
Prior art keywords
subprocess
browsing
memory resource
treatment
browses
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410221521.XA
Other languages
Chinese (zh)
Other versions
CN103984743B (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.)
Beijing Kingsoft Internet Science and Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Science and 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 Kingsoft Internet Science and Technology Co Ltd filed Critical Beijing Kingsoft Internet Science and Technology Co Ltd
Priority to CN201410221521.XA priority Critical patent/CN103984743B/en
Publication of CN103984743A publication Critical patent/CN103984743A/en
Application granted granted Critical
Publication of CN103984743B publication Critical patent/CN103984743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention discloses a method and a device for managing memory resources, and relates to the technical field of Internet. The method and the device are applied to a browser. The method comprises the following steps: acquiring an information list of browsing sub-processes corresponding to a browsing parent process called by the browser, wherein the information list at least comprises the current running state of each browsing sub-process; determining browsing sub-processes of to-be-released memory resources in the information list according to a preset memory resource releasing rule; releasing memory resources occupied by the browsing sub-processes of the to-be-released memory resources. By applying the method to management of memory resources, the probability of the occurrence of insufficient memory resources can be lowered, and the user experience effect is improved.

Description

A kind of method of managing internal memory resource and device
Technical field
The present invention relates to Internet technical field, particularly a kind of method of managing internal memory resource and device.
Background technology
When user passes through browser access webpage, often open a webpage, all need to take certain memory source.And when the webpage of opening is during in background operation state, occupied memory source but can not be released.Therefore, the webpage that user opens is more, and the memory source taking is also just more.In the situation that the memory source finite capacity of equipment is easy to occur the phenomenon of low memory, and then affect the Experience Degree of user's browsing page.
Summary of the invention
The embodiment of the invention discloses a kind of method and device of managing internal memory resource, to reduce the probability that occurs memory source deficiency, improve user's experience effect.
For achieving the above object, the embodiment of the invention discloses a kind of method of managing internal memory resource, be applied in browser, described method comprises:
What obtain that browser calls browses the information list of browsing subprocess corresponding to parent process, wherein, in described information list, at least comprises: each browses the current running status of subprocess;
According to default memory source, discharge rule, in described information list, determine the subprocess of browsing for the treatment of releasing memory resource;
Described in release, treat the memory source that subprocess takies of browsing of releasing memory resource.
Preferably, the default memory source of described basis discharges rule, in described information list, determines the subprocess of browsing for the treatment of releasing memory resource, and comprising:
In described information list, determine that current running status is the subprocess of browsing of running background;
Browsing in subprocess of running background, determine the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described the browsing in subprocess of running background, determine the subprocess of browsing for the treatment of releasing memory resource, comprising:
Browsing in subprocess of running background, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, describedly the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource, comprising:
Obtain default Process Protection list;
Not belonging to the browsing in subprocess of running background of described Process Protection list, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described state parameter, comprising: invoked time or the time in background operation state.
Preferably, describedly the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource, comprising:
Browsing in subprocess of running background, according to browsing invoked time of subprocess or the order from long to short of the time in background operation state, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described the browsing in subprocess of running background, determine the subprocess of browsing for the treatment of releasing memory resource, comprising:
According to the sign of browsing subprocess institute displaying web page, obtain the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background;
According to obtained correlativity order from low to high, the subprocess of browsing of running background is sorted, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, at described acquisition browser, call browse the information list of browsing subprocess corresponding to parent process before, also comprise:
Judging whether free memory resource is less than default threshold value or is less than treats browsing page required memory resource;
If be less than, what further obtain that browser calls browses the information list of browsing subprocess corresponding to parent process.
For achieving the above object, the embodiment of the invention discloses a kind of device of managing internal memory resource, be applied in browser, described device comprises:
Information list obtains module, for what obtain that browser calls, browses the information list of browsing subprocess corresponding to parent process, wherein, in described information list, at least comprises: each browses the current running status of subprocess;
Browse subprocess determination module, for discharging rule according to default memory source, in described information list, determine the subprocess of browsing for the treatment of releasing memory resource;
Memory source release module, for treating the memory source that subprocess takies of browsing of releasing memory resource described in discharging.
Preferably, described in browse subprocess determination module, comprising:
First browses subprocess determines submodule, at described information list, determines that current running status is the subprocess of browsing of running background;
Second browses subprocess determines submodule, for the subprocess of browsing at running background, determines the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described second browses subprocess determines submodule, specifically for the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determines that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described second browses subprocess determines submodule, comprising:
Process Protection list obtains unit, for default Process Protection list;
First browses subprocess determining unit, for do not belong to described Process Protection list running background browse subprocess, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described state parameter, comprising: invoked time or the time in background operation state.
Preferably, described second browses subprocess determines submodule, specifically for browsing in subprocess at running background, according to browsing invoked time of subprocess or the order from long to short of the time in background operation state, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, described second browses subprocess determines submodule, comprising:
Correlativity obtains unit, for according to the sign of browsing subprocess institute displaying web page, obtains the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background;
Second browses subprocess determining unit, for the order from low to high of the correlativity according to obtained, the subprocess of browsing of running background is sorted, and determines that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, the device of described managing internal memory resource also comprises:
Free memory resource judgment module, for judging whether free memory resource is less than default threshold value or is less than, treat browsing page required memory resource, if be less than, described in the acquisition of the described information list acquisition of further triggering module, browse the information list of browsing subprocess corresponding to parent process.
As seen from the above, in the scheme that the embodiment of the present invention provides, according to default memory source, discharge rule, determine the subprocess of browsing for the treatment of releasing memory resource, and discharge the determined memory source that subprocess takies of browsing, so, reduced the probability that occurs memory source deficiency, improved user's experience effect.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The first schematic flow sheet of the method for the managing internal memory resource that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet of the method for the managing internal memory resource that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet of the method for the managing internal memory resource that Fig. 3 provides for the embodiment of the present invention;
The first structural representation of the device of the managing internal memory resource that Fig. 4 provides for the embodiment of the present invention;
The second structural representation of the device of the managing internal memory resource that Fig. 5 provides for the embodiment of the present invention;
The third structural representation of the device of the managing internal memory resource that Fig. 6 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The first schematic flow sheet of the method for the managing internal memory resource that Fig. 1 provides for the embodiment of the present invention, comprising:
S101: what obtain that browser calls browses the information list of browsing subprocess corresponding to parent process.
Wherein, in information list, at least comprise: each browses the current running status of subprocess, for example, front stage operation state and background operation state etc.
Preferably, in information list, can also comprise: each browses sign of subprocess institute displaying web page etc.
Certainly, the application just be take and is above-mentionedly described as example, and the information comprising in information list in practical application is not limited only to this, can determine as the case may be.
S102: discharge rule according to default memory source, in described information list, determine the subprocess of browsing for the treatment of releasing memory resource.
In practical application, it can be according to one or more the definite rules in following factor that default memory source discharges rule: browse the current running status of subprocess, the state parameter of browsing subprocess, default Process Protection list, running background browse subprocess and front stage operation browse correlativity between subprocess etc.
Wherein, browse the state parameter of subprocess, can comprise: invoked time or the time in background operation state etc.
In an embodiment of the present invention, default Process Protection list, can need the information of the process of protection for storage, and these processes can not be closed, so the memory source that these processes take can not be released.
S103: the memory source that subprocess takies of browsing for the treatment of releasing memory resource described in release.
Optionally, referring to Fig. 2, in a specific embodiment of the present invention, the default memory source of above-mentioned basis discharges rule, in described information list, determines the specific implementation of browsing subprocess (S102) for the treatment of releasing memory resource, comprising:
S1021: in described information list, determine that current running status is the subprocess of browsing of running background.
S1022: browsing in subprocess of running background, determine the subprocess of browsing for the treatment of releasing memory resource.
Optionally, in above-mentioned S1022, can be the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
For example, the subprocess of browsing for running background, the invoked time is longer, it is larger that user no longer browses this possibility of browsing the webpage that subprocess represents, therefore, can according to its invoked time order from long to short, sort to the subprocess of browsing of running background, preferentially selecting previous or a plurality of subprocesss of browsing is the subprocess of browsing for the treatment of releasing memory resource.
Again for example, the subprocess of browsing for running background, time in background operation state is longer, it is larger that user no longer browses this possibility of browsing the webpage that subprocess represents, therefore, can to running background browse subprocess order from long to short sequence of the time in background operation state according to it, preferentially selecting previous or a plurality of subprocesss of browsing is the subprocess of browsing for the treatment of releasing memory resource.
Optionally, in above-mentioned S1022, can also be the browsing in subprocess of running background, according to state parameter and the default Process Protection list of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
For example; according to default Process Protection list; determine the not protected subprocess of browsing in subprocess of browsing of running background; protected, do not browse in subprocess; according to the state parameter of browsing subprocess, determining one or more subprocesss of browsing is the subprocess of browsing for the treatment of releasing memory resource.
Optionally, in above-mentioned S1022, can also be the browsing in subprocess of running background, according to default Process Protection list, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
For example, according to default Process Protection list, can be using running background browse in subprocess not protected one or more subprocesss of browsing as the subprocess of browsing for the treatment of releasing memory resource.
Optionally, in above-mentioned S1022, can also be the browsing in subprocess of running background, according to the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
For example, can, according to the sign of browsing subprocess institute displaying web page, determine the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background; According to obtained correlativity order from low to high, the subprocess of browsing of running background is sorted, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
In an embodiment of the present invention, the sign of browsing subprocess institute displaying web page according to each, can obtain:
Each browses the classified information of subprocess institute displaying web page, for example, and news category, video class, game class etc.;
Each browses the subject information of subprocess institute displaying web page, for example, subject information is that TV play, the subject information of < < Homeland Security > > are news of < < Beijing water price adjustment > > etc.;
Each browses the source web of subprocess institute displaying web page, and for example, source web is www.sohu.com, www.sina.com.cn etc.
Certainly, the application does not limit the type of the information that the sign of browsing subprocess institute displaying web page according to each can obtain, in practical application, can determine as the case may be, for example, collection of drama of TV play etc.
Then, can determine according to the information of above-mentioned acquisition the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background.If the classified information of browsing the webpage that subprocess represents of browsing classified information that subprocess treats displaying web page and front stage operation of running background is identical, can think that correlativity is between the two higher, similarly, when subject information, source web etc. are identical, also can think that correlativity is between the two higher.
When a certain running background browse subprocess and front stage operation browse correlativity between subprocess when high, accessed possibility is larger again for the webpage that subprocess represents browsed of this running background, thus preferentially discharge correlativity low browse the memory source that subprocess takies.
Introduce a concrete scene below.
The classified information of browsing subprocess A institute displaying web page of supposing running background is news category; The classified information of browsing subprocess B institute displaying web page of running background is that TV play class, subject information are that X, collection of drama are the 2nd collection.The classified information of browsing subprocess C institute displaying web page of front stage operation is that TV play class, subject information are that X, collection of drama are the 1st collection.
By above-mentioned information, can determine, the correlativity of browsing subprocess A and C is lower, and it is higher to browse the correlativity of subprocess B and C, so preferential, discharge and browses the memory source that subprocess A takies.
As seen from the above, in the scheme that the embodiment of the present invention provides, according to default memory source, discharge rule, determine the subprocess of browsing for the treatment of releasing memory resource, and discharge the determined memory source that subprocess takies of browsing.So, reduced the probability that occurs memory source deficiency, improved user's experience effect.
Referring to Fig. 3, in a preferred embodiment of the present invention, at browsing of obtaining that browser the calls information list (S101) that corresponding all of parent process browse subprocess before, can also comprise:
S104: judging whether free memory resource is less than default threshold value or is less than treats browsing page required memory resource, if yes, carries out S101, otherwise, carry out S105.
In practical application, once due to after browsing memory source that subprocess takies and being released, while again accessing this webpage, need again receive web data displaying web page, need certain hour, in the situation such as network condition is not good, user need wait for the long period, affects user's experience effect, therefore, for guaranteeing the normal access of user webpage to be visited, can be the in the situation that of memory source deficiency, release portion or all browse the memory source that subprocess takies.
Concrete, the free memory resource of judgement subscriber equipment can be also in the process of a certain webpage of access when a certain webpage of access, and the application does not limit the moment of judgement free memory resource.
In addition, default threshold value, can be numerical value, for example, and 1G etc.; Or can be ratio, for example, 30% etc. of subscriber equipment internal memory, can also be according to the type dynamic setting for institute's browsing page, for example, the type of user institute browsing page is video, this value can be 1G etc., and the type of user institute browsing page is news, and this value can be 500M etc.
S105: process ends.
As seen from the above, in the scheme that the embodiment of the present invention provides, the in the situation that of free memory inadequate resource, just discharge the memory source that subprocess takies of browsing that meets preset rules, can either provide enough memory sources for user's accessed web page, again can be the in the situation that of free memory resource abundance, to user, represent the webpage that subprocess is wanted to represent of browsing in background operation state fast, improved user's experience effect.
The first structural representation of the device of the managing internal memory resource that Fig. 4 provides for the embodiment of the present invention, is applied in browser, and this device comprises: information list obtains module 401, browses subprocess determination module 402 and memory source release module 403.
Wherein, information list obtains module 401, for what obtain that browser calls, browses the information list of browsing subprocess corresponding to parent process, wherein, in described information list, at least comprises: each browses the current running status of subprocess;
Browse subprocess determination module 402, for discharging rule according to default memory source, in described information list, determine the subprocess of browsing for the treatment of releasing memory resource;
Memory source release module 403, for treating the memory source that subprocess takies of browsing of releasing memory resource described in discharging.
Referring to Fig. 5, in a specific embodiment of the present invention, provide a kind of concrete structure schematic diagram of browsing subprocess determination module 402, comprising: first browses subprocess determines that submodule 4021 and second browses subprocess and determine submodule 4022.
Wherein, first browses subprocess determines submodule 4021, at described information list, determines the subprocess of browsing that to browse the current running status of subprocess be running background;
Second browses subprocess determines submodule 4022, for the subprocess of browsing at running background, determines the subprocess of browsing for the treatment of releasing memory resource.
Concrete, second browses subprocess determines submodule 4022, specifically for the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determines that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Concrete, described state parameter, comprising: invoked time or the time in background operation state;
Second browses subprocess determines word modules 4022, specifically for browsing in subprocess at running background, according to browsing invoked time of subprocess or the order from long to short of the time in background operation state, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Second browses the concrete structure schematic diagram that subprocess is determined submodule 4022, comprising: Process Protection list obtains unit and first and browses subprocess determining unit (not shown).
Wherein, Process Protection list obtains unit, for default Process Protection list; First browses subprocess determining unit, for do not belong to described Process Protection list running background browse subprocess, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
Preferably, in information list, can also comprise: each browses the sign of subprocess institute displaying web page.
In a preferred embodiment of the present invention, provide a kind of second to browse the concrete structure schematic diagram that subprocess is determined submodule 4022, comprising: correlativity obtains unit and second and browses subprocess determining unit (not shown).
Wherein, correlativity obtains unit, for browse the sign of subprocess institute displaying web page according to each, obtains the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background;
Second browses subprocess determining unit, for the order from low to high of the correlativity according to obtained, the subprocess of browsing of running background is sorted, and determines that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
As seen from the above, in the scheme that the embodiment of the present invention provides, according to default memory source, discharge rule, determine the subprocess of browsing for the treatment of releasing memory resource, and discharge the determined memory source that subprocess takies of browsing, so, reduced the probability that occurs memory source deficiency, improved user's experience effect.
Referring to Fig. 6, in a preferred embodiment of the invention, this device can also comprise: free memory resource judgment module 404.
Concrete, free memory resource judgment module 404, for judging whether free memory resource is less than default threshold value or is less than, treat browsing page required memory resource, if be less than, described in the acquisition of the described information list acquisition of further triggering module, browse the information list of browsing subprocess corresponding to parent process.
As seen from the above, in the scheme that the embodiment of the present invention provides, the in the situation that of free memory inadequate resource, just discharge the memory source that subprocess takies of browsing that meets preset rules, can either provide enough memory sources for user's accessed web page, again can be the in the situation that of free memory resource abundance, to user, represent the webpage that subprocess is wanted to represent of browsing in background operation state fast, improved user's experience effect.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodiment is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (16)

1. a method for managing internal memory resource, is applied to, in browser, it is characterized in that, described method comprises:
What obtain that browser calls browses the information list of browsing subprocess corresponding to parent process, wherein, in described information list, at least comprises: each browses the current running status of subprocess;
According to default memory source, discharge rule, in described information list, determine the subprocess of browsing for the treatment of releasing memory resource;
Described in release, treat the memory source that subprocess takies of browsing of releasing memory resource.
2. method according to claim 1, is characterized in that, the default memory source of described basis discharges rule, in described information list, determines the subprocess of browsing for the treatment of releasing memory resource, and comprising:
In described information list, determine that current running status is the subprocess of browsing of running background;
Browsing in subprocess of running background, determine the subprocess of browsing for the treatment of releasing memory resource.
3. method according to claim 2, is characterized in that, described the browsing in subprocess of running background, determines the subprocess of browsing for the treatment of releasing memory resource, and comprising:
Browsing in subprocess of running background, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
4. method according to claim 3, is characterized in that, describedly the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determines that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource, and comprising:
Obtain default Process Protection list;
Not belonging to the browsing in subprocess of running background of described Process Protection list, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
5. according to the method described in claim 3 or 4, it is characterized in that, described state parameter, comprising: invoked time or the time in background operation state.
6. method according to claim 5, is characterized in that, describedly the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determines that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource, and comprising:
Browsing in subprocess of running background, according to browsing invoked time of subprocess or the order from long to short of the time in background operation state, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
7. method according to claim 2, is characterized in that, described the browsing in subprocess of running background, determines the subprocess of browsing for the treatment of releasing memory resource, and comprising:
According to the sign of browsing subprocess institute displaying web page, obtain the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background;
According to obtained correlativity order from low to high, the subprocess of browsing of running background is sorted, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
8. according to the method described in any one in claim 1-7, it is characterized in that, at described acquisition browser, call browse the information list of browsing subprocess corresponding to parent process before, also comprise:
Judging whether free memory resource is less than default threshold value or is less than treats browsing page required memory resource;
If be less than, what further obtain that browser calls browses the information list of browsing subprocess corresponding to parent process.
9. a device for managing internal memory resource, is applied to, in browser, it is characterized in that, described device comprises:
Information list obtains module, for what obtain that browser calls, browses the information list of browsing subprocess corresponding to parent process, wherein, in described information list, at least comprises: each browses the current running status of subprocess;
Browse subprocess determination module, for discharging rule according to default memory source, in described information list, determine the subprocess of browsing for the treatment of releasing memory resource;
Memory source release module, for treating the memory source that subprocess takies of browsing of releasing memory resource described in discharging.
10. device according to claim 9, is characterized in that, described in browse subprocess determination module, comprising:
First browses subprocess determines submodule, at described information list, determines that current running status is the subprocess of browsing of running background;
Second browses subprocess determines submodule, for the subprocess of browsing at running background, determines the subprocess of browsing for the treatment of releasing memory resource.
11. devices according to claim 10, it is characterized in that, described second browses subprocess determines submodule, specifically for the browsing in subprocess of running background, according to the state parameter of browsing subprocess, determines that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
12. devices according to claim 11, is characterized in that, described second browses subprocess determines submodule, comprising:
Process Protection list obtains unit, for default Process Protection list;
First browses subprocess determining unit, for do not belong to described Process Protection list running background browse subprocess, according to the state parameter of browsing subprocess, determine that one or more subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
13. according to the device described in claim 11 or 12, it is characterized in that, described state parameter, comprising: invoked time or the time in background operation state.
14. devices according to claim 13, it is characterized in that, described second browses subprocess determines submodule, specifically for browsing in subprocess at running background, according to browsing invoked time of subprocess or the order from long to short of the time in background operation state, determine that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
15. devices according to claim 10, is characterized in that, described second browses subprocess determines submodule, comprising:
Correlativity obtains unit, for according to the sign of browsing subprocess institute displaying web page, obtains the correlativity between subprocess of browsing of browsing subprocess and front stage operation of running background;
Second browses subprocess determining unit, for the order from low to high of the correlativity according to obtained, the subprocess of browsing of running background is sorted, and determines that previous or a plurality of subprocesss of browsing are the subprocess of browsing for the treatment of releasing memory resource.
16. according to the device described in any one in claim 9-15, it is characterized in that, described device also comprises:
Free memory resource judgment module, for judging whether free memory resource is less than default threshold value or is less than, treat browsing page required memory resource, if be less than, described in the acquisition of the described information list acquisition of further triggering module, browse the information list of browsing subprocess corresponding to parent process.
CN201410221521.XA 2014-05-23 2014-05-23 A kind of method and device of managing internal memory resource Active CN103984743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410221521.XA CN103984743B (en) 2014-05-23 2014-05-23 A kind of method and device of managing internal memory resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410221521.XA CN103984743B (en) 2014-05-23 2014-05-23 A kind of method and device of managing internal memory resource

Publications (2)

Publication Number Publication Date
CN103984743A true CN103984743A (en) 2014-08-13
CN103984743B CN103984743B (en) 2018-03-09

Family

ID=51276716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410221521.XA Active CN103984743B (en) 2014-05-23 2014-05-23 A kind of method and device of managing internal memory resource

Country Status (1)

Country Link
CN (1) CN103984743B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184165A (en) * 2015-09-14 2015-12-23 博彦科技股份有限公司 Anti-virus process scheduling method for network attached storage system
CN105843650A (en) * 2016-03-31 2016-08-10 青岛海信移动通信技术股份有限公司 Application program management method and device in intelligent terminal
CN107402808A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 process management method, device, storage medium and electronic equipment
CN108196901A (en) * 2017-12-25 2018-06-22 山东浪潮通软信息科技有限公司 The loading method and device of camera in a kind of browser
CN109062689A (en) * 2018-07-17 2018-12-21 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of automatic releasing document resource
CN109669877A (en) * 2018-12-11 2019-04-23 腾讯科技(深圳)有限公司 EMS memory management process, device, terminal and storage medium
CN113127163A (en) * 2019-12-31 2021-07-16 杭州海康威视数字技术股份有限公司 Model verification method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020110285A1 (en) * 2001-02-15 2002-08-15 Wang Douglas W. Method for internet browser-based digital image capture and management system
CN102547178A (en) * 2010-12-08 2012-07-04 中国科学院声学研究所 Dynamic adjusting method of kernel module driven by application
CN102999384A (en) * 2011-09-12 2013-03-27 微软公司 Managing processes within suspend states and execution states
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Optimization method and device for browser operation
CN103324684A (en) * 2013-05-31 2013-09-25 贝壳网际(北京)安全技术有限公司 Control method and device for browser kernel in mobile terminal and mobile terminal
CN103793265A (en) * 2012-10-30 2014-05-14 腾讯科技(深圳)有限公司 Processing method and device for process optimization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020110285A1 (en) * 2001-02-15 2002-08-15 Wang Douglas W. Method for internet browser-based digital image capture and management system
CN102547178A (en) * 2010-12-08 2012-07-04 中国科学院声学研究所 Dynamic adjusting method of kernel module driven by application
CN102999384A (en) * 2011-09-12 2013-03-27 微软公司 Managing processes within suspend states and execution states
CN103793265A (en) * 2012-10-30 2014-05-14 腾讯科技(深圳)有限公司 Processing method and device for process optimization
CN103226486A (en) * 2013-04-23 2013-07-31 北京奇虎科技有限公司 Optimization method and device for browser operation
CN103324684A (en) * 2013-05-31 2013-09-25 贝壳网际(北京)安全技术有限公司 Control method and device for browser kernel in mobile terminal and mobile terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184165A (en) * 2015-09-14 2015-12-23 博彦科技股份有限公司 Anti-virus process scheduling method for network attached storage system
CN105184165B (en) * 2015-09-14 2018-07-06 博彦科技股份有限公司 For the process scheduling method of network attached storage system anti-virus
CN105843650A (en) * 2016-03-31 2016-08-10 青岛海信移动通信技术股份有限公司 Application program management method and device in intelligent terminal
CN107402808A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 process management method, device, storage medium and electronic equipment
CN107402808B (en) * 2017-07-31 2020-03-27 Oppo广东移动通信有限公司 Process management method, device, storage medium and electronic equipment
CN108196901A (en) * 2017-12-25 2018-06-22 山东浪潮通软信息科技有限公司 The loading method and device of camera in a kind of browser
CN109062689A (en) * 2018-07-17 2018-12-21 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of automatic releasing document resource
CN109062689B (en) * 2018-07-17 2020-07-31 武汉斗鱼网络科技有限公司 Method, storage medium, electronic device and system for automatically releasing file resources
CN109669877A (en) * 2018-12-11 2019-04-23 腾讯科技(深圳)有限公司 EMS memory management process, device, terminal and storage medium
CN113127163A (en) * 2019-12-31 2021-07-16 杭州海康威视数字技术股份有限公司 Model verification method and device and electronic equipment

Also Published As

Publication number Publication date
CN103984743B (en) 2018-03-09

Similar Documents

Publication Publication Date Title
CN103984743A (en) Method and device for managing memory resources
US10509842B2 (en) Method and device for refreshing news list
CN103226486B (en) The method and apparatus that browser execution is optimized
US10157067B2 (en) System optimizing method and apparatus
CN106941567A (en) Show method, device and the user terminal of network picture
CN103294718A (en) Method and device for web page cache management
CN106897141A (en) The processing method and processing device of information
CN104239139A (en) Method, device and terminal for processing boot-strap self-starting project
CN107291449B (en) Page rendering method, device and equipment
CN104657435A (en) Storage management method for application data and network management system
CN110083452A (en) A kind of method for managing resource, system and electronic equipment and storage medium
CN112149032A (en) Advertisement blocking method and device
US11431634B2 (en) Client device and resource manager load sharing
CN106201237A (en) A kind of information collection method and device
CN103365842A (en) Page view recommendation method and page view recommendation device
CN112182004A (en) Method and device for viewing data in real time, computer equipment and storage medium
CN111177700A (en) Method and device for controlling row-level authority
CN106682044B (en) Data processing method and device
CN106708615A (en) Application management method and terminal
CN108681469B (en) Page caching method, device, equipment and storage medium based on Android system
CN106202374A (en) A kind of data processing method and device
CN105898399A (en) Video resource loading method and device and smart television
CN105677403B (en) Data processing method, device and equipment
CN105740666A (en) Method and device for identifying on-line operational risk
CN104679399B (en) The method and electronic equipment of a kind of information processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 Beijing, Shijingshan District Xing Xing street, building 30, No. 3, building 2, A-0070

Applicant after: BEIJING LIEBAO NETWORK TECHNOLOGY CO., LTD.

Address before: 100041 room 1592A, building, No. 3 West Road, Badachu hi tech park, Beijing, Shijingshan District, China

Applicant before: Beijing Kingsoft Internet Science and Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant