多线程基础知识第七篇:多线程笔试题
摘要:
1、用5个线程去卖火车票,一共5000张,卖完即止。 用线程池的写法:向线程池提交5000个任务 public class Test { public static void main(String[] args) throws InterruptedException { int total = 阅读全文
posted @ 2018-06-07 21:03 koushr 阅读(598) 评论(0) 推荐(0) 编辑