java - multithreading related issues

And the difference between the runnable thread

Reference: https: //cloud.tencent.com/developer/article/1353432

Knowledge points:

1.Java is a single inheritance, implement, if the class implements multithreading has inherited the other categories, it can not inherit the class thread;

2. override run method or implemented as the run method is run inside the encapsulation method is a code block to be executed by multi-thread;

3. Start the thread object is called the start method, start method to start the thread, run another method called by jvm;

 

Guess you like

Origin www.cnblogs.com/testerling/p/11784941.html