|      | Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form | 
 
If aTimeror another high-level API isn't sufficient, you might need to implement your own threads. This section tells you how to do so by customizing a thread'srunmethod.The
runmethod gives a thread something to do. Its code implements the thread's running behavior. A thread'srunmethod can do anything that can be encoded in statements: compute a list of prime numbers, sort some data, perform some animation.The
Threadclass implements a standard thread, which, by default, does nothing. The two sections that follow discuss techniques for providing arunmethod for a thread:
 
|      | Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form | 
Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.