CN102457554A - File download method based on simultaneous multi-threading execution technology - Google Patents

File download method based on simultaneous multi-threading execution technology Download PDF

Info

Publication number
CN102457554A
CN102457554A CN2010105240003A CN201010524000A CN102457554A CN 102457554 A CN102457554 A CN 102457554A CN 2010105240003 A CN2010105240003 A CN 2010105240003A CN 201010524000 A CN201010524000 A CN 201010524000A CN 102457554 A CN102457554 A CN 102457554A
Authority
CN
China
Prior art keywords
file
download
request
server
file download
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
CN2010105240003A
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.)
Zhenjiang Yction Software Co Ltd
Original Assignee
Zhenjiang Yction Software 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 Zhenjiang Yction Software Co Ltd filed Critical Zhenjiang Yction Software Co Ltd
Priority to CN2010105240003A priority Critical patent/CN102457554A/en
Publication of CN102457554A publication Critical patent/CN102457554A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a file download method based on simultaneous multi-threading execution technology, which comprises the steps of establishing a plurality of threads through a simultaneous download component, providing a file download request to a server through using a single thread, and completing file downloading. A file download system provided by the invention comprises the simultaneous download component used for triggering the plurality of threads and sending the file download request to the server, a Client software terminal system used for performing interaction with the Client, and a data base used for a user to store various data. The invention solves the defect that in the prior art, the file package waiting time is over long when a plurality of files are downloaded.

Description

A kind of document down loading method based on the multi-thread concurrent execution technique
Technical field
The present invention relates to a kind of document down loading method, the method for the concurrent download of especially a kind of multifile based on the multi-thread concurrent execution technique.The invention belongs to communication technical field.
Background technology
At present the transmission batch documents is a thing very consuming time in wide area network, and batch documents efficiency of transmission when transmitting is lower, mainly be since the packing time of file in download and manual operation occupied file transfer consuming time in sizable ratio.
Application number is that 200810117459.4 one Chinese patent application discloses a kind of file download service method and system; This method comprises: the downloading request message that file download service device receiving terminal sends; This downloading request message comprises the information of end message and request file in download; When said terminal has when downloading authority, the information of described request file in download is sent to the file packing apparatus; Said file packing apparatus will be asked the downloaded files packing according to the information of described request file in download, and the file address after the packing is sent to said file download service device; File after said file download service device will wrap according to the said address that receives is sent to said terminal.Yet, though existing document down loading method has reached the purpose that multifile is downloaded, if when downloaded files quantity is too much simultaneously, so, the stand-by period that file in download is packed will occupy file transfer consuming time in sizable ratio.
The problem that the present invention will solve provides the method for the concurrent download of a kind of multifile; Create a plurality of threads through concurrent download component; Utilize single thread to propose the request of file in download to server; Because the operation between the single thread independently, overcome the defective of file packing waits for too long when multifile is downloaded in the prior art.Obviously, existing document file management system can not satisfy gerentocratic demand.
Summary of the invention
The objective of the invention is to:, the method for the concurrent download of a kind of multifile is provided, to overcome the low defective of multifile download efficiency in the prior art to the deficiency that above prior art exists.In order to reach above purpose, the present invention contains following assembly:
Client operating software---be used for carrying out mutual software terminal system with client;
Database---be used to deposit the various data that the user will store.
More than two assemblies form by following each widget:
Client operating software is made up of following assembly:
Client end interface---be used for carrying out the mutual of profile download operation with the user;
MDAC---in order to the data of storing in the accessing database;
Concurrent download component---in order to open a plurality of threads, the request of sending file in download to server.Concurrent assembly is made up of following method:
The SelectFiles function---need downloaded files in order to selection;
The Create function---in order to create single thread;
The Request function---in order to send the request of file in download to server;
The Destroy function---in order to destroy single thread;
The Upload function---in order to file in download.
Database consists of the following components:
The basic document of user information table---recording user.
The user uses step to be:
Step 1: use client operating software, system manager's Accreditation System user comprises address name, user name, and password or the like, client operating software will be called MDAC user basic information will be saved in the user information table of database.
Step 2: use client operating software; Call the SelectFiles function of concurrent download component, selection needs downloaded files, creates a plurality of system variables simultaneously respectively; Physical address with filesselected is kept in the variable respectively, and writes down total number of disposable file in download.
Step 3: use client operating software; When the user sends download request, obtain the total number of disposable file in download of record before, call the Create function of concurrent download component; Single thread is created in circulation, and the number of times that circulation is created is identical with the total number of disposable file in download.When creating single thread, call the Request function, send the request of file in download to server.
Step 4: use client operating software, when server is received download request, and when making the response that receives file, call the Upload function of concurrent download component, to the server file in download.And behind the file in download EO, call the Destroy function, destroy current thread.
So, through the present invention, the user can reduce the download stand-by period and the handling time of transfer files, thereby better realizes the high-efficiency management of document.
Embodiment
Embodiment one
Use Microsoft VisualStudio.Net developing instrument exploitation client operating software, use database management tools SqlServer2000 special-purpose on the market to set up the needed database of system, concrete mode is:
Client operating software---be used for carrying out mutual software terminal system with client;
Database---be used to deposit the various data that the user will store.
More than two assemblies form by following each widget:
Client operating software is made up of following assembly:
Client end interface---be used for carrying out the mutual of profile download operation with the user;
MDAC---in order to the data of storing in the accessing database;
Concurrent download component---in order to open a plurality of threads, the request of sending file in download to server.Concurrent assembly is made up of following method:
The SelectFiles function---need downloaded files in order to selection;
The Create function---in order to create single thread;
The Request function---in order to send the request of file in download to server;
The Destroy function---in order to destroy single thread;
The Upload function---in order to file in download.
Database consists of the following components:
The basic document of user information table---recording user.
The user uses step to be:
Step 1: use client operating software, system manager's Accreditation System user comprises address name, user name, and password or the like, client operating software will be called MDAC user basic information will be saved in the user information table of database.
Step 2: use client operating software; Call the SelectFiles function of concurrent download component, selection needs downloaded files, creates a plurality of system variables simultaneously respectively; Physical address with filesselected is kept in the variable respectively, and writes down total number of disposable file in download.
Step 3: use client operating software; When the user sends download request, obtain the total number of disposable file in download of record before, call the Create function of concurrent download component; Single thread is created in circulation, and the number of times that circulation is created is identical with the total number of disposable file in download.When creating single thread, call the Request function, send the request of file in download to server.
Step 4: use client operating software, when server is received download request, and when making the response that receives file, call the Upload function of concurrent download component, to the server file in download.And behind the file in download EO, call the Destroy function, destroy current thread.
Except that the foregoing description, the present invention can also have other execution modes.All employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop on the protection range of requirement of the present invention.

