package cn.lnu.thread.example; public class Consumer extends Thread { Tickets t=null; public Consumer(Tickets t){ this.t=t; } @Override public void run() {//��Ʊ�߳� // TODO Auto-generated method stub super.run(); while(t.getNumber()<t.getSize()){ t.sell(); } } }