看板 [ java ]
討論串[問題] thread問題!!!
共 5 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者qrtt1 (null)時間17年前 (2008/06/25 13:24), 編輯資訊
0
0
2
內容預覽:
停在1.4也有辦法用啊. 很多功能在 5.0 前就在做了,只是 5.0 剛好收錄罷了. 1 9/28 webberhan □ [心得] 需要用Multithread的朋友請內入Doug Le. 2 9/29 adrianshum. R: [心得] 需要用Multithread的朋友請內入Doug L
(還有604個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者H45 (!H45)時間17年前 (2008/06/24 17:03), 編輯資訊
0
0
2
內容預覽:
我稍微研究了一下 java.util.concurrent 之中與 Future 有關的類別與介面. 消化之後利用 Future, FutureTask, Executor 寫出一個範例去計算 1+2+...+10000. public static void main(String[] args)
(還有895個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者king08 (糊塗蛋)時間17年前 (2008/06/24 12:15), 編輯資訊
0
0
2
內容預覽:
在Java 5.0中你可以用Future這個Interface. 相關說明:. http://doc.java.sun.com/DocWeb/api/java.util.concurrent.Future%3CV%3E. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 59.1

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者H45 (!H45)時間17年前 (2008/06/24 02:09), 編輯資訊
0
0
1
內容預覽:
Future Pattern:. http://caterpillar.onlyfun.net/Gossip/DesignPattern/FuturePattern.htm. 把該變數宣告在需要他的物件能夠取得的地方即可。. 如果您不熟 Future Pattern, 上面的連結所描述的內容可能太過

推噓3(3推 0噓 5→)留言8則,0人參與, 最新作者csdunhill (MR.阿花)時間17年前 (2008/06/24 01:48), 編輯資訊
0
0
0
內容預覽:
public void run(). {. double x,y,a;. for(int i=1;i<=looplmt;i++). {. x=(Math.random()*edge);. y=(Math.random()*edge);. a=((x*x)+(y*y));. if(a<(edge*ed
(還有43個字)
首頁
上一頁
1
下一頁
尾頁