多线程软件的设计与实现.doc
文本预览下载声明
多线程下载软件的设计与实现-毕业论文
本科毕业论文(设计)原创性声明 本人郑重声明:所呈交的论文是本人在导师的指导下独立进行研究所取得的研究成果。除了文中特别加以标注引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写的成果作品。本人完全意识到本声明的法律后果由本人承担。 作者签名: 年 月 日 目 录 摘 要 I 关键词 I Abstract I Key words I 1 绪论 1 1.1 课题的研究背景与意义 1 1.2 我国下载工具软件现状分析及发展趋势 1 软件界面 1 聚合资源 1 资源占用情况对比 2 1.3 当今流行下载工具的工作原理 2 HTTP下载 2 FTP下载 2 P2P下载 2 2 关键技术概述 3 2.1 多线程技术 3 2.2 HTTP协议 4 2.3 断点续传技术 4 2.4 开发工具介绍 4 3 系统需求分析 5 3.1 用户需求分析 5 3.2 业务流分析 5 3.3 可行性分析 5 4 系统概要设计 6 4.1 用户界面分析 6 4.2 下载任务管理模块 7 4.3 任务信息显示模块 8 4.4 配置管理模块 9 5 系统功能实现 11 5.1 主界面实现 11 5.2 任务管理功能实现 12 能实现 12 断点续传实现 15 5.3 下载信息显示模块实现 15 息显示 15 多任务下载 18 5.4 配置管理实现 19 设置默认目录 20 下载完后关机 20 小结 22 致谢 23 参考文献 24 多线程下载软件的设计与实现 摘 要:线程可以理解为下载的通道一个线程就是一个文件的下载通道,多线程也就是同时开起几个下载通道 关键词:多线程;下载;断点续传 Design and Implementation of the Multithread Downloading System 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 C++ as the programming language and based on development platform of JDK1.6 and JcreatorPro.This paper also analyzed the theory and implementation of multi-threading and breakpoint resume which based on HTTP protocol in the network environment . Key words: Muti-threaded; Download; Breakpoint Resume1 绪论 在当今的网络时代,下载软件是使用最为频繁的软件之一。几年来,下载技术也在不停地发展。最原始的下载功能仅仅是个下载过程,即从WEB服务器上连续地读取文件。其最大的问题是,由于网络的不稳定性,一旦连接断开使得下载过程中断,就不得不全部从头再来一次。随后,断点续传的概念就出来了,顾名思义,就是如果下载中断,在重新建立连接后,跳过已经下载的部分,而只下载还没有下载的部分。无论多线程下载技术是否洪以容先生的发明,洪以容使得这项技术得到前所未有的关注是不争的事实。在网络蚂蚁软件流行开后,许多下载软件也都纷纷效仿多线程下载的基础是WEB服务器支持远程的
显示全部