摘要: 线程基础 1.线程的创建方式 线程的实现方式三种: 继承Thread类。 实现Runnable接口。 实现Callable接口,使用 ExecutorService、Callable、 Future 实现带返回结果的多线程。 例:继承Thread类。 例:实现Runnable接口 例:实现Calla 阅读全文
posted @ 2019-05-28 18:17 菜鸟小坚强 阅读(239) 评论(0) 推荐(0) 编辑