多选题Which two statements are true?()AIt is possible for more than two threads to deadlock at once.BThe JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.CDeadlocked threads release once their sleep() method's sleep du

题目内容(请给出正确答案)
多选题
Which two statements are true?()
A

It is possible for more than two threads to deadlock at once.

B

The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.

C

Deadlocked threads release once their sleep() method's sleep duration has expired.

D

Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.

E

It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.

F

If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
更多相关问题