Troubleshooting

   

Thread Does Not Start

My thread never starts to run.

A Thread is started by calling the start method, not the run method. Whether you are implementing the Runnable interface or extending the Thread class, you must always call the start method to start the Thread.

One Off Error

The first or last thread in a array of Threads is not starting up.

Remember that like other things in the Java language, the index for a array starts at zero, not one. As you can no doubt figure out, the last index of a array is length “1. This does not affect the actual length of the array. Ensure that if you are using an array that you are indexing it correctly.

   


Special Edition Using Java 2 Standard Edition
Special Edition Using Java 2, Standard Edition (Special Edition Using...)
ISBN: 0789724685
EAN: 2147483647
Year: 1999
Pages: 353

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