CN108206854A - Browser downloading task management method, device and user terminal - Google Patents

Browser downloading task management method, device and user terminal Download PDF

Info

Publication number
CN108206854A
CN108206854A CN201611187637.1A CN201611187637A CN108206854A CN 108206854 A CN108206854 A CN 108206854A CN 201611187637 A CN201611187637 A CN 201611187637A CN 108206854 A CN108206854 A CN 108206854A
Authority
CN
China
Prior art keywords
downloading task
download
downloading
downloaded
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611187637.1A
Other languages
Chinese (zh)
Inventor
宋鑫
沈艨
张玉娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer 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 Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201611187637.1A priority Critical patent/CN108206854A/en
Publication of CN108206854A publication Critical patent/CN108206854A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections

Abstract

The present invention provides a kind of browser downloading task management method, device and user terminals, are related to computer realm.Wherein, the method includes:Receive downloading task processing request;When downloading task processing request is downloads request, whether the downloading task quantity for judging downloading, which reaches maximum, is downloaded number, and the maximum number of downloading is the maximum quantity for allowing to be carried out at the same time the downloading task of download;Number is downloaded when the downloading task quantity downloaded reaches the maximum, makes described download that corresponding downloading task be asked to wait for downloads.When this method, device and user terminal can make the browser be downloaded the download of task, part downloading task can be downloaded preferentially, improve the speed of download for the downloading task preferentially downloaded, and the download time for making the downloading task preferentially downloaded is shorter.

Description

