学习笔记——JAVA线程<7>线程的总结

一,创建线程 1,继承Thread 2,实现Runna类 3,实现Callable 二,线程的状态 1,新生–>start–>就绪–>运行–>阻塞–>终止 2,终止线程的方法 3,阻塞的方法join yield sleep 线程状态图解释 一条正常的线:New->Runble->Scheduler->Running->run()||completes->Dead 一条经过阻塞的线:New->Run
相关文章
相关标签/搜索