Spawning a New Thread

Chapter 2 - A Simple Two-Thread Example

Java Thread Programming
Paul Hyde
  Copyright 1999 Sams Publishing

Summary
This chapter explores how to create a new thread by performing these tasks :
  Subclassing Thread
  Overriding the run() method of Thread to specify the statements to be executed by the new thread
  Creating a new instance of this subclass of Thread
  Spawning a new thread by invoking start() on this instance
Thats all there is to getting a second thread up and running in Java! The following chapters explore the complexities of threads and the coordination of the intercommunication that usually must occur among them.

Toc


Java Thread Programming
Java Thread Programming
ISBN: 0672315858
EAN: 2147483647
Year: 2005
Pages: 149
Authors: Paul Hyde

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net