Browser downloading task management method, device and user terminal
Technical field
The present invention relates to field of computer technology, in particular to a kind of browser downloading task management method, device And user terminal.
Background technology
The file that user can utilize browser to download needs is downloaded.In the prior art, when browser download is more During a downloading task, the download of multiple downloading task is carried out at the same time.Also, (such as turned when there is new download request by pause It is changed to the download request of download) when, new download asks corresponding downloading task directly to start to download, and seizes and downloads down The bandwidth of load task reduces so as to cause the speed of download of individual event downloading task, and each individual event downloading task is completed to download and be needed Download time that will be longer.
Invention content
In view of this, an embodiment of the present invention provides a kind of browser downloading task management method, device and user terminal, Request is downloaded according to downloading task quantity and the maximum relationship response for downloading number, makes the part in all downloading tasks of browser Downloading task can be downloaded preferentially, to solve the above problems.
To achieve these goals, the technical solution adopted by the present invention is as follows:
A kind of browser downloading task management method, the method includes:Receive downloading task processing request;Under described Load task processing request judges whether the downloading task quantity downloaded reaches maximum and download number to download request, it is described most Big number of downloading is the maximum quantity for allowing to be carried out at the same time the downloading task of download;When the downloading task quantity downloaded reaches institute Maximum download number is stated, makes described download that corresponding downloading task be asked to wait for downloads.
A kind of browser downloading task managing device, described device include:Request receiving module, for receiving downloading task Processing request;Respond module is downloaded, it is to download request to be asked when downloading task processing, for judging the download downloaded Whether task quantity, which reaches maximum, is downloaded number, and the maximum number of downloading is the maximum number for allowing to be carried out at the same time the downloading task of download Amount;First waits for module, number is downloaded when the downloading task quantity downloaded reaches the maximum, for asking described download Corresponding downloading task waits for downloads.
A kind of user terminal, the user terminal include memory and processor, and the memory is couple to the processing Device, the memory store instruction make the processor perform following operate when executed by the processor:It connects Receive downloading task processing request;When downloading task processing asks, to download request, to judge the downloading task number downloaded Whether amount, which reaches maximum, is downloaded number, and the maximum number of downloading is the maximum quantity for allowing to be carried out at the same time the downloading task of download;When The downloading task quantity downloaded reaches the maximum download number, and described download is made to ask under corresponding downloading task waiting It carries.
Browser downloading task management method provided in an embodiment of the present invention, device and user terminal are downloaded when receiving During request, whether the downloading task quantity for judging downloading reaches maximum download number, if reaching, which is asked to correspond to Downloading task wait for downloads so that part downloading task can be downloaded preferentially, all downloads request compared with the prior art It downloads simultaneously, improves the speed of download of download request preferentially downloaded.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without making creative work shall fall within the protection scope of the present invention.
Fig. 1 shows the block diagram for the user terminal that present pre-ferred embodiments provide;
Fig. 2 shows the flow charts for the browser downloading task management method that first embodiment of the invention provides;
Fig. 3 shows another part steps for the browser downloading task management method that first embodiment of the invention provides Flow chart;
Fig. 4 shows another part steps for the browser downloading task management method that first embodiment of the invention provides Flow chart;
Fig. 5 to Figure 15 shows the interface schematic diagram during downloading task management in part provided in an embodiment of the present invention;
Figure 16 shows the structure diagram for the browser downloading task managing device that second embodiment of the invention provides;
Figure 17 shows the stopping respond modules for the browser downloading task managing device that second embodiment of the invention provides Structure diagram.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be configured to arrange and design with a variety of different herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing Go out all other embodiments obtained under the premise of creative work, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need to that it is further defined and explained in subsequent attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
Fig. 1 shows a kind of structure diagram that can be applied to the user terminal in the embodiment of the present invention.As shown in Figure 1, with Family terminal 100 includes memory 102, storage control 104, one or more (one is only shown in figure) processors 106, peripheral hardware Interface 108, radio-frequency module 110, audio-frequency module 112, display unit 114 etc..These components by one or more communication bus/ Signal wire 116 mutually communicates.
Memory 102 can be used for storage software program and module, such as the browser downloading task in the embodiment of the present invention Management method and the corresponding program instruction/module of device, processor 106 are stored in the software journey in memory 102 by operation Sequence and module, so as to perform various functions application and data processing, such as browser provided in an embodiment of the present invention, which is downloaded, appoints Business management method.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.Processor 106 and other possible components are to storage The access of device 102 can carry out under the control of storage control 104.
Various input/output devices are coupled to processor 106 and memory 102 by Peripheral Interface 108.In some implementations In example, Peripheral Interface 108, processor 106 and storage control 104 can be realized in one single chip.In some other reality In example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.
Audio-frequency module 112 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display unit 114 provides a display interface between user terminal 100 and user.Specifically, display unit 114 Video output is shown to user, and the content of these videos output may include word, figure, video and its arbitrary combination.
It is appreciated that structure shown in FIG. 1 is only to illustrate, user terminal 100 may also include it is more than shown in Fig. 1 or Less component or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 may be used hardware, software or its Combination is realized.
In the embodiment of the present invention, user terminal 100 can be PC (personal computer, PC), tablet Computer, smart mobile phone, mobile unit, wearable device etc..Also, client is installed in user terminal 100, which is clear Look at device, user terminal 100 can be downloaded the download of task by the browser, and can be by display unit to downloading Task is shown.
Browser shows the downloading task of all different conditions by display unit 114, in the present embodiment, under The state of load task can include download state, wait state and halted state.Download state is that the browser passes through Network from the ground such as server or high in the clouds by the corresponding resource downloading of downloading task to install the browser user terminal;Wait for shape State is being waited in line to download for downloading task;Halted state is that downloading task is not downloaded temporarily, and only downloading task is touched During hair, such as when user triggers the download button for downloading the downloading task, which just enters download state or waits Treat state.Browser downloading task management method provided in this embodiment and device is described in detail to various shapes in following embodiment The management of the downloading task of state.
First embodiment
The flow chart of browser downloading task management method provided in an embodiment of the present invention as shown in Figure 2.Refer to figure 2, this method includes:
Step S110:Receive downloading task processing request.
Browser receives downloading task processing request, and each corresponding downloading task of downloading task processing request is used for Request does corresponding processing to the corresponding downloading task.Downloading task processing request can include downloading request, download and stop Only request or other.
Step S120:When downloading task processing asks, to download request, to judge the downloading task quantity downloaded Whether reach maximum and download number, if so, performing step S121, if it is not, performing step S122, it is same to allow that the maximum downloads number When the maximum quantity of downloading task that is downloaded.
In the present embodiment, downloading task processing request can download request.Download request is appointed for requirement to downloading The request that business is downloaded, can be one or more of:User re-downloads to what the downloading task of failed download triggered Download request, the downloading task of user's triggering, which is downloaded the download downloaded being switched to by pause, asks, and user creates down Download request of load task etc..
In the present embodiment, the specific triggering mode for downloading request is not intended as limiting, and request downloading task starts to download Request can be used as download request.
When the downloading task processing request received is downloads request, pass through the downloading task quantity for judging downloading Whether reach maximum number of downloading and determine the response mode asked the download.The maximum is downloaded number and is set according to actual needs by user Determine and store.
First, browser determines the quantity of downloading task currently downloaded.
Specifically, in the present embodiment, the downloading task of different conditions can be done to different labels.For example, for just Downloading task in downloading process stamps the download label for representing that the downloading task is being downloaded.Then, browser according to work as The preceding number for downloading label can know the quantity for the downloading task downloaded.
Certainly, browser can also determine the quantity of downloading task downloaded by other means, for example, foundation pair The different lists of the downloading task of different conditions is answered, corresponding to the downloading task downloaded, establishes download list, download list In only include all downloading tasks downloaded.Then, the downloading task quantity in download list, can obtain The quantity of the downloading task of download.
The downloading task quantity downloaded and current maximum number of downloading are compared, if the download downloaded is appointed Quantity of being engaged in is less than maximum download number, then judges that the downloading task quantity downloaded is not up to maximum and download number.If it is downloading Downloading task quantity be equal to or more than it is maximum download number, then the downloading task quantity for judging downloading reaches maximum download Number.
Step S121:Make described download that corresponding downloading task be asked to wait for downloads.
Since maximum number of downloading is the maximum quantity that allows to be carried out at the same time the downloading task of download, therefore ought download down Load task quantity reaches maximum and downloads number, downloads and asks corresponding downloading task without downloading.Make download request pair at this time The downloading task answered enters wait state to wait for downloads.
In the present embodiment, can by enter wait state downloading task stamp corresponding wait state etc. it is to be marked, To show that it, as the downloading task being waited for, conveniently recognizes it.It is of course also possible to waiting list is established, it will The downloading task to wait for downloads is placed in waiting list, and the downloading task to wait for downloads is searched with facilitating.
Step S122:It downloads described download and asks corresponding downloading task.
Number is downloaded when the downloading task quantity downloaded is less than the maximum, shows the downloading task downloaded at this time Quantity not up to allows to be carried out at the same time the maximum quantity of the downloading task of download.Then, at this point, asking corresponding download to downloading Task is downloaded.
Further, corresponding downloading task is asked to be stored with download parameters if downloading, such as downloads offset, download path Deng being downloaded according to its download parameters.It is downloaded for example, certain downloading task is downloaded for user's triggering by pause being switched to Downloading task, part had been carried out when which is suspended and had been downloaded, and had been stored when suspending the downloading task The download path of the downloading task downloads the download parameters such as offset, then inclined from the download when being downloaded to the downloading task The corresponding position of shifting amount starts to download, and downloads it to the corresponding storage location of stored download path.
Step S130:When downloading task processing is asked to download stopping request, according to whether in the presence of waiting for down Described download of downloading task response of load stops request.
Download and stop request and by downloading task be converted to the request that no longer download triggers by downloading, can including with Under it is one or more:The download that triggering is completed by the downloading task downloaded stops request, i.e., when a downloading task is downloaded It completes, judgement triggering, which is downloaded, stops request;Request is stopped by the download of downloading task pause triggering downloaded, that is, works as reception When suspending the control command downloaded to a downloading task downloaded, stopping request being downloaded in judgement triggering;By cancelling The download of the downloading task triggering of download stops request, i.e., when receiving downloading task and being cancelled the control command of download, sentences Fixed triggering, which is downloaded, stops request;The download triggered by the downloading task failed download downloaded stops request, i.e., when certain is downloaded For task because downloading resource problem, downloading network problem or other problems failed download, judgement triggering, which is downloaded, stops request.
In the present embodiment, download stop request specific triggering mode be not intended as limiting, downloading task stop or Cancelling triggered request can be used as download to stop request.
It is to download to stop request being asked when downloading task processing, there is the downloading task stopping download downloading, can lead The downloading task quantity downloaded at this time is caused to be less than maximum download number.It, can if there is the downloading task to wait for downloads at this time To be downloaded to the downloading task to wait for downloads.Then, when downloading task processing request stops request to download, according to being It is no that the download is stopped asking to respond in the presence of the downloading task to wait for downloads.
Specifically, as shown in figure 3, step S130 can include:
Step S131:When downloading task processing asks, to download stopping request, to judge whether to wait for down The downloading task of load.
When with label the downloading task of different conditions is distinguished, then can by searching in all downloading tasks whether In the presence of labeled as etc. downloading task to be marked, if in the presence of showing there is the downloading task that waits for downloads.
Step S132:When the downloading task that presence is waiting for downloads, according to the downloading task to wait for downloads Pre-set priority, download described in the downloading task that is waiting for downloads highest priority downloading task.
When there is the downloading task that is waiting for downloads, the downloading task in the downloading task that waits for downloads is carried out down It carries.
Preferably, download is the task of highest priority in the task of waiting for downloads.The priority of downloading task is according to pre- Setting priority determines that the pre-set priority can be the priority determined according to preset rules.When the preset rules can include Between it is one or more in rule, file type rule, file size rule etc..
For time rule, Ke Yishi when multiple downloading tasks are waiting for, then wherein enters under wait state at first Task priority highest is carried, the priority of second downloading task for entering wait state enters wait state less than first The priority of downloading task, higher than the priority of other downloading tasks, and so on, downloading task enters the time of wait state More late, priority is lower.It is of course also possible on the contrary, i.e. downloading task enter wait state time it is more late, priority is got over Height, specifically by can according to actual needs be determined with user.
Can be, different types of file to download priority difference for file type rule, e.g., text file is preferential Grade highest, audio file priority secondly, video file priority it is most low.It can determine different texts as needed by user The priority of type.
For file size rule, Ke Yishi, different size of file, priority difference.Such as, minimum file, it is excellent First grade highest, file is bigger, and priority is lower, and priority is minimum for maximum file.It is of course also possible on the contrary, i.e. file Bigger, priority is higher, has and can according to actual needs be determined by user.
Certainly, the method for determination of priority is not intended as the restriction of the embodiment of the present invention, can also include other, specific root It is set according to actual needs.
It should be understood that the number of the downloading task for the highest priority downloaded is the downloading task quantity downloaded With the maximum difference for downloading number.It is common, when stopping downloading there are one downloading task, just stop asking to respond to downloading, The number of the downloading task for the highest priority then downloaded is 1.
Further, if the downloading task being downloaded is stored with download parameters, such as downloads offset, download path, Continue to download according to its download parameters.
Certainly, it if there is no the downloading task to wait for downloads, when receiving download stopping request, can not do Other responses, keep the downloading task currently downloaded to continue to download, and the downloading task that current hang is downloaded continues to suspend.
Further, it changing if downloading number due to maximum, the number of downloads that can be carried out at the same time download changes, Then, in the present embodiment, the monitoring to the maximum variation for downloading number is further included, to determine the need for downloading down Load task quantity is adjusted correspondingly, so that the downloading task quantity downloaded downloads number no more than maximum.It is appreciated that , the monitoring of the maximum variation for downloading number is constantly in progress.Specifically, as shown in figure 4, including:
Step S140:Monitor whether maximum download number changes.
User can download number to maximum and be modified setting, and a kind of specific changing mode can be, display unit to User provides multiple alternative maximums and downloads numbers, the maximum download number that user's selection is wanted.Certainly, it is maximum to download setting for number Put change setting method be not intended to limit in embodiments of the present invention or user directly input it is new it is maximum download number or Other set-up modes.
It in the present embodiment, can be to the maximum high in the clouds storage downloaded number and be stored in server.Also, user can be with Account number login is carried out to browser, then when different, different user terminals are when logging in the account number of the browser, can be by mutual The maximum download number that the synchronous account of networking is correspondingly arranged.
It is modified when user downloads number to the maximum of browser, then listens to maximum number of downloading and change.
Step S141:Number is downloaded when maximum to change, under the downloading task quantity downloaded and new maximum Carry number.
In this step, it is the maximum download number after changing which, which downloads number,
Step S142:Number is downloaded when the downloading task quantity downloaded is more than new maximum, makes the download downloaded The minimum downloading task of priority waits for downloads in task, and the number of the minimum downloading task of the priority is, when maximum is downloaded The downloading task quantity that number is being downloaded when changing and the new maximum difference for downloading number.
When maximum, which downloads number, to change, the downloading task quantity downloaded downloads number more than new maximum, then just Being had exceeded in the downloading task quantity of download allows the quantity for the downloading task for being carried out at the same time download, makes the download of quantity exceeded Task enters wait state and waits for downloads.
For example, maximum number of downloading becomes 2 from 6, the downloading task downloaded at this time is 5, is had exceeded under new maximum Number 2 is carried, then wherein 3 downloading tasks downloaded is made to enter wait state and are waited for downloads, to meet the download downloaded Task downloads number 2 no more than maximum.
In the present embodiment, in multiple downloading tasks downloaded into wait state downloading task for priority most Low downloading task.Then it is preferential when the downloading task for entering the state that waits for downloads by the download state downloaded is multiple The minimum multiple downloading tasks of grade.The minimum downloading task of the priority can be, in multiple downloading tasks downloaded, most Enter the downloading task of download state afterwards.Certainly, the specifically determining method of priority can also be other, such as can be most advanced Enter downloading task of download state etc., be not intended as limiting in the present embodiment.
Step S143:When the downloading task quantity downloaded is less than new maximum download number, download waits for down The downloading task of highest priority in load task, the number of the downloading task of the highest priority are, when maximum downloads number The downloading task quantity downloaded during variation and the new maximum difference for downloading number.
In this step, it downloads number when maximum to change, and the downloading task quantity downloaded is less than new maximum When downloading number, the downloading task to wait for downloads is judged whether.If in the presence of, the downloading task to wait for downloads is downloaded, Also, quantity is, maximum downloads the downloading task quantity downloaded when number the changes value smaller than new maximum download number.
For example, maximum number of downloading becomes 6 from 4, the downloading task downloaded at this time is 4, is downloaded less than new maximum Number 6 then makes 2 in the downloading task to wait for downloads to start to download, and reaches new maximum download number 6.
Further, in this step, download is the downloading task of highest priority in the downloading task waited for, When it is maximum download the downloading task quantity downloaded when number changes with it is new it is maximum download number difference be it is multiple, then under Load is multiple downloading tasks of highest priority in the downloading task waited for.
It will of course be understood that, if under maximum downloading task number when downloading number and changing, to wait for downloads is less than The downloading task quantity of load and the new maximum difference for downloading number, then make all downloading task numbers to wait for downloads start to download, At this point, the quantity for the downloading task downloaded downloads number still less than maximum.
In the present embodiment, browser control display unit shows the state in which of all downloading tasks, and And the state with downloading task updates every time, and the display of display unit is updated, allows a user to know each download Task download state.When being downloaded using browser downloading task management method provided in an embodiment of the present invention to file, Corresponding different operation, the display of display unit can be shown in Fig. 5 to Figure 15, but it is understood that, the application's is specific Embodiment is not limited with the display format of display unit.
When needing to carry out file download using the browser, user opens browser, does not carry out task download at this time The download of task, download management interface can be as shown in figure 5, the maximum number of downloading of setting is 3.
User selects the file A to be downloaded, and clicks and downloads, and has created a downloading task at this time.When browser receives When the download request of trigger for download is clicked to user, since the downloading task quantity currently downloaded is 0, downloaded less than maximum Number 3 is downloaded this document A, and download management interface can be as shown in Figure 6.
As Fig. 7 is shown when user clicks the download of file A, file B and tri- files of file C and 3 texts Part not yet downloads download management interface during completion, each file is a downloading task.Click file D's again at this time Download button, since the quantity of downloading task has reached maximum download number 3, then this document D enters wait state and waits for downloads, this When download administration interface can be as shown in Figure 8.
It under the corresponding processing states of Fig. 8, is completed if file B therein is downloaded, triggering, which is downloaded, stops request, at this time The download file of download is file A, file C, totally 2, number 3 is downloaded less than maximum, and there is the download waited at this time and appoint Be engaged in file D, file D is downloaded, download management interface can be as shown in Figure 9.
Under the corresponding processing states of Fig. 8, if clicking pause button to file B, as shown in Figure 10, the download of file B is temporary Stop, triggering, which is downloaded, stops request.The download file downloaded at this time is file A, file C, and totally 2, number is downloaded less than maximum 3, and there is the downloading task file D waited at this time, file D is downloaded, download management interface can be such as Figure 11 It is shown.
Under the corresponding processing states of Figure 11, if clicking start button to file B, even if file B downloads switching by pause To start to download, request is downloaded in triggering.The file downloaded at this time is file A, file C and file D totally 3, is reached most Big to download number, file B waits for downloads into the state of waiting for downloads, as shown in figure 12.
Under the corresponding processing states of Figure 12, it is 1 to change maximum number of downloading.As Figure 13 show by display unit to Family provides multiple alternative maximums and downloads numbers, the new maximum download number 1 of user's selection.Number setting is downloaded when maximum to be changed to When 1, the file currently downloaded is file A, file C and file D totally 3, and number 1 is downloaded more than maximum, then make file A, Two of which file waits for downloads in file C and file D.For example, to finally enter the file C of download state and file D The minimum downloading task of grade as priority then makes file C and file D wait for downloads, and file A continues to download, as shown in figure 14.
Under the corresponding processing states of Figure 12, it is 4 to change maximum number of downloading.When maximum, which downloads number setting, is changed to 4, when The preceding file downloaded is file A, file C and file D totally 3, and number 4 is downloaded, and there is currently under waiting less than maximum The file B of load, then make file B start to download, as shown in figure 15.
Certainly, Fig. 5 to Figure 15 is only the part display example to the management process of downloading task, can also include it He, details are not described herein again.In addition, Fig. 5 is merely exemplary to display mode shown in figure 15, it is not intended as the embodiment of the present invention In the limitation for being particularly shown mode to downloading task status.
Second embodiment
A kind of browser downloading task managing device 200 is present embodiments provided, as shown in figure 16, which includes: Request receiving module 210, for receiving downloading task processing request.Respond module 220 is downloaded, when downloading task processing please It asks to download request, number, the maximum download number is downloaded for judging whether the downloading task quantity downloaded reaches maximum Maximum quantity for the downloading task for allowing to be carried out at the same time download.First waits for module 230, when the downloading task number downloaded Amount reaches the maximum download number, for making described download that corresponding downloading task be asked to wait for downloads.
In addition, as shown in figure 16, in the device 200, download module 240 is further included, for the download that ought be being downloaded Task quantity is less than the maximum download number, downloads described download and asks corresponding downloading task.
Specifically, request receiving module 210 receive download request can be failed download downloading task again Download request, downloaded by pause it is one or more in the download request downloaded being switched to, the newly-built download request downloaded.
Further, in the present embodiment, which can also include stopping respond module 250, as shown in figure 16. Stop respond module 250 to be used to stop request to download when downloading task processing request, according to whether in the presence of waiting for Described download of downloading task response of download stops request.
The download that request receiving module 210 receives stops request and includes:Triggering is completed by the downloading task downloaded Download stop request, request stopped by the download of downloading task pause triggering downloaded, is downloaded down by cancelling The download of load task triggering stops request and the download of the triggering of the downloading task failed download by downloading stops request, In it is one or more.
To stop asking to respond to downloading, stopping respond module 250 can include:Judging unit 251, for judging With the presence or absence of the downloading task to wait for downloads;Download unit 252, for working as the downloading task for existing and waiting for downloads, It is excellent in the downloading task to wait for downloads described in download according to the pre-set priority of the downloading task to wait for downloads The first highest downloading task of grade, as shown in figure 17.
Further, the number of the downloading task for the highest priority that download unit 252 is downloaded is the download downloaded Task quantity and the maximum difference for downloading number.
Since maximum is downloaded, number is different, while the quantity for the downloading task downloaded is different, then, in the present embodiment, clear Device downloading task managing device 200 of looking at can also include the monitoring to the maximum variation for downloading number.Specifically, as shown in figure 16, The device 200 can include:Module 260 is monitored, for monitoring whether maximum download number changes;Comparison module 270, is used for Number is downloaded when maximum to change, the downloading task quantity downloaded downloads number with new maximum;Second waits for module 280, the downloading task quantity for that ought download is more than new maximum download number, makes preferential in the downloading task downloaded The minimum downloading task of grade waits for downloads, and the number of the minimum downloading task of the priority is that downloading number when maximum changes When the downloading task quantity the downloaded and new maximum difference for downloading number;Download module 240 is additionally operable to what ought be downloaded Downloading task quantity is less than the new maximum downloading task downloaded number, download highest priority in the downloading task waited for, The number of the downloading task of the highest priority is, when it is maximum download the downloading task quantity downloaded when number changes with The new maximum difference for downloading number.
Certainly, the present embodiment can also include display control module, for control display unit 114 to all downloading tasks State in which is shown.
In conclusion browser downloading task management method provided in an embodiment of the present invention, device and user terminal, when connecing When receiving download request, if the downloading task quantity downloaded, which reaches maximum, downloads number, by download request it is corresponding under Load task waits for downloads, if the downloading task quantity downloaded is not up to maximum download number, just the download is asked corresponding Downloading task is downloaded.Also, it downloads number when maximum to change, according to the maximum download downloaded and downloaded during number variation Task quantity is responded with the new maximum relationship for downloading number.The browser downloading task management method, device and user are whole End makes the downloading task quantity for being carried out at the same time download be no more than maximum download number, and guarantee section downloading task can be downloaded preferentially, phase Than asking corresponding downloading task in directly downloading new download, it is ensured that part downloading task, which has, higher downloads speed Degree.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment. For device class embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to implement holding for defined logic function Row instruction.It should also be noted that at some as in the realization method replaced, the function that is marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depended on the functions involved.It is it is also noted that every in block diagram and/or flow chart The combination of a box and the box in block diagram and/or flow chart can use function or the dedicated base of action as defined in performing It realizes or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is independent product sale or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention. And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.It needs Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities The relationship or sequence on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the packet of nonexcludability Contain so that process, method, article or equipment including a series of elements not only include those elements, but also including It other elements that are not explicitly listed or further includes as elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, also there are other identical elements in article or equipment.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exists Similar terms are represented in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention described should be subject to the protection scope in claims.

