同步代码快,同步函数是以牺牲性能来换取程序安全的
string str =new string("");
while(true)
{
synchronized(str)
if(t>0)
try{
System.out.println(":"+t--);
}catch(Exception e)
}