package cn.itcast_01;
import cn.itcast_01.MyRunnable;
public class 线程安全问题的产生原因分析 {
public static void main(String[] args) {
MyRunnable my = new MyRunnable();
Thread t1 = new Thread(my,"窗口1");
Thread t2 = new Thread(my,"窗口2");
Thread t3 = new Thread(my,"窗口3");
t1.start();
t2.start();
t3.start();
}
}
转载请注明原文地址:https://blackberry.8miu.com/read-17351.html