![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
线程专区
文章平均质量分 89
圣体叶凡
一起get,一起grow up,一起success
展开
-
线程专区---第2集intertupt和interrupted和isInterrupted区别
1isInterrupted作用 : 判断线程状态是否为中断 调用方式 :new Thread().isInterrupted() 注意:如果isInterrupted方法返回的是true,那么就一定是调用了intertupt ()方法2intertupt作用 : 修改线程状态为“中断” 调用方式 :new Thread().interrupt(); 3interrupted作用 : 返回线程目前的中断状态,同时清空状态(即设置状态为 false) 调用方式 ...原创 2020-09-04 15:41:18 · 209 阅读 · 0 评论 -
线程专区---第1集实现线程的5种方式
1 自定义一个类,然后实现Runnable接口,然后实现run()方法。public class MyRunnable implements Runnable{ public void run() { System.out.println("我是MyRunnable"); }}new Thread(new MyRunnable()).start();...原创 2019-04-13 17:47:20 · 81 阅读 · 0 评论 -
线程专区---第n集(join,Fork)
暂无原创 2019-06-07 15:37:22 · 68 阅读 · 0 评论 -
线程专区---第3集中断线程的5种方式
暂无原创 2019-06-07 15:38:38 · 152 阅读 · 0 评论