Java Thread: run() vs start() method - The method start() invokes the run() method.
- If the run() method of two threads invoked separately, they will execute one after the other.
- If the start() method is used on two threads, both threads runs simultaneously.
- The start() method invokes the run() method asynchronously, where as the run() methods run synchronously.
|