两个线程分别打印 1- 100,A 打印偶数, B打印奇数
摘要:
package com.demo.thread; public class PrintNumber { private static Object lock = new Object(); private static int i = 1; private static int wait = 1; private static final int TOTAL =... 阅读全文
posted @ 2018-03-29 21:40 lina2014 阅读(349) 评论(0) 推荐(0) 编辑