package mythread.tickets;
public class TicketsTest
{
public static void main(String[] args)
{
Tickets t = new Tickets();
new Thread(t,"一号窗口").start();
try
{
Thread.sleep(1);
} catch (InterruptedException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
t.isSell = true;
new Thread(t,"二号窗口").start();
// new Thread(t,"三号窗口").start();
// new Thread(t,"四号窗口").start();
}
}