O'Reilly logo

Java™ Network Programming and Distributed Computing by Michael Reilly, David Reilly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required