CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - introduction to programming in java
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - introduction to programming in java - List
[
TCP/IP stack
]
UDPTCP
DL : 0
该程序充分利用了JAVA的多线程,完成写文件和刷新界面,在不同的线程间还有调用关系,因为考虑到网络数据的不稳定性,即有时数据量比较小,有时数据包很多,如果一个线程就会出现在数据量高峰时严重掉包(编程初期的时候,已试过)。所以引入多线程,这样在数据包不多的时候,能够使得数据包多的时候没有完成保存工作的线程能够继续完成保存工作。-The program makes full use of the multi-threaded JAVA, write documents and complete the refresh interface between the different threads are called, because, taking into account the uncertainty of network data, that is sometimes smaller than the data, and sometimes a lot of packets , if a thread will appear in a serious amount of data掉包peak (when the initial programming has been tried). Therefore, the introduction of multi-threaded, so little time packet, the packet can be made when more complete preservation of the thread to continue the preservation work completed.
Date
: 2026-01-09
Size
: 379kb
User
:
李璞
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.