package Exp1;
public class Test {
	public static void main(String[] args) {
		createQueue queue=new createQueue();
        //创建生产者线程和消费者线程
        Thread prodThread1 = new Thread(new producer(queue));
        Thread consThread1 = new Thread(new consumer(queue));
       
        //启动生产者线程和消费者线程
        prodThread1.start();
        consThread1.start();
        
	}
}
最近下载更多
                
最近浏览更多
                
                阿超在大学修仙     LV1
                2023年9月15日
            
            
        
                caomin     LV4
                2023年5月25日
            
            
        
                wuziayng1232     LV11
                2023年2月21日
            
            
        
                3043864991     LV2
                2023年1月5日
            
            
        
                jjfskldjf     LV2
                2022年11月27日
            
            
        
                微信网友_6191697646571520     LV6
                2022年11月23日
            
            
        
                shibing333     LV1
                2022年10月10日
            
            
        
                18214966423     LV2
                2022年9月6日
            
            
        
                陈小灏     LV18
                2022年6月8日
            
            
        
                Tiam123     LV3
                2021年12月22日
            
            
        
    
                
                