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 of deadlocking by inserting invocations of Thread.yield().
第1题:
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?()
第2题:
Which of the following best describes Simultaneous Multi-threading (SMT)?()
第3题:
Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()
第4题:
Which two statements are true?()
第5题:
Which statement is true?()
第6题:
Which of the following BEST describes the function of hyperthreading support within a CPU?()
第7题:
You can assign a logical interface to multiple zones.
You cannot assign a logical interface to multiple zones.
You can assign a logical interface to multiple routing instances.
You cannot assign a logical interface to multiple routing instances.
第8题:
java.lang.RuntimeException: Problem
run. java.lang.RuntimeException: Problem
End of method. java.lang.RuntimeException: Problem
End of method. run. java.lang.RuntimeException: Problem
run. java.lang.RuntimeException: Problem End of method.
第9题:
A class’s finalize() method CANNOT be invoked explicitly.
super.finalize() is called implicitly by any overriding finalize() method.
The finalize() method for a given object is called no more than once by the garbage collector.
The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
第10题:
DDL statements can be audited.
Statements that refer to stand-alone procedure can be audited.
Operations by the users logged on as SYSDBA cannot be audited.
Only one audit record is ever created for a session per audited statement even though it is executedmore than once.
第11题:
A POWER5 microprocessor feature that allocates two processors to each application
A Workload Manager feature that allows two processing threads to be executing on a single processor
An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrently
A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently
第12题:
It is not possible to disable the primary key constraint.
It is possible to have more than one primary key constraint in a single table.
The primary key constraint can be referred by only one foreign key constraint.
The primary key constraint can be imposed by combining more than one column.
The non-deferrable primary key constraint creates an unique index on the primary key column if it is not already indexed.
第13题:
Which two of statements are true?()
第14题:
Which two statements are true about hierarchical architecture? ()(Choose two.)
第15题:
Which two statements are true?()
第16题:
Which two statements are true regarding transactions in an Oracle database()
第17题:
Your application uses two threads, named threadOne and threadTwo. You need to modify the code to prevent the execution of threadOne until threadTwo completes execution. What should you do?()
第18题:
has left hand twist
has inside threads on both ends
has outside threads on both ends
takes two men to operate
第19题:
A finalizer may NOT be invoked explicitly.
The finalize method declared in class Object takes no action.
super.finalize()is called implicitly by any over riding finalize method.
The finalize method for a given objec twill be called no more than once by the garbage collector.
The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.
第20题:
It is possible to synchronize static methods.
When a thread has yielded as a result of yield(), it releases its locks.
When a thread is sleeping as a result of sleep(), it releases its locks.
The Object.wait() method can be invoked only from a synchronized context.
The Thread.sleep() method can be invoked only from a synchronized context.
When the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.
第21题:
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 of deadlocking by inserting invocations of Thread.yield().
第22题:
When using versions of Java technology earlier than 5.0.
When sharing a StringBuffer among multiple threads.
When using the java.io class StringBufferInputStream.
When you plan to reuse the StringBuffer to build more than one string.
第23题:
Configure threadOne to run at a lower priority.
Configure threadTwo to run at a higher priority.
Use a WaitCallback delegate to synchronize the threads.
Call the Sleep method of threadOne.
Call the SpinLock method of threadOne.
第24题:
It's only supported for the backups performed on the tape
It is not supported for backup operations that produce image copies
Duplex backups need a parallelism for the device to be equal to number of copies
Duplex backups can be performed to either disk or tape, but cannot be performed on tape and disk simultaneously