目录 1,区别 2,实验 2.1,wait释放锁 2.2,sleep不释放出锁 1,区别 wait 和sleep 的区别如下: 1, wait 是 Object的方法,sleep是Thread的方法 2,wait 必须在synchronized里使用ÿ