7.7. Summary

An understanding of multi-threaded programming is important for any type of application or applet programming, but particularly so for software development for networking environments. Networks are slow and unreliable, so networking code will often need to be running in a separate thread from that of the user interface, to prevent a system from locking up or stalling due to changes in network state. Furthermore, most networking software interacts with multiple clients and/or servers, and unless the operations are extremely quick (such as receiving and dispatching a UDP packet), multiple threads will be needed so that interactions can occur concurrently.

Chapter Highlights

In this chapter, you have learned:

  • How to create multi-threaded ...

Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.