sleep() 和 wait() 有什么区别?

答:sleep()方法是将当前线程挂起指定的时间。
wait()释放对象上的锁并阻塞当前线程,直到它重新获取该锁。

原文地址:https://www.cnblogs.com/mianshi/p/1926649.html