It is possible for more than two threads to deadlock at once.
The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state.
Deadlocked threads release once their sleep() method’s sleep duration has expired.
Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.
It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.
If a piece of code is capable of deadlocking, you cannot eliminate the possibility ofdeadlocking by insertinginvocations of Thread.yield().
第1题:
A. You can assign a logical interface to multiple zones.
B. You cannot assign a logical interface to multiple zones.
C. You can assign a logical interface to multiple routing instances.
D. You cannot assign a logical interface to multiple routing instances.
第2题:
public class Threads2 implements Runnable { public void nun() { System.out.println(”run.”); throw new RuntimeException(”Problem”); } public static void main(String[] args) { Thread t = new Thread(new Threads2()); t.start(); System.out.println(”End of method.”); } } Which two can be results?()
第3题:
A.A finalizer may NOT be invoked explicitly.
B.The finalize method declared in class Object takes no action.
C.super.finalize()is called implicitly by any over riding finalize method.
D.The finalize method for a given objec twill be called no more than once by the garbage collector.
E.The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.
第4题:
Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()
第5题:
Which of the following best describes Simultaneous Multi-threading (SMT)?()
第6题:
A double male coupling is one that ______.
A.has left hand twist
B.has inside threads on both ends
C.has outside threads on both ends
D.takes two men to operate
第7题:
Which two of statements are true?()
第8题:
A.When using versions of Java technology earlier than 5.0.
B.When sharing a StringBuffer among multiple threads.
C.When using the java.io class StringBufferInputStream.
D.When you plan to reuse the StringBuffer to build more than one string.
第9题:
Which two statements are true about hierarchical architecture? ()(Choose two.)
第10题:
Which two statements are true?()