多线程
文章平均质量分 83
Like爱学习
这个作者很懒,什么都没留下…
展开
-
多线程基础(2)
SleepingSleeping Priority Yielding原创 2021-06-28 22:29:07 · 72 阅读 · 0 评论 -
多线程基础(1)
定义任务:一个线程驱动一个任务,你需要一个方式来描述这种任务。可以通过实现Runnable接口的run方法来定义一个任务。package concurrency;public class LiftOff implements Runnable { protected int countDown = 10; private static int taskCount = 0; private final int id = taskCount++; public原创 2021-06-12 23:23:52 · 61 阅读 · 0 评论