资源无法共享
代码块的同步:
方法的同步,只需要在方法前面加上,,然后在run方法里面调用此方法
转载于:https://www.cnblogs.com/xuedexin/articles/5691197.html