锘??xml version="1.0" encoding="utf-8" standalone="yes"?>在线一区二区视频,国产精品一区二区久久久,神马久久久久http://www.aygfsteel.com/kongbowoo/category/24473.html------鎴戠殑鎶鏈у崥瀹?/description>zh-cnSun, 29 Jul 2007 13:37:59 GMTSun, 29 Jul 2007 13:37:59 GMT60- 綰跨▼鍚屾http://www.aygfsteel.com/kongbowoo/articles/133006.htmlkongbowookongbowooSat, 28 Jul 2007 06:52:00 GMThttp://www.aygfsteel.com/kongbowoo/articles/133006.htmlhttp://www.aygfsteel.com/kongbowoo/comments/133006.htmlhttp://www.aygfsteel.com/kongbowoo/articles/133006.html#Feedback0http://www.aygfsteel.com/kongbowoo/comments/commentRss/133006.htmlhttp://www.aygfsteel.com/kongbowoo/services/trackbacks/133006.html 1
public class ThreadA
2

{
3
public static void main(String[] args)
4
{
5
ThreadB b = new ThreadB();
6
b.start();
7
8
//synchronized(b)
9
//{
10
//try
11
{
12
System.out.println("Waiting for b to complete
");
13
//b.wait();
14
}
15
//catch (InterruptedException e)
16
{
17
18
}
19
20
System.out.println("Total is " + b.total);
21
//}
22
}
23
}
24
25
class ThreadB extends Thread
26

{
27
int total;
28
29
public void run()
30
{
31
synchronized(this)
32
{
33
for(int i=0; i<100; i++)
34
{
35
total = total + i;
36
}
37
notify();
38
}
39
}
40
}

]]>
主站蜘蛛池模板:
晋江市|
和顺县|
龙岩市|
卢氏县|
南通市|
涿州市|
若尔盖县|
镇江市|
文化|
高邮市|
文昌市|
阿克苏市|
清水河县|
蓬溪县|
体育|
苗栗县|
高邑县|
玛纳斯县|
通渭县|
青神县|
华坪县|
始兴县|
樟树市|
牡丹江市|
南和县|
太白县|
徐闻县|
临安市|
海原县|
冷水江市|
泰顺县|
当雄县|
彭泽县|
沾益县|
锡林浩特市|
岳西县|
钦州市|
临泽县|
观塘区|
乌海市|
莱芜市|