public class Demo1 {
public static void main(String[] args) {
MyThread one = new MyThread("add");
Thread t1Thread = new Thread(one);
Thread t2Thread = new Thread(one);
MyThread three = new MyThread("minus");
Thread t3Thread = new Thread(three);
Thread t4Thread = new Thread
4个线程实现两个线程加一,两个线程减一
最新推荐文章于 2019-11-22 13:26:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)