Can wehave run() method directly without start() method in threads?

Showing Answers 1 - 8 of 8 Answers

mandyjoshi

  • Nov 11th, 2005
 

Start method is method of Thread which is implemented for create and run thread. Which will call run() where you put your implementation. If you directly call run() method it is just normal method call and not a new thread. That call will be in main thread.

  Was this answer useful?  Yes

Gautam

  • Jan 29th, 2006
 

Tthe start() method performs some other actions before calling the run() method. Due to these startup processes a separate thread is created, i.e. a different path of execution is created and on this path run() is executed.If we call run() directly, no separate thread will be created and it is just like calling any other method of the class which will be executed in the same thread.ThanksGautam

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions