摘要: 1 import java.util.concurrent.locks.Lock; 2 import java.util.concurrent.locks.ReentrantLock; 3 4 5 /** 6 * java5的线程锁技术 7 * Lock比传统线程模型中的synchroni... 阅读全文
posted @ 2015-07-12 13:44 登高一呼 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Random; 2 import java.util.concurrent.Callable; 3 import java.util.concurrent.CompletionService; 4 import java.util.concurrent.Exe... 阅读全文
posted @ 2015-07-12 13:28 登高一呼 阅读(192) 评论(0) 推荐(0) 编辑