|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#11
|
|||
|
|||
|
Re: Java Threads
Alright, thanks everyone - I think I understand.
By default there is only one main thread. If I want to create a thread I can use the Thread class and can pass it a class inherited from "Runnable." Then no pauses in the run function will distract the main code. To pause the thread I can either use the Timer class or the wait function, but the wait function requires a try...catch function. Thanks for the quick responses. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|