A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Why start() method
Joined: Sep 18, 2002
Sep 18, 2002 04:43:00
why we call the start() method of the class extending the Thread class instead of run() method.
Joined: Nov 06, 2000
Sep 18, 2002 06:00:00
Calling the start() method will cause the run() method to be called.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Oct 18, 2000
Sep 18, 2002 07:28:00
start() sets up threading and makes the run() method run in a separate thread. If you just call run(), it will run in the current thread.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Don't get me started about those stupid
subject: Why start() method
Thread start() method
regarding thread run method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014