摘要: 能解决下面的问题,基本上就能理解线程互斥与同步了。 子线程循环10次,主线程循环100次,接着子线程循环10,主线程循环100次。如此往复循环50次。 1 package cn.lah.thread; 2 3 public class TraditionalThreadCommunication ... 阅读全文
posted @ 2015-04-05 21:17 N_ll 阅读(211) 评论(0) 推荐(0) 编辑