Thread.currentThread()和this的區別——《Java多線程編程核心技術》

前言:在閱讀《Java多線程編程核心技術》過程中,對書中程序代碼Thread.currentThread()與this的區別有點混淆,這裏記錄下來,加深印象與理解。 具體代碼如下: 1 public class MyThread09 extends Thread { 2 3 public MyThread09() { 4 System.out.println("M
相關文章
相關標籤/搜索