程式筆記
JAVA多執行續簡單範例
public
class
ThreadTest2
{
public
static
void
main
(
String
[]
args
){
HelloThread
t1
=
new
HelloThread
();
t1
.
setName
(
"T1"
);
t1
.
start
();
System
.
out
.
println
(
"可用執行續:"
+
Thread
.
activeCount
()
+
"條"
);
}
}
來源:猛虎出閘雙劍合璧版
較新的文章
較舊的文章
首頁
BAT檔簡單功能
刪除圖檔.bat 之前把伺服器的資料全部抓下來,但是會有很多多餘的檔案,導致搜尋時需要花很多時間,所以寫了這個檔案將不必要的附檔名的資料都刪除掉。 ::%cd% => 當前目錄 ::/S 遞迴子目錄 ::Del 刪除檔案 Del %cd% \新資料夾\*.20* /S ...
Windows與LINUX的hosts位置
因為老是記不起來hosts放在哪裡,雖然Windows已經放在桌面上很好存取,但是連線到LINUX主機時又要再找一次,所以特別記錄位置 Windows C:\\Windows\system32\drivers\etc\hosts Linux \etc\hosts