多线程下载工具(刘建林) 副本 副本.doc

多线程下载工具(刘建林) 副本 副本.doc

  1. 1、本文档共47页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
多线程下载工具(刘建林) 副本 副本

四川理工学院毕业设计(论文) JAVA多线程资源下载工具设计与实现 学 生:刘建林 学 号:06101040213 专 业:网络工程 班 级:2006级2班 指导教师:李斌 四川理工学院计算机学院 二 JAVA多线程资源下载工具设计与实现 摘 要 线程可以理解为下载的通道,一个线程就是一个文件的下载通道,多线程也就是同时开起几个下载通道。相对单线程而言,多线程把资源文件按线程数分割成相应数目的片段进行分段并发下载,提高了CPU的利用率,也有利于提高下载速度。 鉴于当前绝大部分下载工具都讨论的平台支持话题,本文以Java为编程语言,以JDK1.6和JcreatorPro为开发平台,实现了一个简单的多线程下载工具。由于Java程序的特殊性,该软件可以运行在任何安装了虚拟机的电脑上。本论文分析了在网络环境中基于HTTP协议进行多线程下载和断点续传的原理和实现方法,对下载工具的需求分析、具体设计、代码实现、系统测试进行了详尽阐述,同时论述了基于HTTP、FTP、P2P、P2SP等下载模式的优缺点,并对多线程、流、文件等作了说明。  关键词:JAVA;多线程下载;下载工具;断点续传 Design and realization of java multi-threaded downloading tool for resources ABSTRACT The thread can be understood as download channel and one thread is one download channel of file.Multi-threading is that which open some download channels at the same time.In terms of the relative single-threading,multi-threading divides resource into many parts which are as many as the number of the threads for downloading. That can improve the utilization of CPU and improve the speed of downloading. According to the topic of support on platforms for download tools,this paper disigned a simple download tool which made Java as the programming language and based on development platform of JDK1.6 and JcreatorPro.Because of the feature of Java,the software can run on any computer that has installed the virtual machine for Java. This paper also analyzed the theory and implementation of multi-threading and breakpoint resume which based on HTTP protocol in the network environment . Demand , detail design ,code ,system test of download tool were described. Besides,the paper also explained the advantages and disadvantages of download modes which based on HTTP, FTP, P2P, P2SP and multi-threading, streaming, file and other related issues. Keywords:JAVA; Multi-thread download; download tool;Breakpoint Resume 目录 第1章 综 述 1 1.1 课题的研究背景 1 1.2 下载工具研究的意义 2 1.3 我国下载工具软件现状及未来发展趋势 2 1.4 当今流行的下载工具工作原理介绍及优缺点分析 4 1.4.1 HTTP下载 4 1.4.2 FTP方式 4 1.4.3 P2P下载 5 1.4.4 P2SP下载 6 第2章 开发环境、注意事项及应用平

文档评论(0)

yurixiang1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档