A Thread ends when the code using it returns from the run() method.
Your testing model doesn't show anything. Several changes I'd recommend:
Change the sleep time to 100 ms or less. 2 seconds is...
Type: Posts; User: Norm
A Thread ends when the code using it returns from the run() method.
Your testing model doesn't show anything. Several changes I'd recommend:
Change the sleep time to 100 ms or less. 2 seconds is...
Try debugging the code by adding printlns that print out the values of variables as they are changed and used. If you know what the code is supposed to do, seeing what it is doing should help you...