Java thread and TCP programming
•
Java
thread
Process is composed of threads. Multithreading can run multiple tasks at the same time. It is a necessary part of network programming
Normal thread
Anonymous thread
TCP programming
TCP client connects to the server, which can realize connection error judgment, reception error judgment and server shutdown judgment
TCP server realizes single client access
The improved version of TCP server can receive multiple connections at the same time
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码