Tag: Run calls this BSP main thread through tar strong time slices
two ways to differentiate:
1.start method
Starting a thread with the Start method is a real implementation of multi-threading, starting a thread by invoking the start () method of the thread class, at which point the thread is in a ready (operational) state and is not running, and once the CPU time slice is taken, the run () method is started. Note, however, that you do not have to wait for the run () method to complete before you can proceed with the following code. So the run () method does not implement multithreading.
2.run method
The run () method is just a common method of the class, if you call the Run method directly, the program is still only the main thread, the program execution path is only one, or to execute sequentially, or to wait until the Run method body execution is completed before you can continue to execute the following code.
The difference between the Run method and the Start method in Java thread