A. Exiting from a synchronized block.
B. Calling the wait method on an object.
C. Calling the notify method on an object.
D. Calling the notifyAll method on an object.
正确答案: A
注解: Calling the notifyAll method on an object.
non-runnable是指“非可运行状态”?可是这答案和注解又是什么意思?
感谢参与!
3 个解决方案
#1
non-runnable是指非running,例如sleeping,waiting,blocked,ready-to-run等等
我觉得是A和B吧
我觉得是A和B吧
#2
似乎有点道理,谢谢。
chinaitlab里的很多答案都感觉有问题。
chinaitlab里的很多答案都感觉有问题。
#3
when a thread that owns a lock passes out of the synchronized code,the thread automatically gives up the lock.
that means out of running,it will seeking lock when enter the synchronized code.
that means out of running,it will seeking lock when enter the synchronized code.
#1
non-runnable是指非running,例如sleeping,waiting,blocked,ready-to-run等等
我觉得是A和B吧
我觉得是A和B吧
#2
似乎有点道理,谢谢。
chinaitlab里的很多答案都感觉有问题。
chinaitlab里的很多答案都感觉有问题。
#3
when a thread that owns a lock passes out of the synchronized code,the thread automatically gives up the lock.
that means out of running,it will seeking lock when enter the synchronized code.
that means out of running,it will seeking lock when enter the synchronized code.