關於JAVA執行緒的問題~ - 法律
By Regina
at 2012-11-01T00:00
at 2012-11-01T00:00
Table of Contents
我想請教一下,有關執行緒裡面join的問題,就是為什麼以下的程式碼執行之後得到的結果會不一樣呢?我想問的是有注解的那兩行。Threadkid=newThread(newkidThread());kid.start();以上程式碼應該等同於newThread(newkidThread()).start();對吧?但是執行出來的結果會不一樣,請問是怎麼回事??classmotherThreadimplementsRunnable{publicvoidrun(){System.out.println("媽媽準備煮菜");System.out.println("媽媽發現醬油用完了");System.out.println("所以媽媽叫孩子去買醬油");Threadkid=newThread(
Tags:
法律
All Comments
By Bennie
at 2012-11-05T08:56
at 2012-11-05T08:56
By Harry
at 2012-11-04T06:56
at 2012-11-04T06:56
Related Posts
請熟析智慧財產權與勞基法的大大們指點迷津
By Michael
at 2012-10-31T00:00
at 2012-10-31T00:00
瘦肉精的相關資料~20點!
By Mary
at 2012-10-31T00:00
at 2012-10-31T00:00
朋友侵占我薪水的問題
By Eartha
at 2012-10-31T00:00
at 2012-10-31T00:00
行人穿越馬路反應不及撞上
By Olive
at 2012-10-30T00:00
at 2012-10-30T00:00
勞資協調法工會法立法目地適用範圍
By Eartha
at 2012-10-30T00:00
at 2012-10-30T00:00