摘要:
JAVA实现多线程生产者消费者模型待写 阅读全文
摘要:
100张票,10个窗口(10个线程模拟),实现线程卖票计数import java.util.Iterator;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;public class SellTicket implements Runnable { private int count = 100; static Map<String,Integer> map = new ConcurrentHashMap<String,Integer>(); public static void ma 阅读全文