多線程簡單整理

多線程簡單整理  僅僅整理了一點後續還會繼續整理 創建線程的兩種方法: 1.繼承Thread類,(當然Thread類底層也是繼承的Runnable接口)   class Thread1 extends Thread{ private String name;     public Thread1(String name) {        this.name=name;     }   2.實現R
相關文章
相關標籤/搜索