dongchuan
Java 面试问题

Updated 2 years ago

hanyuguang (@hanyuguang) started discussion #17

4 years ago · 0 comments

Open

而且 wait() 方法是在 Object 类里. 而 sleep() 是在 Thread 类里.

sleep() 和 wait() 的区别 (Edit this file)

sleep()不释放对象所占用的锁,wait()会释放

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant