-
java读取新浪天气预报,把数据存储在数据库中
java读取新浪天气预报,把数据存储在数据库中-read weather forecasts, the data stored in the database
- 2022-04-08 11:05:42下载
- 积分: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
-
the software in peer
本软件要在网络中实现点对点的实时对话,主要的工作大约有: A).软件界面的实现。 B).两台主机通过Socket进行通信的实现。 C).如何从本机接收到要发送给对方的消息与如何接收到从对方来的消息并显示的过程。 D).进行异常处理。-the software in peer-to-peer networks to achieve real-time dialogue, the main work around : A). Software interface is achieved. B). Two mainframe through Socket communication is achieved. C). How receive from the machine to be sent to the other party and how to receive news from the other side of the news and display process. D). For Exception Handling.
- 2022-04-12 10:02:14下载
- 积分:1
-
聊天程序 客户端 写的很好 下了就知道了
聊天程序 客户端 写的很好 下了就知道了-Chat Client write well under the will know
- 2022-04-07 14:41:26下载
- 积分:1
-
在硬件设置上禁用和启动多个网卡,在xp、win98、win2000上测试过...
在硬件设置上禁用和启动多个网卡,在xp、win98、win2000上测试过-the hardware setup and launched a number of banned card, xp, win98, tested on WIN2000
- 2022-03-14 06:37:17下载
- 积分:1
-
UDP examples of socket programming examples
socket编程实例UDP实例,112335456612-UDP examples of socket programming examples
- 2022-05-27 12:37:54下载
- 积分:1
-
一份用vc实现的封装完整的异步网络连接动态链接库,非常实用。...
一份用vc实现的封装完整的异步网络连接动态链接库,非常实用。-Achieved with the vc in a complete package, an asynchronous network connection dynamic link library, very useful.
- 2022-11-08 12:30:04下载
- 积分:1
-
P2P聊天工具 实现聊天功能 使用winsock
P2P聊天工具 实现聊天功能 使用winsock-P2P chat chat tools to achieve the use of winsock
- 2022-06-15 23:54:09下载
- 积分:1
-
开放源程序的P2P的文件共享,主要是进行更新的文件共享开发和让所有人都能共享他的文件和成果
开放源程序的P2P的文件共享,主要是进行更新的文件共享开发和让所有人都能共享他的文件和成果- The open source program P2P document sharing, mainly is carries
on the renewal the document sharing development and enables all people
all to share his document and the achievement
- 2022-02-03 03:53:36下载
- 积分:1
-
basic network programming examples Winsock Network Chat Room [ chap1 ChatRo om...
基本网络编程实例
Winsock实现网络聊天室【chap1ChatRoom(Winsock)】-basic network programming examples Winsock Network Chat Room [ chap1 ChatRo om (Winsock)--
- 2022-04-25 04:53:17下载
- 积分:1