CN105227678A - The queuing strategy of off line downloading task - Google Patents
The queuing strategy of off line downloading task Download PDFInfo
- Publication number
- CN105227678A CN105227678A CN201510684273.7A CN201510684273A CN105227678A CN 105227678 A CN105227678 A CN 105227678A CN 201510684273 A CN201510684273 A CN 201510684273A CN 105227678 A CN105227678 A CN 105227678A
- Authority
- CN
- China
- Prior art keywords
- task
- download
- downloading task
- queue
- waiting list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention discloses a kind of queuing strategy of off line downloading task, first by activity be 0 off line downloading task from download queue be transferred to newly-increased waiting list, leave download queue for off line downloading task that activity is not 0, decrease the stand-by period of enlivening downloading task on the one hand, be convenient to improve speed of download; On the other hand, contribute to carrying out standardized administration to inactive downloading task, be convenient to user and grasp cannot downloading for a long time of task in real time; Secondly, after the task in queue of downloading completes download, automatically the task in newly-increased waiting list can be moved into download queue again, if its activity from inactive become active, then download be can complete as early as possible, download success rate and download efficiency that off line downloads waiting list greatly improved.
Description
Technical field
The present invention relates to router off line download file technical field, particularly relate to a kind of queuing strategy of off line downloading task.
Background technology
At present, a lot of router vendors all supports the function that off line is downloaded, but for different router hardware versions, the task number that the type of each model can wait for downloads at most also can be different, cannot link up with tracker server appears in such as bt task, then can there is no flow for a long time, cause this task can take general assignment number always.
Way general is at present, or does not carry out the inspection of activity, or check result is presented in front end page simply after the inspection just carrying out activity, and task of being not 0 to activity is made and adjusted process accordingly.But, it is all generally batch importing task that off line is downloaded, may occur that the activity of a lot of downloading task has been 0 situation that can not get process in time, cause much taking downloading task sum for a long time without the task of flow, greatly reduce speed and the success rate of off line downloading task.
Summary of the invention
When the object of the invention is for solving current router off line downloading task, the activity that there will be a lot of downloading task has been 0 can not get timely process, cause much taking downloading task sum for a long time without the task of flow, greatly reduce the technical problem of off line downloading task speed and success rate.
In order to solve the problems of the technologies described above, the invention provides a kind of queuing strategy of off line downloading task, comprising the steps:
(1) the described off line downloading task downloaded in queue is started;
(2) detect the activity of off line downloading task described in described download queue, if described activity is 0, then continue next step; If described activity is not 0, then forward step (4) to;
(3) sluggish task list is upgraded; Forward step (5) to;
(4) continue to remain in described download queue to maintain and download;
(5) if the inactive mission duration in described sluggish task list reaches user's setting-up time, then next step is continued; If the inactive mission duration in described sluggish task list does not reach user's setting-up time, then go to step (2);
(6) described inactive task is moved to newly-increased waiting list.
Further, after the task in described download queue completes download, described step (6) also comprises step (7) below: if there is the downloading task come from described download queue transfer in described newly-increased waiting list, then described downloading task is preferentially added into described download queue from described newly-increased waiting list; If not from the downloading task that described download queue transfer comes in described newly-increased waiting list, then the downloading task in original for system waiting list is added into described download queue.
Further, in described step (7), if the interpolation number of times described downloading task being preferentially added into from described newly-increased waiting list described download queue reaches the number of times of user's setting, then in described newly-increased waiting list, remaining downloading task is added into not processing queue.
Further, in described step (7), if the interpolation number of times described downloading task being preferentially added into from described newly-increased waiting list described download queue does not reach the number of times of user's setting, then repeating said steps (7).
Further, the number of times of described user's setting is 5 times-10 times.
Further, described in step (5), user's setting-up time is 0.5 hour-1 hour.
The present invention first by activity be 0 off line downloading task be transferred to newly-increased waiting list from download queue, leave download queue for off line downloading task that activity is not 0, on the one hand decrease the stand-by period of enlivening downloading task, be convenient to improve speed of download; On the other hand, contribute to carrying out standardized administration to inactive downloading task, be convenient to user and grasp cannot downloading for a long time of task in real time; Secondly, after the task in queue of downloading completes download, automatically the task in newly-increased waiting list can be moved into download queue again, if its activity from inactive become active, then download be can complete as early as possible, download success rate and download efficiency that off line downloads waiting list greatly improved.
Accompanying drawing explanation
Fig. 1 to be activity be 0 task detect and transfer flow figure;
Fig. 2 is after task has been downloaded, and adds task to the flow chart downloading queue from waiting list.
Embodiment
The present invention is further detailed explanation in conjunction with the accompanying drawings and embodiments now.These accompanying drawings are the schematic diagram of simplification, only basic structure of the present invention are described in a schematic way, and therefore it only shows the formation relevant with the present invention, and it should not be construed as limitation of the present invention.
Embodiment as illustrated in fig. 1 and 2, the queuing strategy of off line downloading task of the present invention, comprises the steps:
S100, start the off line downloading task downloaded in queue;
In S110, detection download queue, the activity of off line downloading task, if activity is 0, then continues next step; If activity is not 0, then forward step S116 to;
S115, upgrade sluggish task list; Forward step S120 to;
S116, continue to remain on to download in queue to maintain and download;
If the inactive mission duration in the sluggish task list of S120 reaches user's setting-up time, then continue next step; If the inactive mission duration in sluggish task list does not reach user's setting-up time, then go to step S110; Preferably, user's setting-up time is 0.5 hour-1 hour;
S130, inactive task is moved to newly-increased waiting list A.
Preferably, after the task in queue of downloading completes download, after step S130, also step is comprised:
Whether having from downloading the next downloading task of queue transfer in the waiting list A that S140, judgement increase newly, if having, then proceeding to step S145; If no, then go to step S146;
S145, downloading task is preferentially added into download queue from newly-increased waiting list A;
S146, the downloading task in original for system waiting list B is added into download queue.
Preferably, also step is comprised after step S145:
S150, judge that downloading task is preferentially added into the number of times whether the interpolation number of times downloading queue reaches user's setting from newly-increased waiting list A, preferably, the number of times of user's setting is 5 times-10 times, if reach, then proceeds to step S155; If do not reach, then go to step S140;
In S155, newly-increased waiting list A, remaining downloading task is added into not processing queue.
With above-mentioned according to desirable embodiment of the present invention for enlightenment, by above-mentioned description, relevant staff in the scope not departing from this invention technological thought, can carry out various change and amendment completely.The technical scope of this invention is not limited to the content on specification, must determine its technical scope according to right.
Claims (6)
1. the queuing strategy of off line downloading task, is characterized in that, comprises the steps:
(1) the described off line downloading task downloaded in queue is started;
(2) detect the activity of off line downloading task described in described download queue, if described activity is 0, then continue next step; If described activity is not 0, then forward step (4) to;
(3) sluggish task list is upgraded; Forward step (5) to;
(4) continue to remain in described download queue to maintain and download;
(5) if the inactive mission duration in described sluggish task list reaches user's setting-up time, then next step is continued; If the inactive mission duration in described sluggish task list does not reach user's setting-up time, then go to step (2);
(6) described inactive task is moved to newly-increased waiting list.
2. method according to claim 1, it is characterized in that, after the task in described download queue completes download, described step (6) also comprises step (7) below: if there is the downloading task come from described download queue transfer in described newly-increased waiting list, then described downloading task is preferentially added into described download queue from described newly-increased waiting list; If not from the downloading task that described download queue transfer comes in described newly-increased waiting list, then the downloading task in original for system waiting list is added into described download queue.
3. method according to claim 2, it is characterized in that, in described step (7), if the interpolation number of times described downloading task being preferentially added into from described newly-increased waiting list described download queue reaches the number of times of user's setting, then in described newly-increased waiting list, remaining downloading task is added into not processing queue.
4. method according to claim 3, it is characterized in that, in described step (7), if the interpolation number of times described downloading task being preferentially added into from described newly-increased waiting list described download queue does not reach the number of times of user's setting, then repeating said steps (7).
5. the method according to claim 3 or 4, is characterized in that, the number of times of described user's setting is 5 times-10 times.
6. method according to claim 1, is characterized in that, described in step (5), user's setting-up time is 0.5 hour-1 hour.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510684273.7A CN105227678B (en) | 2015-10-20 | 2015-10-20 | The queuing strategy of off line downloading task |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510684273.7A CN105227678B (en) | 2015-10-20 | 2015-10-20 | The queuing strategy of off line downloading task |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105227678A true CN105227678A (en) | 2016-01-06 |
CN105227678B CN105227678B (en) | 2018-06-19 |
Family
ID=54996348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510684273.7A Active CN105227678B (en) | 2015-10-20 | 2015-10-20 | The queuing strategy of off line downloading task |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105227678B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352633A (en) * | 2020-02-24 | 2020-06-30 | 腾讯科技(深圳)有限公司 | Resource downloading method and device of application program, terminal and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383751A (en) * | 2008-07-24 | 2009-03-11 | 四川长虹电器股份有限公司 | Network downloading method |
CN103793380A (en) * | 2012-10-26 | 2014-05-14 | 北京新媒传信科技有限公司 | Method and system for downloading picture in application |
-
2015
- 2015-10-20 CN CN201510684273.7A patent/CN105227678B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383751A (en) * | 2008-07-24 | 2009-03-11 | 四川长虹电器股份有限公司 | Network downloading method |
CN103793380A (en) * | 2012-10-26 | 2014-05-14 | 北京新媒传信科技有限公司 | Method and system for downloading picture in application |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352633A (en) * | 2020-02-24 | 2020-06-30 | 腾讯科技(深圳)有限公司 | Resource downloading method and device of application program, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105227678B (en) | 2018-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103473345B (en) | A kind of method for estimating duration | |
CN103533032B (en) | Bandwidth adjustment device and method | |
CN108182077B (en) | Device, firmware upgrading method and device of device and storage medium | |
CN108182075A (en) | A kind of program by the automatic escalation target software of socket communication modes | |
CN108139926B (en) | Server system, method and storage medium for scheduling jobs for web applications | |
JP2014515885A5 (en) | ||
CN104102501B (en) | A kind of mobile terminal and its upgrade method | |
CN108536460A (en) | A kind of software automatic updating system of lightweight | |
CN110427202A (en) | A kind of system and method for car networking TBOX end FOTA | |
CN105227678A (en) | The queuing strategy of off line downloading task | |
CN102945193B (en) | A kind of restoration methods and electronic equipment of operation data | |
CN109032635A (en) | Method for upgrading software, device and the network equipment | |
CN106775974B (en) | Method for realizing distributed priority queuing lock | |
GB0017328D0 (en) | Automated software upgrade in distributed computing system | |
CN106528225A (en) | Hot update method and apparatus for game server | |
CN106802825A (en) | A kind of dynamic task scheduling method and system based on real-time system | |
CN106549786A (en) | A kind of collocation method and device of service fulfillment resource | |
CN105790997A (en) | Configuration data update method and system, client and server | |
CN104090805B (en) | A kind of method, equipment and system for updating terminal operating system | |
CN103677941B (en) | A kind of method and device for realizing smart card operating system module upgrade | |
CN107977206A (en) | A kind of batch service data file processing method and device | |
CN106878435A (en) | A kind of mobile phone application and development method based on cloud storage | |
CN107632865A (en) | A kind of FPGA configuration upgrade methods and device | |
CN106897127A (en) | A kind of method and server for picture capture treatment | |
CN106681761A (en) | Interactive upgrade method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201214 Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd. Address before: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai Patentee before: Phicomm (Shanghai) Co.,Ltd. |