Difference between Start and run method in Java thread
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
Difference between Start and run method in Java thread
Since start() method calls run() method indirectly, programmer often ask why not directly call run method. well difference between calling run from sthttp://javarevisited.blogspot.com/2012/03/difference-between-start-and-run-method.html
Total Hits: 3679
Total Votes: 150 votes
Category: JAVA/Core JAVA
Submitted on: 2012-07-14 14:24:34
Submitted By: Javin Paul
Description:
Since start() method calls run() method indirectly, programmer often ask why not directly call run method. well difference between calling run from start() and run() is that, start first creates a new thread and then call run() method on new thread while if you call run() method directly than it will be called on same thread and no new thread will be created. More detail...Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
25 |
![]() ![]() |
![]() ![]() 16% |
24 |
![]() ![]() ![]() |
![]() ![]() 17.33% |
26 |
![]() ![]() ![]() ![]() |
![]() ![]() 16% |
24 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 18% |
27 |





16.67%

16%

17.33%

16%

18%