2014年10月26日
摘要: import java.util.ArrayList;import java.util.List;import java.util.concurrent.locks.ReadWriteLock;import java.util.concurrent.locks.ReentrantReadWriteL... 阅读全文
posted @ 2014-10-26 22:10 TroyZ 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.concurrent.locks.Lock; 2 import java.util.concurrent.locks.ReentrantLock; 3 4 public class LookTest 5 { 6 public static void ... 阅读全文
posted @ 2014-10-26 20:39 TroyZ 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.concurrent.ExecutorService; 2 import java.util.concurrent.Executors; 3 4 public class ThreadPoolTest 5 { 6 public static void... 阅读全文
posted @ 2014-10-26 20:07 TroyZ 阅读(151) 评论(0) 推荐(0) 编辑