-
VB的程序,共享磁盘的。
VB的程序,共享磁盘的。-VB, shared disk.
- 2022-03-15 10:02:12下载
- 积分:1
-
各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载...
各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。
在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the cu
- 2022-03-20 03:50:55下载
- 积分:1
-
基于JFC框架的Java源代码,每一个代码都很经典,是学习JFC的好资料...
基于JFC框架的Java源代码,每一个代码都很经典,是学习JFC的好资料-JFC framework based on the Java source code, a code of each are classic study is a good information JFC
- 2022-06-21 19:14:10下载
- 积分:1
-
Apache 1.3.26 程序与源代码
Apache 1.3.26 程序与源代码-Apache 1.3.26 procedures and source code
- 2022-12-28 22:35:04下载
- 积分:1
-
udp achieve LAN chatting small program
udp实现的局域网聊天小程序-udp achieve LAN chatting small program
- 2022-05-15 08:00:53下载
- 积分:1
-
哪位VC高手帮帮我,很长时间了,调不出来。是一个EMAIL的SMTP发邮件的。谢谢!!!如果调好了请发到LIHUALIU81@163.COM...
哪位VC高手帮帮我,很长时间了,调不出来。是一个EMAIL的SMTP发邮件的。谢谢!!!如果调好了请发到LIHUALIU81@163.COM-master help me, a very long time, stressed out. Email is one of the SMTP mail. Thank you! ! ! If the request is better made to LIHUALIU81@163.COM
- 2023-01-29 12:40:03下载
- 积分:1
-
自动检测网络状况,当网络闲置时自动关机,可根据实际情况选择关机条件。...
自动检测网络状况,当网络闲置时自动关机,可根据实际情况选择关机条件。-Automatically detects network conditions, when the network shuts down automatically when idle, according to the actual situation may choose to shut down conditions.
- 2023-06-16 12:40:03下载
- 积分:1
-
基于TCP的多人聊天小程序,有服务器跟客户端
基于TCP的多人聊天小程序,有服务器跟客户端
-chatting over small programs, a server with client
- 2022-02-28 13:48:55下载
- 积分:1
-
Socket异步通信示程序代码:1.正确的开始和终止线程 2.可以局域网内多人聊天 3.双端队列的设计和应用...
Socket异步通信示程序代码:1.正确的开始和终止线程 2.可以局域网内多人聊天 3.双端队列的设计和应用 -Socket show asynchronous communication code : 1. Correct start and termination of two threads. People can chat LAN 3. Double-cohort design and application
- 2023-06-18 06:50:03下载
- 积分:1
-
使用VC中的异步套接字编写的服务器和客户端小程序
使用VC中的异步套接字编写的服务器和客户端小程序-The use of VC in the preparation of the asynchronous socket server and client applets
- 2022-05-25 22:45:47下载
- 积分:1