shaohuashang 发表于 2012-9-14 11:34 因为你用的不是同一个锁,就无法实现同步了,建议你用同步代码块试试
尤圣回 发表于 2012-9-14 11:39 你把this改成p看看
刘明月 发表于 2012-9-14 11:53 我是把同步写在了Person类里边了