Claims (3)

1. the document down loading method based on the multi-thread concurrent execution technique is characterized in that and can create a plurality of threads through concurrent download component, utilizes single thread to propose the request of file in download to server, and accomplishes the file down operation.
2. according to the said a kind of document down loading method of claim 1, it is characterized in that: contain concurrent download component, in order to opening a plurality of threads, and send the request of file in download to server based on the multi-thread concurrent execution technique.
3. according to the said a kind of document down loading method of claim 1, it is characterized in that: also contain MDAC, in order to the data of storing in the accessing database based on the multi-thread concurrent execution technique.
CN2010105240003A 2010-10-29 2010-10-29 File download method based on simultaneous multi-threading execution technology Pending CN102457554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105240003A CN102457554A (en) 2010-10-29 2010-10-29 File download method based on simultaneous multi-threading execution technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105240003A CN102457554A (en) 2010-10-29 2010-10-29 File download method based on simultaneous multi-threading execution technology

Publications (1)

Publication Number Publication Date
CN102457554A true CN102457554A (en) 2012-05-16

Family

ID=46040205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105240003A Pending CN102457554A (en) 2010-10-29 2010-10-29 File download method based on simultaneous multi-threading execution technology

Country Status (1)

Country Link
CN (1) CN102457554A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683452A (en) * 2015-02-09 2015-06-03 深圳酷派技术有限公司 Data downloading method, server and multi-system mobile terminal
CN104702654A (en) * 2014-02-25 2015-06-10 杭州海康威视数字技术股份有限公司 Video cloud storage system based storage and extraction performance balancing method and device
CN107888637A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 Pull the method, apparatus and system of message

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478563A (en) * 2008-11-25 2009-07-08 北大方正集团有限公司 Stream media format file downloading method and apparatus
CN101656751A (en) * 2008-08-18 2010-02-24 北京数码大方科技有限公司 Method and system for accelerating file uploading and downloading

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656751A (en) * 2008-08-18 2010-02-24 北京数码大方科技有限公司 Method and system for accelerating file uploading and downloading
CN101478563A (en) * 2008-11-25 2009-07-08 北大方正集团有限公司 Stream media format file downloading method and apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702654A (en) * 2014-02-25 2015-06-10 杭州海康威视数字技术股份有限公司 Video cloud storage system based storage and extraction performance balancing method and device
CN104702654B (en) * 2014-02-25 2019-04-30 杭州海康威视数字技术股份有限公司 Storage and the method and apparatus of extraction performance balance based on video cloud storage system
CN104683452A (en) * 2015-02-09 2015-06-03 深圳酷派技术有限公司 Data downloading method, server and multi-system mobile terminal
CN104683452B (en) * 2015-02-09 2018-11-06 深圳酷派技术有限公司 A kind of data download method, server and multisystem mobile terminal
CN107888637A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 Pull the method, apparatus and system of message

Similar Documents

Publication Publication Date Title
CN100411341C (en) Parallel downloading method and terminal
CN108933805A (en) A kind of document transmission method and system
CN103475682B (en) File transfer method and file transfer equipment
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN107689976B (en) File transmission method and device
CN105408863A (en) Endpoint data centers of different tenancy sets
CN103442037A (en) Method for achieving multithreading breakpoint upload of oversized file based on FTP
CN105025053A (en) Distributed file upload method based on cloud storage technology and system
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN106453576B (en) A kind of exchange method, system and control centre based on mixing cloud platform
CN111490963B (en) Data processing method, system, equipment and storage medium based on QUIC protocol stack
CN102469064A (en) Method for implementing communication and communication equipment
CN102841846A (en) Software testing method, device and system based on Hadoop
CN105408871A (en) Method and apparatus for providing redundant data access
CN104144202A (en) Hadoop distributed file system access method, system and device
CN104243610A (en) Distributed file transmission service method
CN102916907B (en) Download method and system based on home gateway, and home gateway
CN109274777A (en) A kind of method, apparatus, equipment and readable storage medium storing program for executing exporting configuration file
CN109729139A (en) Access request retransmission method, device, equipment and readable storage medium storing program for executing
CN102457554A (en) File download method based on simultaneous multi-threading execution technology
CN101159676B (en) Data transmission method and system
CN102455899A (en) Multi-file concurrent uploading method
CN110535919B (en) Network access method and device of concentrator and power peak regulation system
CN104038314A (en) Novel safety-monitoring networking real-time dynamic data transmission system and method
CN105450679A (en) Method and system for performing data cloud storage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120516