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 ofdeadlocking by insertinginvocations of Thread.yield().

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 ofdeadlocking by insertinginvocations of Thread.yield().

相关考题:

Which two are true?() 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.

Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?() 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.

Which two statements are true about hierarchical architecture? ()(Choose two.) 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.

Which of the following BEST describes the function of hyperthreading support within a CPU?() A. Allows the core to create a separate space to process threadsB. Allows the processor to handle multiple threads per coreC. Allows the core to shift to a higher clock speed based on thread countD. Allows the processor to reject certain threads to increase performance

A double male coupling is one that ______.A.has left hand twistB.has inside threads on both endsC.has outside threads on both endsD.takes two men to operate

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?()A、 java.lang.RuntimeException: ProblemB、 run. java.lang.RuntimeException: ProblemC、 End of method. java.lang.RuntimeException: ProblemD、 End of method.  run.java.lang.RuntimeException: ProblemE、 run. java.lang.RuntimeException: Problem End of method.

Which two of statements are true?()A、It is possible to synchronize static methods.B、When a thread has yielded as a result of yield(), it releases its locks.C、When a thread is sleeping as a result of sleep(), it releases its locks.D、The Object.wait() method can be invoked only from a synchronized context.E、The Thread.sleep() method can be invoked only from a synchronized context.F、When the thread scheduler receives a notify() request, and notifies a thread, that thread immediately releases its lock.

Which of the following best describes Simultaneous Multi-threading (SMT)?()A、A POWER5 microprocessor feature that allocates two processors to each applicationB、A Workload Manager feature that allows two processing threads to be executing on a single processorC、An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrentlyD、A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently

Which statement is true?()   A、 If only one thread is blocked in the wait method of an object, and another thread executes the modify on that same object, then the first thread immediately resumes execution.B、 If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, it is still possible that the first thread might never resume execution.C、 If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, then the first thread definitely resumes execution as a direct and sole consequence of the notify call.D、 If two threads are blocked in the wait method of one object, and another thread executes the notify method on the same object, then the first thread that executed the wait call first definitely resumes execution as a direct and sole consequence of the notify call.

public class SyncTest {  private int x;  private int y;  public synchronized void setX (int i) (x=1;)  public synchronized void setY (int i) (y=1;)  public synchronized void setXY(int 1)(set X(i); setY(i);)  public synchronized Boolean check() (return x !=y;)  }  Under which conditions will check () return true when called from a different class?A、 Check() can never return true.B、 Check() can return true when setXY is called by multiple threads.C、 Check() can return true when multiple threads call setX and setY separately.D、 Check() can only return true if SyncTest is changed to allow x and y to be set separately.

Which two statements are true about hierarchical architecture? ()(Choose two.)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.

Which two statements about subqueries are true? ()A、A subquery should retrieve only one row.B、A subquery can retrieve zero or more rows.C、A subquery can be used only in SQL query statements.D、Subqueries CANNOT be nested by more than two levels.E、A subquery CANNOT be used in an SQL query statement that uses group functions.F、When a subquery is used with an inequality comparison operator in the outer SQL statement, the column list in the SELECT clause of the subquery should contain only one column.

Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()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.

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().

Which two statements are true regarding transactions in an Oracle database()A、Multiple transactions can use the same undo segment.B、A transaction is assigned an undo segment when it is started.C、More than one transaction cannot share the same extent in the undo tablespace.D、The transactions use system undo segment to store undo data if all the segments in the undo tablespaceare used.

Which statement is true?()A、A class’s finalize() method CANNOT be invoked explicitly.B、super.finalize() is called implicitly by any overriding finalize() method.C、The finalize() method for a given object is called no more than once by the garbage collector.D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

Which two statements are true about standard database auditing()A、DDL statements can be audited.B、Statements that refer to stand-alone procedure can be audited.C、Operations by the users logged on as SYSDBA cannot be audited.D、Only one audit record is ever created for a session per audited statement even though it is executedmore than once.

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?()A、 Configure threadOne to run at a lower priority.B、 Configure threadTwo to run at a higher priority.C、 Use a WaitCallback delegate to synchronize the threads.D、 Call the Sleep method of threadOne. E、 Call the SpinLock method of threadOne.

Which of the following BEST describes the function of hyperthreading support within a CPU?()A、Allows the core to create a separate space to process threadsB、Allows the processor to handle multiple threads per coreC、Allows the core to shift to a higher clock speed based on thread countD、Allows the processor to reject certain threads to increase performance

单选题A double male coupling is one that().Ahas left hand twistBhas inside threads on both endsChas outside threads on both endsDtakes two men to operate

单选题Which statement is true?()AA class’s finalize() method CANNOT be invoked explicitly.Bsuper.finalize() is called implicitly by any overriding finalize() method.CThe finalize() method for a given object is called no more than once by the garbage collector.DThe order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

多选题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 duration has expired.DDeadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly.EIt is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly.FIf a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().

多选题Which two statements are true about standard database auditing()ADDL statements can be audited.BStatements that refer to stand-alone procedure can be audited.COperations by the users logged on as SYSDBA cannot be audited.DOnly one audit record is ever created for a session per audited statement even though it is executedmore than once.

单选题Which of the following best describes Simultaneous Multi-threading (SMT)?()AA POWER5 microprocessor feature that allocates two processors to each applicationBA Workload Manager feature that allows two processing threads to be executing on a single processorCAn AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrentlyDA POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently

单选题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?()A Configure threadOne to run at a lower priority.B Configure threadTwo to run at a higher priority.C Use a WaitCallback delegate to synchronize the threads.D Call the Sleep method of threadOne. E Call the SpinLock method of threadOne.