Abstract
A thread is often considered as a very delicate feature that introduces more troubles than solutions in a development. Actually, this idea is not correct. In this tutorial, we will show that threads can be friendly even in simple applications, provided they are embedded in the right communication structures and are used to separate the data structures from the behavior of an application. In that case, they simplify debugging and maintenance. In the presentation, we will introduce the basic concurrency concepts offered by Java and discuss several typical uses of threads. In particular, we will show how to establish a communication between the threads and the GUI (graphical user interface) implemented with the Swing library, how to handle simultaneously GUI, client and server accesses in the same application and finally how to code the various UML diagrams that define the behavior of an interactive application.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Petitpierre, C. (2003). Java Threads Can Be Very Useful Building Blocks. In: Guelfi, N., Astesiano, E., Reggio, G. (eds) Scientific Engineering for Distributed Java Applications. FIDJI 2002. Lecture Notes in Computer Science, vol 2604. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-36520-6_20
Download citation
DOI: https://doi.org/10.1007/3-540-36520-6_20
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-00679-4
Online ISBN: 978-3-540-36520-4
eBook Packages: Springer Book Archive