"Creating multithreading with the implementation of runnable, callable interface"
Advantages
1. Threads simply implement the Runable interface or the callable interface and can inherit other classes.
2. In this way, multiple threads can share the same target object, which is more appropriate for multiple identical threads to handle the same resource.
Disadvantages
Programming is slightly more complex, and if you need access to the current thread, you must use the thread CurrentThread () method.
"Use inherited thread classes to create multithreading"
Advantages
Writing is simple, if you need to access the current thread, just use this to get the current thread.
Disadvantages
Because the thread class is inherited, it is no longer possible to inherit other parent classes.
Analysis
It is generally recommended to create multiple threads by implementing runnable, callable interfaces.
05_ Creating threads three ways to compare