Claims (14)

1. a kind of browser downloading task management method, which is characterized in that the method includes:
Receive downloading task processing request;
When downloading task processing request is downloads request, whether the downloading task quantity for judging downloading reaches under maximum Number is carried, the maximum number of downloading is the maximum quantity for allowing to be carried out at the same time the downloading task of download;
Number is downloaded when the downloading task quantity downloaded reaches the maximum, described download is made to ask corresponding downloading task etc. It is to be downloaded.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Number is downloaded when the downloading task quantity downloaded is less than the maximum, the corresponding download of the download request is downloaded and appoints Business.
3. according to the method described in claim 1, it is characterized in that, described download asks to include one or more of:
The downloading task of failed download re-downloads request, the download request downloaded being switched to is downloaded by pause, is newly-built The download request of download.
4. according to the method described in claim 1, it is characterized in that, the method further includes:When downloading task processing please It asks and stops request to download, according to whether stopping request in the presence of described download of downloading task response to wait for downloads.
It is 5. according to the method described in claim 4, it is characterized in that, described according to whether appointing in the presence of the download to wait for downloads Described download of business response stops asking to include:
Judge whether the downloading task to wait for downloads;
When there is the downloading task that is waiting for downloads, according to the pre-set priority of the downloading task to wait for downloads, The downloading task of highest priority in the downloading task to wait for downloads described in downloading.
6. according to the method described in claim 5, it is characterized in that,
The pre-set priority according to the downloading task to wait for downloads, download described in the download that is waiting for downloads In task the step of the downloading task of highest priority in, the number of the downloading task of the highest priority of download is, under The downloading task quantity of load and the maximum difference for downloading number.
7. according to the method described in claim 4, it is characterized in that, described download stops asking to include one or more of:
Request is stopped by the download of downloading task completion triggering downloaded, triggering is suspended by the downloading task downloaded It downloads the download for stopping asking, triggered by cancelling the downloading task downloaded and stops request and a download by downloading times The download of business failed download triggering stops request.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
Monitor whether maximum download number changes;
Number is downloaded when maximum to change, the downloading task quantity downloaded downloads number with new maximum;
When the downloading task quantity downloaded be more than it is new it is maximum download number, make in the downloading task downloaded priority most Low downloading task waits for downloads, and the number of the minimum downloading task of the priority is, when maximum is downloaded when number changes just Downloading task quantity and the new maximum difference for downloading number in download;
Number is downloaded when the downloading task quantity downloaded is less than new maximum, downloads priority in the downloading task waited for Highest downloading task, the number of the downloading task of the highest priority are to download when number changes and downloading when maximum Downloading task quantity and the new maximum difference for downloading number.
9. according to the method described in claim 1, it is characterized in that, the method further includes:
Control display unit shows all downloading task state in which.
10. a kind of browser downloading task managing device, which is characterized in that described device includes:
Request receiving module, for receiving downloading task processing request;
Respond module is downloaded, it is to download request to be asked when downloading task processing, for judging the downloading task downloaded Whether quantity, which reaches maximum, is downloaded number, and the maximum number of downloading is the maximum quantity for allowing to be carried out at the same time the downloading task of download;
First waits for module, number is downloaded when the downloading task quantity downloaded reaches the maximum, for making the download please Corresponding downloading task is asked to wait for downloads.
11. device according to claim 10, which is characterized in that described device further includes:Stop respond module, for working as The downloading task processing request stops request to download, according to whether in the presence of described in the downloading task response to wait for downloads It downloads and stops request.
12. according to the devices described in claim 11, which is characterized in that the stopping respond module including:
Judging unit, for judging whether the downloading task to wait for downloads;
Download unit, for working as the downloading task for existing and waiting for downloads, according to the downloading task to wait for downloads Pre-set priority, download described in the downloading task that is waiting for downloads highest priority downloading task.
13. device according to claim 10, which is characterized in that described device further includes:
Module is monitored, for monitoring whether maximum download number changes;
Comparison module, for changing when maximum number of downloading, under the downloading task quantity downloaded and new maximum Carry number;
Second waits for module, and the downloading task quantity for that ought download is more than new maximum download number, makes what is downloaded The minimum downloading task of priority waits for downloads in downloading task, and the number of the minimum downloading task of the priority is to work as maximum Download the downloading task quantity downloaded when number changes and the new maximum difference for downloading number;
Download module, the downloading task quantity for that ought download are less than new maximum download number, and download waits for down The downloading task of highest priority in load task, the number of the downloading task of the highest priority are, when maximum downloads number The downloading task quantity downloaded during variation and the new maximum difference for downloading number.
14. a kind of user terminal, which is characterized in that the user terminal includes memory and processor, the memory coupling To the processor, the memory store instruction when executed by the processor performs the processor It operates below:
Receive downloading task processing request;
When downloading task processing request is downloads request, whether the downloading task quantity for judging downloading reaches under maximum Number is carried, the maximum number of downloading is the maximum quantity for allowing to be carried out at the same time the downloading task of download;
Number is downloaded when the downloading task quantity downloaded reaches the maximum, described download is made to ask corresponding downloading task etc. It is to be downloaded.
CN201611187637.1A 2016-12-20 2016-12-20 Browser downloading task management method, device and user terminal Pending CN108206854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611187637.1A CN108206854A (en) 2016-12-20 2016-12-20 Browser downloading task management method, device and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611187637.1A CN108206854A (en) 2016-12-20 2016-12-20 Browser downloading task management method, device and user terminal

