摘要:
同步机制采用了“以时间换空间”的方式,提供一份变量,让不同的线程排队访问。而ThreadLocal采用了“以空间换时间”的方式,为每一个线程都提供了一份变量的副本,从而实现同时访问而互不影响。http://blog.csdn.net/ningguixin/article/details/170921 阅读全文
posted @ 2017-10-21 18:29
余***龙
阅读(533)
评论(0)
推荐(0)
摘要:
DecimalFormat df = new DecimalFormat("0.00"); double rate = (warnMonNum/totalCustCount)*100; rateList.add(df.format(rate)); 阅读全文
posted @ 2017-10-21 17:27
余***龙
阅读(240)
评论(0)
推荐(0)

浙公网安备 33010602011771号