CN103188305A - Multithreading breakpoint resume method and system - Google Patents

Multithreading breakpoint resume method and system Download PDF

Info

Publication number
CN103188305A
CN103188305A CN2011104543910A CN201110454391A CN103188305A CN 103188305 A CN103188305 A CN 103188305A CN 2011104543910 A CN2011104543910 A CN 2011104543910A CN 201110454391 A CN201110454391 A CN 201110454391A CN 103188305 A CN103188305 A CN 103188305A
Authority
CN
China
Prior art keywords
download
file
small documents
formation
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104543910A
Other languages
Chinese (zh)
Other versions
CN103188305B (en
Inventor
李雷川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201110454391.0A priority Critical patent/CN103188305B/en
Publication of CN103188305A publication Critical patent/CN103188305A/en
Application granted granted Critical
Publication of CN103188305B publication Critical patent/CN103188305B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a multithreading breakpoint resume method and system and belongs to the technical field of network transmission. The multithreading breakpoint resume method includes a first step of dividing a file into a plurality of small files through a server, wherein each small file is provided with an own download link; a second step of creating a plurality of threading channels on terminal equipment, wherein each threading channel is provided with a download queue and each download queue corresponds to a download file task; a third step of establishing connection between the terminal equipment and the server to request downloading of the files; a fourth step of downloading the files according to the download links of the small files formed through division of the file, and sending a request to the server in order to continue downloading the files when the network is connected next time according to the serial number and an ending point of the downloaded queue when the network is disconnected; combining all small files into a file when downloading of all small files is finished. The multithreading breakpoint resume method and system solves the problem that a user restarts an application program to repeat downloading downloaded data every time when the network is disconnected, avoids that the user wastes time during downloading the file, and improves the efficiency when the user downloads the file.

Description

A kind of multithread breakpoint continued transmission method and system
Technical field
The invention belongs to the network transmission technology field, be specifically related to a kind of multithread breakpoint continued transmission method and system, mainly be applicable to mobile terminal device download large files such as iPad/iPhone.
Background technology
Multithread breakpoint continued transmission just refers to that the user can download a plurality of data files simultaneously by creating a plurality of passages after starting application program, and can send according to the small documents that some big files are divided into some is set spontaneously, if the user fails to finish whole downloads under the situation of once networking, just can continue according to the cut-off point of last time to download when starting application program next time.
Download large file based on mobile phone users such as increasing iPad/iPhone, the situation that in downloading process, can occur suspension probably, for fear of user's data downloaded repeated downloads, can utilize this technology of breakpoint transmission, cut-off point when recording suspension is each time once downloaded on continuing when networking next time.Utilize multithreading to open up a plurality of download channel for the user simultaneously, add large user's speed of download.
Summary of the invention
At the defective that exists in the prior art, technical problem to be solved by this invention provides the high multithread breakpoint continued transmission method and system of a kind of efficient.
For solving the problems of the technologies described above, the technical solution used in the present invention is as follows:
A kind of multithread breakpoint continued transmission method may further comprise the steps:
(1) server is cut into several small documents with file, and each small documents all has download address separately;
(2) create several thread passages at terminal equipment, each thread passage is provided with one and downloads formation, downloads corresponding one of formation for one and downloads the file task;
(3) terminal equipment and server connect, and file is downloaded in request;
(4) download address that is cut into all small documents according to described file is downloaded described file, and during the next time networking, sequence number and the ending point of downloading formation during according to suspension send request to server, continue to download file after the suspension;
(5) after all small documents of described file are downloaded and finished, be combined into a file.
A kind of multithread breakpoint continued transmission system comprises terminal equipment and server, and described server comprises that each small documents all has the cutting device of download address separately for file being cut into some small documents;
Described terminal equipment comprises that each thread passage is provided with one and downloads formation for creating several thread passages, downloads the corresponding creation apparatus of downloading the file task of formation for one; Be used for connecting with server, the request unit of file is downloaded in request; Download described file for the download address that is cut into all small documents according to described file, when networked next time after the suspension, the sequence number of download formation and the point that ends up were asked to the server transmission during according to suspension, continue the download apparatus of download file; Be used for after all small documents downloads of described file finish, being combined into the composite set of a file.
The method of the invention and system, by big file is cut into the small documents fragment, download the mode of many fragments address, solved the problem of repeated downloads data with existing when the user restarts application program after each suspension, the time of having wasted when having avoided the user to download big file, support the user to pass through the multithreading multichannel simultaneously and download a plurality of files simultaneously, improved the efficient the when user downloads file greatly.In addition, the present invention can also can not be stolen easily in resource conservation, because each file has a plurality of URL requests, must obtain whole URL and just can download whole complete file.
Description of drawings
Fig. 1 is the structured flowchart of multithread breakpoint continued transmission system in the embodiment;
Fig. 2 is the flow chart of multithread breakpoint continued transmission method in the embodiment;
Fig. 3 is the flow chart that terminal equipment and server connect in the embodiment.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
As shown in Figure 1, the multithread breakpoint continued transmission system comprises terminal equipment 1 and server 2 in the present embodiment, and server 2 comprises cutting device 21, and terminal equipment 1 comprises creation apparatus 11, jockey 12, tape deck 13, download apparatus 14 and composite set 15.
Cutting device 21 in the server 2 is used for file is cut into some small documents, and each small documents all has download address separately.
Creation apparatus 11 is used for creating several thread passages, and each thread passage is provided with one and downloads formation, downloads corresponding one of formation for one and downloads the file task.Request unit 12 is used for connecting with server 2, and file is downloaded in request.Tape deck 13 is used for the sum of each thread passage download formation of record before beginning to download file, and a file is finished in every download, and the download number of queues in this thread passage subtracts 1.Download apparatus 14 is downloaded described file for the download address that is cut into all small documents according to described file, and when networked next time after the suspension, the sequence number of download formation and the point that ends up were asked to the server transmission during according to suspension, continue the download file.Composite set 15 is used for being combined into a file after all small documents downloads of described file finish.
As shown in Figure 2, adopt system shown in Figure 1 to realize that the method for multithread breakpoint continued transmission may further comprise the steps:
(1) cutting device 21 is cut into some small documents with the file in the server 2, and each small documents is subsidiary download address (being the URL address) separately all.Preferably, each small documents is about 10M.
(2) creation apparatus 11 is created some thread passages at terminal equipment 1, and each thread passage is provided with one and downloads formation, downloads corresponding one of formation for one and downloads the file task.
The download bandwidth of each thread passage is fixed.Each is downloaded formation and is one and downloads the file task, the total download request number of downloading the file task of having downloaded queue record, and a request is finished in every download, will continue the next download request of download, can guarantee to download the integrality of file like this.Download in the formation at one, can walk abreast and download a plurality of requests, the realization multithreading is downloaded simultaneously.
(3) request unit 12 connects with server 2, and file is downloaded in request.
As shown in Figure 3, jockey 12 connects with server 2, and the process that file is downloaded in request may further comprise the steps:
1. request unit 12 sends connection request, server 2 backspace file download list arrays to server 2;
2. the download list array is deposited into and downloads in the formation;
3. specify to download the path of depositing of each small documents in the formation.
(4) download apparatus 14 is downloaded described file according to the download address that described file is cut into all small documents, and when networked next time after the suspension, the sequence number of download formation and ending point were asked to the server transmission during according to suspension, continue to download file.
Tape deck 13 records the sum of downloading small documents download address in the formation before beginning to download file, a small documents is finished in every download, and the sum of small documents download address subtracts 1 in this download formation.
Download recorded in the formation file to be downloaded by cutting after the download address of all small documents, download apparatus 14 can be downloaded a plurality of small documents according to the download address of each small documents is parallel.In downloading process, if suspension situation, sequence number and the ending point of the current download formation of download apparatus 14 records, when networking next time, sequence number and the ending point of downloading formation during according to suspension send request to server, continue to download this document, up to all small documents of having downloaded this document.
(5) after download finished, composite set 15 was combined into a file with all small documents.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technology thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (8)

1. a multithread breakpoint continued transmission method is characterized in that, may further comprise the steps:
(1) server is cut into several small documents with file, and each small documents all has download address separately;
(2) create several thread passages at terminal equipment, each thread passage is provided with one and downloads formation, downloads corresponding one of formation for one and downloads the file task;
(3) terminal equipment and server connect, and file is downloaded in request;
(4) download address that is cut into all small documents according to described file is downloaded described file, and during the next time networking, sequence number and the ending point of downloading formation during according to suspension send request to server, continue to download file after the suspension;
(5) after all small documents of described file are downloaded and finished, be combined into a file.
2. multithread breakpoint continued transmission method as claimed in claim 1 is characterized in that: the big or small 10M of being of small documents described in the step (1).
3. multithread breakpoint continued transmission method as claimed in claim 1, it is characterized in that: in the step (2), the download bandwidth of each thread passage is fixed.
4. multithread breakpoint continued transmission method as claimed in claim 1, it is characterized in that: terminal equipment and server connect described in the step (3), and the process that file is downloaded in request may further comprise the steps:
1. terminal equipment sends the file download request to server, server backspace file download list array, the download address of all small documents that the described file of storage is cut in the described file download list data;
2. terminal equipment is deposited into the download list array and downloads in the formation;
3. specify to download the path of depositing of each small documents in the formation.
5. as each described multithread breakpoint continued transmission method in the claim 1~4, it is characterized in that: described method records the sum of downloading small documents download address in the formation before also being included in and beginning to download file, a small documents is finished in every download, and the sum of small documents download address subtracts 1 step in this download formation.
6. as each described multithread breakpoint continued transmission method in the claim 1~4, it is characterized in that: in the step (4), each download formation can walk abreast and download a plurality of small documents.
7. a multithread breakpoint continued transmission system comprises terminal equipment (1) and server (2), it is characterized in that: described server (2) comprises that each small documents all has the cutting device of download address (21) separately for file being cut into some small documents;
Described terminal equipment (1) comprises that each thread passage is provided with one and downloads formation for creating several thread passages, downloads the corresponding creation apparatus (11) of downloading the file task of formation for one; Be used for connecting with server (2), the request unit (12) of file is downloaded in request; Download described file for the download address that is cut into all small documents according to described file, when networked next time after the suspension, the sequence number of download formation and the point that ends up were asked to the server transmission during according to suspension, continue the download apparatus (14) of download file; Be used for after all small documents downloads of described file finish, being combined into the composite set (15) of a file.
8. multithread breakpoint continued transmission as claimed in claim 7 system, it is characterized in that: described terminal equipment (1) also comprises the sum of downloading formation small documents download address for record before beginning to download file, a small documents is finished in every download, and the sum of small documents download address subtracts 1 tape deck (13) in this download formation.
CN201110454391.0A 2011-12-30 2011-12-30 A kind of multithread breakpoint continued transmission method and system Expired - Fee Related CN103188305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110454391.0A CN103188305B (en) 2011-12-30 2011-12-30 A kind of multithread breakpoint continued transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110454391.0A CN103188305B (en) 2011-12-30 2011-12-30 A kind of multithread breakpoint continued transmission method and system

Publications (2)

Publication Number Publication Date
CN103188305A true CN103188305A (en) 2013-07-03
CN103188305B CN103188305B (en) 2016-08-03

Family

ID=48679270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110454391.0A Expired - Fee Related CN103188305B (en) 2011-12-30 2011-12-30 A kind of multithread breakpoint continued transmission method and system

Country Status (1)

Country Link
CN (1) CN103188305B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428276A (en) * 2013-07-30 2013-12-04 中国联合网络通信集团有限公司 Downloading method and device
CN104184789A (en) * 2014-02-24 2014-12-03 无锡天脉聚源传媒科技有限公司 File downloading method and device
CN104994143A (en) * 2015-06-19 2015-10-21 小米科技有限责任公司 File downloading method and device
CN105187564A (en) * 2015-10-14 2015-12-23 中科宇图天下科技有限公司 Method for breakpoint resuming of mobile phone side file
CN105635213A (en) * 2014-10-31 2016-06-01 广州市动景计算机科技有限公司 Network connection downloading method and device
CN107360254A (en) * 2017-08-22 2017-11-17 北京奇艺世纪科技有限公司 A kind of document down loading method, device, server and terminal
CN108600312A (en) * 2018-03-21 2018-09-28 深圳市奥软网络科技有限公司 A kind of multi-threaded parallel method for down loading based on file block
CN109309725A (en) * 2018-10-25 2019-02-05 深圳市腾讯信息技术有限公司 Using downloading and update method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040076915A (en) * 2003-02-27 2004-09-04 엘지전자 주식회사 Real-time debugging method of digital signal processor
CN101291195A (en) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 File downloading method, system and terminal realizing breaker point continuous transmission
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040076915A (en) * 2003-02-27 2004-09-04 엘지전자 주식회사 Real-time debugging method of digital signal processor
CN101291195A (en) * 2008-05-23 2008-10-22 中兴通讯股份有限公司 File downloading method, system and terminal realizing breaker point continuous transmission
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428276A (en) * 2013-07-30 2013-12-04 中国联合网络通信集团有限公司 Downloading method and device
CN103428276B (en) * 2013-07-30 2016-09-14 中国联合网络通信集团有限公司 Method for down loading and device
CN104184789A (en) * 2014-02-24 2014-12-03 无锡天脉聚源传媒科技有限公司 File downloading method and device
CN105635213A (en) * 2014-10-31 2016-06-01 广州市动景计算机科技有限公司 Network connection downloading method and device
CN105635213B (en) * 2014-10-31 2019-08-16 广州市动景计算机科技有限公司 A kind of network connection method for down loading and device
CN104994143A (en) * 2015-06-19 2015-10-21 小米科技有限责任公司 File downloading method and device
CN104994143B (en) * 2015-06-19 2018-06-19 小米科技有限责任公司 Document down loading method and device
CN105187564A (en) * 2015-10-14 2015-12-23 中科宇图天下科技有限公司 Method for breakpoint resuming of mobile phone side file
CN107360254A (en) * 2017-08-22 2017-11-17 北京奇艺世纪科技有限公司 A kind of document down loading method, device, server and terminal
CN108600312A (en) * 2018-03-21 2018-09-28 深圳市奥软网络科技有限公司 A kind of multi-threaded parallel method for down loading based on file block
CN109309725A (en) * 2018-10-25 2019-02-05 深圳市腾讯信息技术有限公司 Using downloading and update method, device, computer equipment and storage medium
CN109309725B (en) * 2018-10-25 2021-10-08 深圳市腾讯信息技术有限公司 Application downloading and updating method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN103188305B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN103188305A (en) Multithreading breakpoint resume method and system
CN107483627A (en) A kind of file distributing, method for down loading, Distributor, client and system
US20150304417A1 (en) Data synchronization method, and device
CN101895562B (en) Mobile multimedia broadcast (CMMB) channel-based data and audio/video pushing system
CN102710966A (en) Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
EP3125501A1 (en) File synchronization method, server, and terminal
CN102200901A (en) Image transfer method, image transfer system, and projector
CN101179392B (en) Method and system for uploading document
CN103618912A (en) Live telecast time shifting method and server
CN104244023A (en) Video cloud editing system and method
WO2008111376A1 (en) File transfer method and file transfer system
US20150244786A1 (en) Method And Apparatus For Managing Multimedia Resource And Multimedia Player
CN105323597A (en) MP4 file playing method, MP4 file processing method, MP4 file playing device, MP4 file processing device and MP4 file playing system
CN103096131B (en) A kind of live method for stream processing and device
CN103780644A (en) File synchronization method
CN104702980B (en) A kind of EPG data processing method, EPG server and EPG data processing system
CN103237115B (en) Terminal download control method and mobile terminal implementing same
US9286365B2 (en) Data synchronizing system and method thereof
CN104079610A (en) Cloud server, and method and system for cloud synchronization of application software
CN107908408A (en) A kind of long-distance cloud mobile phone application installation method
CN103188327A (en) Method and system of file transfer
CN201590869U (en) Data and audio/video transmitting system based on three-net interfused technology
WO2010149036A1 (en) Method for dispatching multi-carrier cells and network device thereof
CN102710673A (en) Method and device for downloading data by terminal
CN102737084A (en) Media data interaction 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
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: 20160803

Termination date: 20161230

CF01 Termination of patent right due to non-payment of annual fee