Publications (1)

Publication Number Publication Date
CN108206854A true CN108206854A (en) 2018-06-26

Family

ID=62604286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611187637.1A Pending CN108206854A (en) 2016-12-20 2016-12-20 Browser downloading task management method, device and user terminal

Country Status (1)

Country Link
CN (1) CN108206854A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446033A (en) * 2018-09-30 2019-03-08 维沃移动通信有限公司 A kind of display methods and device of download progress
CN110300189A (en) * 2019-07-25 2019-10-01 北京达佳互联信息技术有限公司 A kind of resource downloading method, device and electronic equipment
CN110401691A (en) * 2019-05-09 2019-11-01 腾讯科技(深圳)有限公司 A kind of resource downloading control method, device and terminal
CN111176797A (en) * 2019-12-18 2020-05-19 北京百度网讯科技有限公司 Data concurrency processing method and device, electronic equipment and readable storage medium
CN111262797A (en) * 2020-01-09 2020-06-09 深圳壹账通智能科技有限公司 File downloading method and related product
CN112204522A (en) * 2019-09-25 2021-01-08 深圳市大疆创新科技有限公司 File downloading control method, terminal, system, movable platform and storage medium
WO2022147332A1 (en) * 2020-12-30 2022-07-07 Synchronoss Technologies, Inc. Method and apparatus for maximizing a number of connections that can be executed from a mobile application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383751A (en) * 2008-07-24 2009-03-11 四川长虹电器股份有限公司 Network downloading method
CN101702743A (en) * 2009-11-04 2010-05-05 中兴通讯股份有限公司 Self-adaption adjustment method of mobile terminal browser and device thereof
CN102158853A (en) * 2011-05-23 2011-08-17 广州市动景计算机科技有限公司 Method and device for managing download of mobile communication equipment terminal browser
US20140365665A1 (en) * 2010-07-26 2014-12-11 Seven Networks, Inc. Distributed implementation of dynamic wireless traffic policy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383751A (en) * 2008-07-24 2009-03-11 四川长虹电器股份有限公司 Network downloading method
CN101702743A (en) * 2009-11-04 2010-05-05 中兴通讯股份有限公司 Self-adaption adjustment method of mobile terminal browser and device thereof
US20140365665A1 (en) * 2010-07-26 2014-12-11 Seven Networks, Inc. Distributed implementation of dynamic wireless traffic policy
CN102158853A (en) * 2011-05-23 2011-08-17 广州市动景计算机科技有限公司 Method and device for managing download of mobile communication equipment terminal browser

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446033A (en) * 2018-09-30 2019-03-08 维沃移动通信有限公司 A kind of display methods and device of download progress
CN109446033B (en) * 2018-09-30 2022-06-14 维沃移动通信有限公司 Method and device for displaying downloading progress
CN110401691A (en) * 2019-05-09 2019-11-01 腾讯科技(深圳)有限公司 A kind of resource downloading control method, device and terminal
CN110401691B (en) * 2019-05-09 2021-11-16 腾讯科技(深圳)有限公司 Resource downloading control method, device and terminal
CN110300189A (en) * 2019-07-25 2019-10-01 北京达佳互联信息技术有限公司 A kind of resource downloading method, device and electronic equipment
CN112204522A (en) * 2019-09-25 2021-01-08 深圳市大疆创新科技有限公司 File downloading control method, terminal, system, movable platform and storage medium
WO2021056259A1 (en) * 2019-09-25 2021-04-01 深圳市大疆创新科技有限公司 File download control method, terminal, system, movable platform, and storage medium
CN111176797A (en) * 2019-12-18 2020-05-19 北京百度网讯科技有限公司 Data concurrency processing method and device, electronic equipment and readable storage medium
CN111176797B (en) * 2019-12-18 2023-10-27 北京百度网讯科技有限公司 Data concurrency processing method and device, electronic equipment and readable storage medium
CN111262797A (en) * 2020-01-09 2020-06-09 深圳壹账通智能科技有限公司 File downloading method and related product
WO2022147332A1 (en) * 2020-12-30 2022-07-07 Synchronoss Technologies, Inc. Method and apparatus for maximizing a number of connections that can be executed from a mobile application
US11432303B2 (en) 2020-12-30 2022-08-30 Synchronoss Technologies, Inc Method and apparatus for maximizing a number of connections that can be executed from a mobile application

