2012年3月1日
摘要: 同步代码快,同步函数是以牺牲性能来换取程序安全的string str =new string("");while(true){synchronized(str){if(t>0){try{System.out.println(":"+t--);}catch(Exception e){}}}} 阅读全文
posted @ 2012-03-01 08:52 平安夜 阅读(101) 评论(0) 推荐(0) 编辑