CN101814040B - Single-thread browser and processing method thereof - Google Patents
Single-thread browser and processing method thereof Download PDFInfo
- Publication number
- CN101814040B CN101814040B CN 201010139675 CN201010139675A CN101814040B CN 101814040 B CN101814040 B CN 101814040B CN 201010139675 CN201010139675 CN 201010139675 CN 201010139675 A CN201010139675 A CN 201010139675A CN 101814040 B CN101814040 B CN 101814040B
- Authority
- CN
- China
- Prior art keywords
- progress bar
- end mark
- mark position
- bottom service
- thread
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a processing method and a device of a single-thread browser, wherein the method comprises the following step that: the single-thread browser starts the business process to call the service of a bottom layer and displays the execution progress of the service of the bottom layer. The invention can realize the progress bar service on the single-thread browser, thus improving the sensitivity of a user to use the business.
Description
Technical field
The present invention relates to the browser technology field, in particular to a kind of single-thread browser and disposal route thereof.
Background technology
Mostly set box browser is single-threaded at present, when single-thread browser carries out the bottom business processing, be that single-thread browser calls the bottom service, perhaps during the Treated Base operation flow, the single-thread browser thread block, after can only waiting for that the bottom business processing is complete, browser just can be proceeded subsequent treatment, when traffic handling time is long, causes browser page to feel it is for a long time without sound to the user, make the user take for deadlock, thereby user's use susceptibility is relatively poor.
Existing multithreading browser uses based on the progress bar scheme and realizes that user prompting user system when the browser bottom business processing processes still underway, but the progress bar scheme that the multithreading browser uses can not be applied to single-threaded set box browser, does not still realize the scheme of progress bar in the present single-threaded set box browser.
For in the correlation technique when the time of single-thread browser process user system business is longer, the user can't see the system business progress, causes the user to use the relatively poor problem of susceptibility, not yet proposes at present effective solution.
Summary of the invention
For in the correlation technique when the time of single-thread browser process user system business is longer, the user can't see the system business progress, cause the user to use the relatively poor problem of susceptibility and propose the present invention, for this reason, fundamental purpose of the present invention is to provide a kind of single-thread browser and disposal route thereof, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of disposal route of single-thread browser.
Disposal route according to single-thread browser of the present invention comprises: single-thread browser starts business process, to call the bottom service; Single-thread browser shows the implementation progress of bottom service.
Preferably, single-thread browser shows the implementation progress of bottom service by progress bar, single-thread browser start the single-thread browser business process with the step of calling the bottom service in, further comprise: the single-thread browser business process is handed to the progress bar process with the process control, enables progress bar by the progress bar process; The service of progress bar process initiation bottom; After carrying out bottom service end, the progress bar process returns the process control to the single-thread browser business process.
Preferably, single-thread browser start the single-thread browser business process with the step of calling the bottom service in, after the service of progress bar process initiation bottom, further comprise: the progress bar process is returned, and the end mark position of access bottom service after returning; The progress bar process is judged the whether set of end mark position, and in the situation of position, end mark position, the progress bar process finishes access end mark position and finishes with indication bottom service execution; Do not have in the end mark position in the situation of set, the progress bar process continues access end mark position, until position, end mark position.
Preferably, before the end mark position of progress bar process access bottom service, method also comprises: the progress bar process according to predetermined time the interval T.T. of bottom service execution is separated, obtain the progress bar step-length; The progress bar process is according to the end mark position of progress bar step-length access bottom service; The progress bar process comes to show by progress bar the implementation progress of bottom service according to the result of the end mark position of progress bar step-length access bottom service.
Preferably, there are not in the situation of set end mark position of the every access of progress bar process, the progress bar step-length of then advancing in the end mark position.
Preferably, when the end mark position of progress bar process access bottom service, if the set of end mark position, then progress bar process indication bottom service execution is finished.
Preferably, the progress bar step-length is the spacer-frame of a regular length at progress bar, and method comprises: do not have in the end mark position in the situation of set, the progress bar process is filled the spacer-frame on the progress bar take the progress bar step-length as unit; In the situation of position, end mark position, the spacer-frame that is not filled on the progress bar is complete by disposable filling.
To achieve these goals, according to a further aspect in the invention, provide a kind of single-thread browser.
According to single-thread browser of the present invention, comprising: start module, be used for single-thread browser and start business process, to call the bottom service; Display module is used for the implementation progress that single-thread browser shows the bottom service.
Preferably, start module and also comprise: the process control is delivered module, is used for making the single-thread browser business process that the process control is handed to the progress bar process, enables progress bar; The promoter module is used for making the service of progress bar process initiation bottom; Access modules is used for after the service of progress bar process initiation bottom the progress bar process being returned, and the end mark position of access bottom service after returning; Judge module is used for making the progress bar process to judge the whether set of end mark position.
Preferably, there are not in the situation of set end mark position of the every access of progress bar process, the progress bar step-length of then advancing in the end mark position.
By the present invention, adopt single-thread browser to start business process, to call the bottom service; Single-thread browser shows the implementation progress of bottom service, solved in the correlation technique when the time of single-thread browser process user system business is longer, the user can't see the system business progress, cause the user to use the relatively poor problem of susceptibility, and then reached in the service of single-thread browser realization progress bar, improve the user and use professional susceptibility.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is the synoptic diagram according to the disposal system of the single-thread browser of the embodiment of the invention;
Fig. 2 is the schematic flow sheet according to the disposal route of the single-thread browser of the embodiment of the invention;
Fig. 3 is the synoptic diagram according to the progress bar of the embodiment of the invention;
Fig. 4 is the preferred schematic flow sheet according to the disposal route of the single-thread browser of the embodiment of the invention;
Fig. 5 is the synoptic diagram according to the single-thread browser structure of the embodiment of the invention.
Embodiment
Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
According to embodiments of the invention, provide a kind of disposal system of single-thread browser.
Fig. 1 is the synoptic diagram according to the disposal system of the single-thread browser of the embodiment of the invention.
As shown in Figure 1, the disposal system of this single-thread browser comprises: business process 11, progress bar process 12, bottom service 13 and end mark position 14.The present invention is undertaken alternately by business process 11 and progress bar process 12, and progress bar process 12 realizes alternately that with bottom service 13 single-thread browser uses progress bar to solve the problem that the user can't see the system business process of bottom service.
In the single-thread browser progress bar scheme that the embodiment of the invention realizes, after the single-thread browser business process starts the bottom functional sequence, immediately browser Thread control power is handed to the progress bar process, the progress bar process is constantly accessed the end mark position that the bottom functional sequence is safeguarded according to the certain hour interval, and fill forward gradually the progress bar exhibiting pictures, the prompting user system does not crash.Finish until the bottom functional sequence is carried out, the end mark position is set, and the progress bar process is finished and filled the progress bar picture, and the flow process of the browser process control being given business process.
Wherein, the progress bar picture of the embodiment of the invention: the dynamic picture that refers to show the user, the synoptic diagram of the progress bar of the embodiment of the invention as shown in Figure 3, access the end mark position of bottom functional sequence when the progress bar process at every turn, if when not having set, the progress bar picture is filled forward lattice, until the bottom functional sequence is finished, the progress bar picture is filled complete.
Fig. 2 is the schematic flow sheet according to the disposal route of the single-thread browser of the embodiment of the invention.
As shown in Figure 2, the method comprises that following step S202 is to step S204:
Step S202, single-thread browser starts business process, to call the bottom service;
Step S204, single-thread browser shows the implementation progress of bottom service.
The present invention shows the implementation progress that bottom is served by single-thread browser, realizes that the user can see the executing state of system business more intuitively, is convenient to the seemingly-dead machine state that the user distinguishes single-thread browser, has improved user's use susceptibility.
In the embodiment of the invention, single-thread browser shows the implementation progress of bottom service by progress bar, single-thread browser start the single-thread browser business process with the step of calling the bottom service in, may further include: the single-thread browser business process is handed to the progress bar process with the process control, enables progress bar by the progress bar process; The service of progress bar process initiation bottom; After carrying out bottom service end, the progress bar process returns the process control to the single-thread browser business process.The user intuitively understands the duty of system bottom business in this process by progress bar.
Wherein, single-thread browser start the single-thread browser business process with the step of calling the bottom service in, after the service of progress bar process initiation bottom, may further include: the progress bar process is returned, and the end mark position of access bottom service after returning; The progress bar process is judged the whether set of end mark position, and in the situation of position, end mark position, the progress bar process finishes access end mark position and finishes with indication bottom service execution; Do not have in the end mark position in the situation of set, the progress bar process continues access end mark position, until position, end mark position.In embodiments of the present invention, system is by constantly accessing the end mark position that the bottom service is safeguarded, the prompting user system business does not crash, and improves user's use susceptibility.
Further, before the end mark position of progress bar process access bottom service, method can also comprise: the progress bar process according to predetermined time the interval T.T. of bottom service execution is separated, obtain the progress bar step-length; The progress bar process is according to the end mark position of progress bar step-length access bottom service; The progress bar process comes to show by progress bar the implementation progress of bottom service according to the result of the end mark position of progress bar step-length access bottom service.The progress bar step-length has shown the executing state of service more intuitively.
Wherein, there are not in the situation of set end mark position of the every access of progress bar process, the progress bar step-length of then advancing in the end mark position.Progressive bar step-length has shown the progress situation that this moment, the bottom service was finished.
Wherein, when the end mark position of progress bar process access bottom service, if the set of end mark position, then progress bar process indication bottom service execution is finished.The service of progressive bar step-length demonstration bottom is finished.
Among the present invention, the progress bar step-length is the spacer-frame of a regular length at progress bar, and method comprises: do not have in the end mark position in the situation of set, the progress bar process is filled the spacer-frame on the progress bar take the progress bar step-length as unit; In the situation of position, end mark position, the spacer-frame that is not filled on the progress bar is complete by disposable filling.
Fig. 4 is the preferred schematic flow sheet according to the disposal route of the single-thread browser of the embodiment of the invention.
As shown in Figure 4, the method comprises the steps:
Step S401, the single-thread browser business process need to call the bottom service, and when namely calling the bottom functional sequence, the single-thread browser business process is handed to the progress bar process with the process control.
Step S402, progress bar process triggers bottom functional sequence, after the success of progress bar process initiation bottom functional sequence, return immediately behind the progress bar process initiation bottom functional sequence, beginning execution in step S403, this moment, the progress bar process can't be clogged to browser process bottom functional sequence processing end.
Progress bar process in the embodiment of the invention only is to trigger the bottom functional sequence, does not wait for that the bottom functional sequence is finished to return, but returns immediately.
Step S403, the end mark position of progress bar process access bottom function treatment flow process.And judge the whether set of end mark position, if set then execution in step S406, otherwise progress bar process repeated execution of steps S403 and step S404, until position, end mark position.
In the embodiment of the invention, the bottom function can be safeguarded an end mark position, browser progress bar process is every one section Fixed Time Interval access end mark position, if the end mark position does not have set, layout when the progress bar exhibiting pictures then moves forward one, after the bottom functional sequence is finished with this position, end mark position.
Layout when step S404, progress bar fill forward one.
In the embodiment of the invention, the progress bar process is drawn the progress bar exhibiting pictures, and length is about the maximum time length of bottom layer treatment flow process, and is divided into layout when a plurality of according to a Fixed Time Interval; The progress bar process is just accessed bottom layer treatment end mark position every this Fixed Time Interval, if the end mark position does not have set, layout when then the progress bar exhibiting pictures is filled forward is until position, bottom layer treatment end mark position
Step S405, bottom functional sequence carry out and finish position, end mark position.
In the process that step S403 and step S404 carry out, the execution of bottom business function treatment scheme oneself, when the bottom functional sequence finishes with position, end mark position.
Step S406, when position, end mark position, progress bar is filled complete, finishes the progress bar process, execution in step S407.
In the embodiment of the invention, if the progress bar process has access to the set of end mark position, the progress bar exhibiting pictures is complete by disposable filling, and the progress bar process finishes, return single-thread browser the process control is returned business process, proceed next step business processing.
Step S407, the progress bar process is returned the process control to business process.At this moment, the progress bar picture has been filled, and the progress bar process finishes, and present embodiment has realized that progress bar still is in operation with the prompting user system under the single-thread browser.
Need to prove, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
According to embodiments of the invention, provide a kind of single-thread browser.
Fig. 5 is the synoptic diagram according to the single-thread browser structure of the embodiment of the invention.
As shown in Figure 5, this single-thread browser comprises: start module 51 and display module 52.
Wherein, start module 51, be used for single-thread browser and start business process, to call the bottom service; Display module 52 is used for the implementation progress that single-thread browser shows the bottom service.
Preferably, starting module also comprises: the process control is delivered module 511, promoter module 512, access modules 513 and judge module 514.
Wherein, the process control is delivered module 511, is used for making the single-thread browser business process that the process control is handed to the progress bar process, enables progress bar; Promoter module 512 is used for making the service of progress bar process initiation bottom; Access modules 513 is used for after the service of progress bar process initiation bottom the progress bar process being returned, and the end mark position of access bottom service after returning; Judge module 514 is used for making the progress bar process to judge the whether set of end mark position.
Preferably, there are not in the situation of set end mark position of the every access of progress bar process, the progress bar step-length of then advancing in the end mark position.
From above description, can find out, the present invention has realized following technique effect: be implemented in the single-thread browser Treated Base when professional the prompting user system process still underwayly, avoid the situation that the user thinks seemingly-dead machine occurs, improved user's use susceptibility.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. the disposal route of a single-thread browser is characterized in that, comprising:
Single-thread browser starts the single-thread browser business process, to call the bottom service;
Described single-thread browser shows the implementation progress of described bottom service by progress bar;
Wherein, described single-thread browser start the single-thread browser business process with the step of calling the bottom service in, further comprise: described single-thread browser business process is handed to the progress bar process with the process control, enables progress bar by described progress bar process; The described bottom service of described progress bar process initiation; After carrying out described bottom service end, described progress bar process returns described process control to described single-thread browser business process.
2. method according to claim 1 is characterized in that, described single-thread browser start the single-thread browser business process with the step of calling the bottom service in, after the described bottom service of described progress bar process initiation, further comprise:
Described progress bar process is returned, and the end mark position of the described bottom service of access after returning;
Described progress bar process is judged the whether set of described end mark position,
In the situation of position, described end mark position, described progress bar process finishes the described end mark of access position to indicate described bottom service execution to finish;
Do not have in the situation of set in described end mark position, described progress bar process continues the described end mark of access position, until position, described end mark position.
3. method according to claim 2 is characterized in that, accesses in described progress bar process before the end mark position of described bottom service, and described method also comprises:
Described progress bar process according to predetermined time the interval T.T. of described bottom service execution is separated, obtain the progress bar step-length;
Described progress bar process is accessed the end mark position of described bottom service according to described progress bar step-length;
The result that described progress bar process is accessed the end mark position of described bottom service according to described progress bar step-length to show the implementation progress that described bottom is served by described progress bar.
4. method according to claim 3 is characterized in that, does not have in the situation of set in described end mark position, and the every access of described progress bar process is described end mark position once, the described progress bar step-length of then advancing.
5. method according to claim 3 is characterized in that, when described progress bar process was accessed the end mark position of described bottom service, if the set of described end mark position, then described progress bar process indicated described bottom service execution to finish.
6. each described method in 5 according to claim 4 is characterized in that, the spacer-frame that described progress bar step-length is a regular length at described progress bar, and described method comprises:
Do not have in the situation of set in described end mark position, described progress bar process is filled the spacer-frame on the described progress bar take described progress bar step-length as unit;
In the situation of position, described end mark position, the spacer-frame that is not filled on the described progress bar is complete by disposable filling.
7. a single-thread browser is characterized in that, comprising:
Start module, be used for single-thread browser and start the single-thread browser business process, to call the bottom service;
Display module is used for described single-thread browser shows described bottom service by progress bar implementation progress;
Wherein, described startup module also comprises: the process control is delivered module, is used for making described single-thread browser business process that the process control is handed to the progress bar process, enables progress bar; The promoter module is used for making the described bottom service of described progress bar process initiation; Access modules is used for after the described bottom service of described progress bar process initiation described progress bar process being returned, and the end mark position of the described bottom service of access after returning; Judge module is used for making described progress bar process to judge the whether set of described end mark position.
8. single-thread browser according to claim 7 is characterized in that, does not have in the situation of set in described end mark position, and the every access of described progress bar process is described end mark position once, the progress bar step-length of then advancing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010139675 CN101814040B (en) | 2010-04-01 | 2010-04-01 | Single-thread browser and processing method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010139675 CN101814040B (en) | 2010-04-01 | 2010-04-01 | Single-thread browser and processing method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101814040A CN101814040A (en) | 2010-08-25 |
CN101814040B true CN101814040B (en) | 2013-01-09 |
Family
ID=42621302
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010139675 Expired - Fee Related CN101814040B (en) | 2010-04-01 | 2010-04-01 | Single-thread browser and processing method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101814040B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9658757B2 (en) | 2013-09-04 | 2017-05-23 | Tencent Technology (Shenzhen) Company Limited | Method and device for managing progress indicator display |
CN104423840B (en) * | 2013-09-04 | 2019-04-12 | 腾讯科技(深圳)有限公司 | A kind of implementation method and device of progress indicator strip |
CN113244617B (en) * | 2021-06-02 | 2023-11-28 | 网易(杭州)网络有限公司 | Mobile data processing method and device in game and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178670A (en) * | 2007-12-10 | 2008-05-14 | 中兴通讯股份有限公司 | How to upgrade the device |
CN101526905A (en) * | 2009-04-17 | 2009-09-09 | 四川长虹电器股份有限公司 | Method for displaying starting up progress of embedded device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7330894B2 (en) * | 2002-04-19 | 2008-02-12 | International Business Machines Corporation | System and method for preventing timeout of a client |
-
2010
- 2010-04-01 CN CN 201010139675 patent/CN101814040B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178670A (en) * | 2007-12-10 | 2008-05-14 | 中兴通讯股份有限公司 | How to upgrade the device |
CN101526905A (en) * | 2009-04-17 | 2009-09-09 | 四川长虹电器股份有限公司 | Method for displaying starting up progress of embedded device |
Also Published As
Publication number | Publication date |
---|---|
CN101814040A (en) | 2010-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10347023B2 (en) | Data drawing method and apparatus, terminal, and storage medium | |
WO2018059079A1 (en) | Memory management method and apparatus | |
CN103377067B (en) | Application program loading system and method | |
EP2846237B1 (en) | Application switching method and apparatus, and touch screen electronic device | |
CN101814040B (en) | Single-thread browser and processing method thereof | |
JP4456490B2 (en) | DMA equipment | |
CN105446755A (en) | Method and device for rapidly loading Activity data for Android system | |
CN102104666B (en) | Application skip prediction system and method | |
CN102541538A (en) | Picture displaying method and device based on mobile terminal | |
CN106507204A (en) | A kind of video play-reverse method and apparatus | |
CN109451076B (en) | Network request merging processing method and device and electronic equipment | |
CN110362766B (en) | Page display control method and terminal | |
EP4365720A1 (en) | Control method and apparatus for multimedia content display, electronic device, and medium | |
CN106897299B (en) | Database access method and device | |
CN102156716A (en) | Method and device for re-typesetting web page | |
CN109862429A (en) | Video playing control method, device, equipment and storage medium | |
CN110020300A (en) | A kind of browser page synthetic method and terminal | |
CN106407009A (en) | Picture display method and device | |
CN108958930A (en) | Processing method, device and the equipment of container resource | |
CN102375857B (en) | Search method and device | |
CN105760226A (en) | Method, device and mobile terminal for quickly starting mobile terminal camera | |
CN113328821A (en) | Instruction synchronization method, server and system | |
CN118193112A (en) | Display method, device, equipment, storage medium and program product | |
CN104199991B (en) | Processing method and client side for providing user-defined top search result items | |
CN116932144A (en) | Control method and system for virtual machine of vehicle machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130109 |
|
CF01 | Termination of patent right due to non-payment of annual fee |