Similar Documents

Publication Publication Date Title
CN108206854A (en) Browser downloading task management method, device and user terminal
EP2682863B1 (en) Installing applications remotely
KR101737246B1 (en) Index configuration for searchable data in network
EP3605323A1 (en) Method for generating network slice template and for applying network slice template, and apparatus
CN105808725B (en) A kind for the treatment of method and apparatus of application message
US20150365480A1 (en) Methods and systems for communicating with electronic devices
US20160224586A1 (en) System and methods thereof for dynamically updating the contents of a folder on a device
US10735281B1 (en) Application focused provisioning system
CN111046164B (en) Method and equipment for updating book to be read
CN104823163A (en) Metadata-based virtual machine configuration
CN109634718A (en) The method and system of cloud platform creation mirror image
CN110032451A (en) Distributed multilingual message realization method, device and server
CN103841255A (en) Mobile terminal and mobile terminal data access method
CN104090899A (en) Method and device for feeding back display content information
CN107436831A (en) Monitoring method and device for client server system
CN110795180A (en) Two-dimensional code management method and system, electronic device and storage medium
US20150187186A1 (en) Wifi Landing Page for Remote Control of Digital Signs
CN108563668A (en) The method, apparatus and terminal device of the Hybrid page jump H5 pages
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
CN111142799A (en) Distributed storage method and device, network node and storage medium
CN108874808A (en) A kind of page elements interlock method, device and server
WO2015070559A1 (en) Pushing method and device for application program
CN112243033B (en) Method, device and equipment for acquiring memory information and computer readable storage medium
CN109981553A (en) Access control method and its system, computer system and readable storage medium storing program for executing
CN110275785A (en) Data processing method, device, client and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200622

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510000 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower

Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180626