欢迎来到我的博客
摘要: /** * 多生产者 多消费者问题 * * 该代码存在死锁问题 * 因为有可能唤醒本方 * @author 黄二狗 * */ public class Test { public static void main(String[] args) { Resource r = new Resource( 阅读全文
posted @ 2017-10-18 23:45 Mr_Bean 阅读(954) 评论(0) 推荐(0) 编辑
摘要: package com.demo; public class Test { public static void main(String[] args) { Resource resource = new Resource(); Input input = new Input(resource); 阅读全文
posted @ 2017-10-18 10:02 Mr_Bean 阅读(153) 评论(0) 推荐(0) 编辑