CN101246503A - System and method for reducing occupancy factor of central processing unit - Google Patents
System and method for reducing occupancy factor of central processing unit Download PDFInfo
- Publication number
- CN101246503A CN101246503A CNA2008101020793A CN200810102079A CN101246503A CN 101246503 A CN101246503 A CN 101246503A CN A2008101020793 A CNA2008101020793 A CN A2008101020793A CN 200810102079 A CN200810102079 A CN 200810102079A CN 101246503 A CN101246503 A CN 101246503A
- Authority
- CN
- China
- Prior art keywords
- interface unit
- itimer
- web page
- unit
- page element
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a system for reducing occupancy factor to central processing unit (CPU), comprising an IE browse management unit; an interface unit; and an IE browse performing unit; wherein, the interface unit establishes configuration data for accomplishing timer function, so as to supply query to the IE browse management unit; the IE browse management unit regulates occupancy factor to CPU when operating relevant function of webpage element through the configuration data established for inquiring and transferring the interface unit. With the system and method of the invention, the webpage element relevant element is performed when browsing webpage, while occupancy factor to CPU is regulated when operating a plurality of webpage element relevant functions, so as to reduces occupancy factor to CPU greatly.
Description
Technical field
The present invention relates to reduce the technology of Center Processing Unit Utilization, relate in particular to a kind of system and method that in the web page browsing process, reduces Center Processing Unit Utilization.
Background technology
At present, as shown in Figure 1, realize that the system of web page browsing comprises that IE browsing management unit 1, interface unit 2, IE browse performance element 3.Wherein, IE browsing management unit 1 is used for browsing performance element 3 by interface unit 2 with IE and carries out interacting message, realizes browsing of webpage, and the system that realizes web page browsing is managed.Such as working as user's webpage clicking element, when triggering the request of carrying out this web page element correlation function, after IE browsing management unit 1 receives the message of this web page element correlation function request of execution, realize IE is browsed calling of performance element 3 via interface unit 2, and the forwards that will carry out this web page element correlation function request is browsed performance element 3 to IE, the feedback of afterwards IE being browsed performance element 3 is transmitted to web page element, makes the user realize carrying out the correlation function of this web page element.Interface unit 2 is used for browsing forwards interface between the performance element 3 as IE browsing management unit 1 and IE.IE browses performance element 3 and is used for obtaining message via interface unit 2 from IE browsing management unit 1, and will return to IE browsing management unit 1 at the feedback message of obtaining message.Here, IE browsing management unit 1 can be IE kernel browser, and IE browses performance element 3 can be the IE kernel.
At the existing system that realizes web page browsing, in the system of existing realization web page browsing, interface unit can be opened authority and give the third party, make the third party develop timer function at interface unit, but, at present, in interface unit and the timer function of being unrealized, still use at IE and browse the timer function that performance element realization system carries, periodically control the execution of web page element correlation function.And the timer function that the employing system carries, certainly will can't move according to current system the concrete condition of shared central processing unit, when regulating a plurality of web page element correlation function of operation to the occupancy of central processing unit.
In sum, the shortcoming of prior art is: browse the timer function that performance element realization system carries at IE, and this timer function can trigger the web page element on the webpage, constantly moves such as FLASH animation, GIF animation, so that carry out the correlation function of web page element.So, the timer function that employing system carries must cause the too high harmful effect of Center Processing Unit Utilization.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of system that reduces Center Processing Unit Utilization, when realizing web page browsing and carrying out the web page element correlation function, to the occupancy of central processing unit, greatly reduce occupancy in the time of regulating a plurality of web page element correlation function of operation to central processing unit.
Another object of the present invention is to provide a kind of method that reduces Center Processing Unit Utilization, when realizing web page browsing and carrying out the web page element correlation function, to the occupancy of central processing unit, greatly reduce occupancy in the time of regulating a plurality of web page element correlation function of operation to central processing unit.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of system that reduces Center Processing Unit Utilization, this system comprises that IE browsing management unit, interface unit and IE browse performance element, wherein, and described interface unit, be used to create the configuration data of realizing timer function, to offer the inquiry of described IE browsing management unit;
Described IE browsing management unit is used for by inquiry and calls the described configuration data that described interface unit is created, when regulating operation web page element correlation function to the occupancy of central processing unit.
Wherein, described interface unit is the ITimerService interface unit.
Wherein, described ITimerService interface unit is used for realizing establishment to described configuration data by the mode of creating the ITimer object; Described IE browsing management unit is further used for inquiring about described ITimer object, regulates occupancy to central processing unit by the mode of calling and closing described ITimer object.
Wherein, described ITimerService interface unit is further used for realizing establishment to described configuration data by the mode of creating and write down described ITimer object and described web page element corresponding relation.
Wherein, described IE browsing management unit behind the web page element that also is used for determining to be complementary with described selected strategy according to selected strategy, goes described ITimerService interface unit inquiry; In described ITimer object and described web page element corresponding relation, inquire and the corresponding ITimer object of the web page element of described coupling, call and close described corresponding ITimer object.
A kind of method that reduces Center Processing Unit Utilization, this method may further comprise the steps:
A, interface unit are created the configuration data of realizing timer function, to offer the inquiry of IE browsing management unit;
B, described IE browsing management unit are by inquiry and call the described configuration data that described interface unit is created, when regulating operation web page element correlation function to the occupancy of central processing unit.
Wherein, the configuration data of described realization timer function comprises: the ITimer object of establishment, and create and the described ITimer object of record and the corresponding relation of described web page element.
Wherein, described interface unit is the ITimerService interface unit; Step B further is:
B1, described IE browsing management unit go the inquiry of described ITimerService interface unit, inquire described ITimer object, call and close described ITimer object and regulate occupancy to central processing unit.
Wherein, described interface unit is the ITimerService interface unit; Step B further is:
Behind the web page element that B2, described IE browsing management unit determine to be complementary with described selected strategy according to selected strategy, go described ITimerService interface unit inquiry, in described ITimer object and described web page element corresponding relation, inquire and the corresponding ITimer object of the web page element of described coupling, call and close described corresponding ITimer object and regulate occupancy central processing unit.
The present invention includes IE browsing management unit, interface unit and IE and browse performance element.Wherein, interface unit is used to create the configuration data of realizing timer function, to offer the inquiry of IE browsing management unit.The present invention is different from prior art, and its interface unit not only can be used as the interface that IE browsing management unit and IE browse interacting message between the performance element, can also realize timer function at interface unit.Here, because in the system of existing realization web page browsing, interface unit can be opened authority and give the third party, makes the third party develop timer function at interface unit.So, the configuration data of the realization timer function that follow-up IE browsing management unit search interface unit is created can be regulated when moving the web page element correlation function occupancy to central processing unit.
Adopt the present invention, when a plurality of web page element correlation function of operation, greatly reduce occupancy central processing unit.And because the occupancy of central processing unit is reduced greatly, therefore, the response speed of the system responses user of web page browsing operation will significantly improve, and especially response speed is more obvious under a fairly large number of situation of the webpage that the user opens.
Description of drawings
Fig. 1 is the existing composition structural representation of realizing the system of web page browsing;
Fig. 2 is the realization flow synoptic diagram of the inventive method principle.
Embodiment
Core concept of the present invention is: the present invention is different from prior art, and its interface unit not only can be used as the interface that IE browsing management unit and IE browse interacting message between the performance element, can also realize timer function at interface unit.Here, because in the system of existing realization web page browsing, interface unit can be opened authority and give the third party, makes the third party develop timer function at interface unit.So, the configuration data of the realization timer function that follow-up IE browsing management unit search interface unit is created can be regulated when moving the web page element correlation function occupancy to central processing unit.
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples and with reference to accompanying drawing, the present invention is described in more detail.
A kind of system that reduces Center Processing Unit Utilization, this system comprise that IE browsing management unit, interface unit and IE browse performance element.The annexation that IE browsing management unit, interface unit and IE browse performance element as shown in Figure 1.And, interface unit, except being used for browsing forwards interface between the performance element as IE browsing management unit and IE, the forwards of the execution web page element correlation function request that IE browsing management unit is received is browsed performance element to IE, afterwards, the feedback of IE being browsed performance element is transmitted to IE browsing management unit, and IE browsing management unit offers web page element with feedback information, makes the user realize carrying out the correlation function of web page element.Interface unit also is used to create the configuration data of realizing timer function, to offer the inquiry of IE browsing management unit.So, IE browsing management unit is used for the configuration data of the realization timer function created by inquiry and calling interface unit, regulates when moving the web page element correlation function occupancy to central processing unit.
Here, IE browsing management unit can be IE kernel browser, and interface unit can be the ITimerService interface unit, and IE browses performance element can be the IE kernel.
So, the ITimerService interface unit is used for realizing establishment to the configuration data of realizing timer function by the mode of creating the ITimer object.IE browsing management unit then is further used for inquiring about the ITimer object of establishment, when the mode of the ITimer object by calling and close this establishment is regulated operation web page element correlation function to occupancy to central processing unit.
Here, it is to be noted, because in the system of existing realization web page browsing, interface unit can be opened authority and give the third party, make the third party develop timer function at interface unit, the third party can create the ITimer object at the ITimerService interface unit in advance so, so that the follow-up ITimer object of closing, realize timer function, thereby make the configuration data of the realization timer function that IE browsing management unit inquiry ITimerService interface unit creates, can regulate when moving the web page element correlation function occupancy central processing unit.
And then the ITimerService interface unit is further used for realizing the establishment to the configuration data of realizing timer function by creating and writing down the mode of having created ITimer object and web page element corresponding relation.So, IE browsing management unit behind the web page element that also is used for determining to be complementary with selected strategy according to selected strategy, goes the inquiry of ITimerService interface unit; In ITimer object and web page element corresponding relation, inquire and the corresponding ITimer object of this web page element that is complementary, call and close this corresponding ITimer object.
At selected strategy, selected strategy can be for the selected the most complicated FLASH animation of current maximum, so that pick out the web page element that takies system central processor most.The web page element that takies most system central processor is defined as the web page element that is complementary with the current selected strategy.Afterwards, in the corresponding relation of ITimer object and web page element, the corresponding ITimer object of web page element that inquires Yu be complementary calls and closes this corresponding ITimer object from the ITimerService interface unit.Just call the ITimer::Freeze method of ITimer object, the timing that stops timer exciting function.Thereby feasible out of service with the corresponding web page element of ITimer object, no longer take central processing unit.Thereby feasible occupancy to central processing unit reduces greatly.
As shown in Figure 2, a kind of method that reduces Center Processing Unit Utilization, this method may further comprise the steps:
Step 101, interface unit are created the configuration data of realizing timer function, to offer the inquiry of IE browsing management unit.
Here, realize that the configuration data of timer function comprises the ITimer object of establishment, and create and the ITimer object of having created of record and the corresponding relation of web page element.Interface unit is the ITimerService interface unit.
Wherein, shown in being implemented as follows of ITimerService interface unit.
Interface?ITimerService:public?IUnknown
{
public:
HRESULT?CreateTimer(
[in]ITimer_RPC_FAR*pReferenceTimer,
[out]ITimer_RPC_FAR*_RPC_FAR*ppNewTimer)=0;
HRESULT?GetNamedTimer(
[in]REFGUID?rguidName,
[out]ITimer*ppTimer)=0;
HRESULT?SetNamedTimerReference(
[in]REFGUID?rguidName,
[in]ITimer*pReferenceTimer)=0;
};
Here it is pointed out that in the specific implementation of ITimerService interface unit key is to realize the CreateTimer function.The basic logic that realizes the CreateTimer function is: at first call ITimerService::CreateTimer and create out an ITimer object; Create and write down the ITimer object created and the corresponding relation of web page element then; At last this ITimer object is returned.
The configuration data of the realization timer function that step 102, IE browsing management unit are created by inquiry and calling interface unit, when regulating operation web page element correlation function to the occupancy of central processing unit.
Here, inquire the difference of the configuration data of realizing timer function according to IE browsing management unit, the specific implementation process of step 102 comprises following two kinds of situations.
First kind of situation, when IE browsing management unit inquired the ITimer object of establishment, the specific implementation process of step 102 further was:
Step 1021, IE browsing management unit go ITimerService interface unit inquiry, inquire the ITimer object, call and close the ITimer object of having created and regulate occupancy to central processing unit.
Second kind of situation, IE browsing management unit inquires the ITimer object of establishment, and creates and during the corresponding relation of the ITimer object of having created of record and web page element, the specific implementation process of step 102 further is:
Behind the web page element that step 1022, IE browsing management unit are determined to be complementary with described selected strategy according to selected strategy, go the inquiry of ITimerService interface unit, in ITimer object and web page element corresponding relation, the corresponding ITimer object of the web page element that inquires and mate calls and closes corresponding ITimer object and regulates occupancy to central processing unit.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.
Claims (9)
1, a kind of system that reduces Center Processing Unit Utilization, this system comprises that IE browsing management unit, interface unit and IE browse performance element, is characterized in that described interface unit, be used to create the configuration data of realizing timer function, to offer the inquiry of described IE browsing management unit;
Described IE browsing management unit is used for by inquiry and calls the described configuration data that described interface unit is created, when regulating operation web page element correlation function to the occupancy of central processing unit.
2, system according to claim 1 is characterized in that, described interface unit is the ITimerService interface unit.
3, system according to claim 2 is characterized in that, described ITimerService interface unit is used for realizing establishment to described configuration data by the mode of creating the ITimer object; Described IE browsing management unit is further used for inquiring about described ITimer object, regulates occupancy to central processing unit by the mode of calling and closing described ITimer object.
4, system according to claim 3 is characterized in that, described ITimerService interface unit is further used for realizing establishment to described configuration data by the mode of creating and write down described ITimer object and described web page element corresponding relation.
5, system according to claim 4 is characterized in that, described IE browsing management unit behind the web page element that also is used for determining to be complementary with described selected strategy according to selected strategy, goes described ITimerService interface unit inquiry; In described ITimer object and described web page element corresponding relation, inquire and the corresponding ITimer object of the web page element of described coupling, call and close described corresponding ITimer object.
6, a kind of method that reduces Center Processing Unit Utilization is characterized in that, this method may further comprise the steps:
A, interface unit are created the configuration data of realizing timer function, to offer the inquiry of IE browsing management unit;
B, described IE browsing management unit are by inquiry and call the described configuration data that described interface unit is created, when regulating operation web page element correlation function to the occupancy of central processing unit.
7, method according to claim 6 is characterized in that, the configuration data of described realization timer function comprises: the ITimer object of establishment, and create and the described ITimer object of record and the corresponding relation of described web page element.
8, method according to claim 7 is characterized in that, described interface unit is the ITimerService interface unit; Step B further is:
B1, described IE browsing management unit go the inquiry of described ITimerService interface unit, inquire described ITimer object, call and close described ITimer object and regulate occupancy to central processing unit.
9, method according to claim 7 is characterized in that, described interface unit is the ITimerService interface unit; Step B further is:
Behind the web page element that B2, described IE browsing management unit determine to be complementary with described selected strategy according to selected strategy, go described ITimerService interface unit inquiry, in described ITimer object and described web page element corresponding relation, inquire and the corresponding ITimer object of the web page element of described coupling, call and close described corresponding ITimer object and regulate occupancy central processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101020793A CN101246503B (en) | 2008-03-17 | 2008-03-17 | System and method for reducing occupancy factor of central processing unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101020793A CN101246503B (en) | 2008-03-17 | 2008-03-17 | System and method for reducing occupancy factor of central processing unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101246503A true CN101246503A (en) | 2008-08-20 |
CN101246503B CN101246503B (en) | 2010-06-09 |
Family
ID=39946954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101020793A Active CN101246503B (en) | 2008-03-17 | 2008-03-17 | System and method for reducing occupancy factor of central processing unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101246503B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368250A (en) * | 2011-09-26 | 2012-03-07 | 奇智软件(北京)有限公司 | Page downloading control method and system for IE (Internet Explore) kernel browser |
CN104468785A (en) * | 2014-12-08 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Electronic device, server device, and data request submitting method and processing method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU4340400A (en) * | 1999-04-14 | 2000-11-14 | Americomusa | Internet advertising with controlled and timed display of ad content |
CN100527670C (en) * | 2004-07-29 | 2009-08-12 | 北京凯思昊鹏软件工程技术有限公司 | Cooperated browsers implementing method |
CN100507909C (en) * | 2005-04-29 | 2009-07-01 | 马堃 | Interactive dynamic browser of manual apparatus and its display controlling method |
-
2008
- 2008-03-17 CN CN2008101020793A patent/CN101246503B/en active Active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368250A (en) * | 2011-09-26 | 2012-03-07 | 奇智软件(北京)有限公司 | Page downloading control method and system for IE (Internet Explore) kernel browser |
CN102368250B (en) * | 2011-09-26 | 2013-04-24 | 奇智软件(北京)有限公司 | Page downloading control method and system for IE (Internet Explore) kernel browser |
CN104468785A (en) * | 2014-12-08 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Electronic device, server device, and data request submitting method and processing method |
Also Published As
Publication number | Publication date |
---|---|
CN101246503B (en) | 2010-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102866908B (en) | Method for cleaning Android background applications and services | |
US8788760B2 (en) | Adaptive caching of data | |
CN101996165B (en) | Copy processing method, device and equipment for webpage information on intelligent terminal | |
CN110336871A (en) | A kind of document handling method, device, storage medium and electronic equipment | |
CN106469087B (en) | Metadata output method, client and metadata server | |
TW200412060A (en) | System and method for using portals by mobile devices in a disconnected mode | |
CN101309291B (en) | Tool and method for terminal data maintenance | |
CN101127632A (en) | A method, system and redirector for server traffic control | |
CN101719929A (en) | Method for realizing real-time data transmission under Web Service | |
CN102117314A (en) | Document information transmission method and apparatus | |
CN102646055B (en) | Method for data interaction between systems | |
CN101466092A (en) | Method for implementing propelling movement in mobile communication network | |
CN102662600A (en) | Method for mutually dragging files at different domain names | |
CN102118442A (en) | Method and device for accessing Web resources | |
JP2018537777A (en) | Internet of things information system | |
CN103853621A (en) | Inter-process interactive method and relevant terminal equipment | |
CN101729562A (en) | Reliable data transmission method under unreliable network connection | |
CN101246503B (en) | System and method for reducing occupancy factor of central processing unit | |
CN102413153A (en) | Method and device for issuing microblog message | |
CN102209115A (en) | Method for coordinating different users in virtual desktop system | |
CN101021871A (en) | Web page content block intelligent intercepting method | |
CN105279156B (en) | Network information communication means and network information browsing apparatus | |
CN103914286B (en) | Management method and manager for tab page in user interface | |
CN104516913A (en) | Webpage browser based on multiple kernel technologies | |
CN107329842B (en) | Method and terminal for acquiring data based on Qt signal slot mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |