找到一篇解释的比较清楚的文章
转载
http://howtodoinjava.com/2013/03/08/thread-synchronization-object-level-locking-and-class-level-locking/