Java并发:基本的线程机制

上传:qq_86226 浏览: 10 推荐: 0 文件:PDF 大小:21KB 上传时间:2020-12-23 00:35:47 版权申诉
一、实现一个简单的线程 public class LiftOff implements Runnable{ protected int countDown = 10; private static int taskCount = 0; private final int id = taskCount++; public LiftOff() {} public LiftOff(int countDown) { this.countDown = countDown; } public
上传资源
用户评论