7.1. Overview

Just as a team of developers collaborating together on a project can split the work into small chunks that can be completed concurrently, software applications employ a similar strategy called multi-threading to split tasks into manageable units. Multi-threaded programming is an important concept in Java networking, as networking clients and servers must often perform several different tasks at a time (for example, listening for incoming requests and responses, processing data, and updating the text or graphical user interface for the user). Before undertaking multi-threaded applications in Java, it is important for the developer to understand the differences between single-threaded programming, multiprocess programming, and 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.