Tuesday, October 13, 2015

What's the difference between Thread start() and Runnable run()

If you call the run method from Runnable interface directly, no new thread is created.
If you call start method from Thread, a new thread is created.

http://stackoverflow.com/questions/8579657/java-whats-the-difference-between-thread-start-and-runnable-run

No comments:

Post a Comment