看板 [ java ]
討論串join的問題
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者MotoKen (EatCat)時間19年前 (2006/08/01 15:35), 編輯資訊
0
0
0
內容預覽:
t1.start();. t1.join(); //t1先join(), t2再start()就沒問題了. t2.start();. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.115.218.221.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者feicsh.時間19年前 (2006/08/01 12:01), 編輯資訊
0
0
0
內容預覽:
引述《oishii.bbs@ptt.cc (喔帥)》之銘言:. > 引述《jackylau@kkcity.com.tw (帥哞哞)》之銘言:. > : 關於以下程式:. > : public static void main(String[] args) {. > : JoinTest jt
(還有693個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者oishii (喔帥)時間19年前 (2006/08/01 09:23), 編輯資訊
0
0
0
內容預覽:
引述《jackylau@kkcity.com.tw (帥哞哞)》之銘言:我的想法是這樣 因為你現在這一段程式碼是放在main裡頭執行上面t1.join()的應該就是main thread. 所以呢 join到t1之後的應該是main thread而不是t2. 我不確定我的想法是不是正確 還請其他

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者jackylau.時間19年前 (2006/08/01 02:32), 編輯資訊
0
0
1
內容預覽:
關於以下程式:. public class JoinTest{. class th1 extends Thread{. public void run(){. for(int i=1;i<=200;i++) System.out.println(" "+i);. }. }. class th2 ex
(還有585個字)
首頁
上一頁
1
下一頁
尾頁