A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
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.
Have you checked out
subject: Why start() method
regarding thread run method
Thread start() method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015