java多线程(1) java线程Runnable,Thread,Callable,FutureTask
java多线程--1线程创建的方式1.Thread对象1.1继承Thread对象1.2直接使用Thread对象2.Runnable接口3.Runnable和Thread的关系3.Callable和FutureTask线程创建的方式1.Thread对象1.1继承Thread对象@Slf4jpublicclassMyThreadextendsThread{@Overridepublicvoidrun(