摘要: /** * CyclicBarrier 一组线程相互等待 */ public class Beer { public static void main(String[] args) { final int count = 5; final CyclicBarrier barrier = new Cy 阅读全文
posted @ 2019-11-20 17:47 踏月而来 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /** * 模拟铁人三项 */ public class PhaserTest { private static Random random = new Random(System.currentTimeMillis()); public static void main(String[] args 阅读全文
posted @ 2019-11-20 17:05 踏月而来 阅读(115) 评论(0) 推荐(0) 编辑