Murach's Beginning Java 2, SDK 1.4

This chapter shows how to create a program that uses multiple threads to alternate between tasks.

Chapter 20 How to work with threads
An introduction to threads 658
How threads work 658
Classes and interfaces for working with threads 660
Constructors and methods for working with threads 662
How to create and start threads 664
How to extend the Thread class 664
How to implement the Runnable interface 666
How to run an applet in its own thread 668
How to schedule threads 670
How to put a thread to sleep 670
How to interrupt a thread 672
How to prioritize threads 674
How to synchronize threads 676
How to work with timers 680
How to use the utility timer 680
How to use the Swing timer 684
Perspective 688
t




Murach's Beginning Java 2

Learn more about this book

Add this book to your cart


See the Java 1.5 edition