鏈接:https://www.cnblogs.com/xzwblog/p/7227509.html
每個線程根據線程id區(qū)分蒸殿,都有自己的ThreadLocalMap择克。
void threadLocal.put(Object o)會調用ThreadLocalMap.put(當前threadLocal對象即this恬总,Object o)
Object threadLocal.get()會先根據線程id找到當前線程的threadLocalMap,再根據ThreadLocalMap.get(當前threadLocal對象即this)