摘要:        
/*线程两种方法中的第一种方法class XianCheng{ public static void main(String[] args) { Cat dog=new Cat(); dog.start(); }}class Cat extends Thread{ public void run() { int times=0; while(true) { //休眠一秒,线程一遇到sleep就会进入到blocked状态,并释放资源 try{ Thread.sleep(1000); }catch(Exception e){ e.printStackTrace...    阅读全文
        
            posted @ 2013-10-16 21:54
hello,MR.Guo
阅读(152)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号