摘要: 并发编程 interrupted()源码 /** * Tests whether the current thread has been interrupted. The * <i>interrupted status</i> of the thread is cleared by this met 阅读全文
posted @ 2020-09-19 14:36 皮卡丘和羊宝贝😄 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 并发编程 3.Java线程 本章内容 创建和运行线程 查看线程 线程API 线程状态 3.1创建和运行线程 方法一:直接使用thread // 创建线程对象 Thread t = new Thread() { public void run() { // 要执行的任务 } }; // 启动线程 t. 阅读全文
posted @ 2020-09-19 03:09 皮卡丘和羊宝贝😄 阅读(182) 评论(0) 推荐(0) 编辑