摘要: Java中的ThreadLocal 可以看做以线程标识为key的Map,在多线程开发中使用非常方便。 示例 运行结果 源码解析 1 public ThreadLocal() { 2 } 3 4 /** 5 * Returns the value in the current thread's cop 阅读全文
posted @ 2016-08-18 21:58 dahuandahuan 阅读(207) 评论(0) 推荐(0)