線程的學習筆記

線程和進程的區別 線程是資源調用的最低單位 進程是cpu 調用的最低單位 一個進程至少一個的線程 線程的兩種建立方式以及優缺點: 繼承 *Thread*的方法 class Test extends Thread{ public void run(){ // 重寫run方法 } } public static void main(String[] arg){
相關文章
相關標籤/搜索