Chapter 15 多執行緒
==========================
app15_1.7z
(sequential)(傳統循序)
app15_2.7z
(繼承 Thread)(多執行緒)
app15_3.7z
(介面 Runnable)(多執行緒)
app15_4.7z
(繼承 Thread)(多執行緒)(sleep(1000))
app15_5.7z
(繼承 Thread)(多執行緒)(sleep(1000))(等待)
app15_6.7z
(繼承 Thread)(多執行緒)(sleep(1000))(等待, join(), 15_7(priority),15_8(synchronized))
????:
???15_8(synchronized)
app15_6.7z
(1) ?? private static int sum = 100;
(2) Class CBank ???? method "public static void deposit(int n)"
(2) ???? ??Customer ,????(sum = 100 ????)
思考題:
如何應用?
水族箱
programming | @ONE爸爸的隨想手札| 2 頁
下班後的另類Java | iThome
競賽遊戲