線程的基本操作

目錄 線程狀態切換 終止線程(stop) 中斷線程(interrupt) 掛起(suspend) 和 繼續執行(resume) 等待線程結束(join) 和 謙讓(yield) sleep 線程優先級 守護線程 線程的同步操作(synchronized, wait, notify) 線程狀態切換 終止線程(stop) 不推薦使用Thread.stop(), 他會釋放所有的monitor, 導致數據
相關文章
相關標籤/搜索