摘要: package com.lm.multest;import java.util.concurrent.locks.Condition;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;class Resource { private int num; private String name; private boolean flag = false; Lock lock = new ReentrantLock(); Condition notFull = lock.new 阅读全文
posted @ 2013-08-27 14:43 微风夜明 阅读(188) 评论(0) 推荐(0) 编辑