線程:A:休眠線程 B:加入線程 C:禮讓線程 D:後臺線程 E:終止線程(掌握) F設置進程優先級

A休眠線程: sleep(時間); 這裏面的時間以毫秒爲單位1s=1000ms=1000000us=1000000000ns public class ThreadSleep extends Thread { @Override public void run() { for (int x = 0; x < 100; x++) { System.out.println(getName
相關文章
相關標籤/搜索