标题: 线程同步调整共享数据后打印疑问 [打印本页] 作者: 黑马振鹏 时间: 2012-7-12 17:44 标题: 线程同步调整共享数据后打印疑问 public class ThreadDemo {
public static void main(String[] args){
Ticket t = new Ticket();
Thread t1 = new Thread(t);
Thread t2 = new Thread(t);
Thread t3 = new Thread(t);
t1.start();
t2.start();
t3.start();