File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ ReadWriteLock就是读写锁,它是一个接口,ReentrantReadWriteLock实现
64642 . 禁止 JVM 进行的指令重排序。
6565
6666### ThreadLocal
67- 使用` ThreadLocal<UserInfo> userInfo = new ThreadLocal<UserInfo>() ` 的方式,让每个线程内部都会维护一个ThreadLocalMap,里边包含若干了 Entry(K-V 键值对),每次存取都会先的都当前线程 ,然后得到该线程对象中的Map,然后与Map交互。
67+ 使用` ThreadLocal<UserInfo> userInfo = new ThreadLocal<UserInfo>() ` 的方式,让每个线程内部都会维护一个ThreadLocalMap,里边包含若干了 Entry(K-V 键值对),每次存取都会先获取到当前线程ID ,然后得到该线程对象中的Map,然后与Map交互。
6868
6969### 线程池
7070#### 起源
@@ -101,4 +101,4 @@ new Thread弊端:
101101
102102### 并发包工具类
103103[ http://www.wangtianyi.top/blog/2018/05/01/javagao-bing-fa-xi-lie-si-:juc/ ] ( http://www.wangtianyi.top/blog/2018/05/01/javagao-bing-fa-xi-lie-si-:juc/ )
104- [ https://blog.csdn.net/mzh1992/article/details/60957351 ] ( https://blog.csdn.net/mzh1992/article/details/60957351 )
104+ [ https://blog.csdn.net/mzh1992/article/details/60957351 ] ( https://blog.csdn.net/mzh1992/article/details/60957351 )
You can’t perform that action at this time.
0 commit comments