引入ThreadLocal
package com.qqjx.thread;
import java.util.concurrent.TimeUnit;
public class ThreadLocal1 {
volatile static Person p = new Person()
引入ThreadLocal
package com.qqjx.thread;
import java.util.concurrent.TimeUnit;
public class ThreadLocal1 {
volatile static Person p = new Person()