多选题Which two CANNOT directly cause a thread to stop executing? ()AExisting from a synchronized block.BCalling the wait method on an object.CCalling notify method on an object.DCalling read method on an InputStream object.ECalling the SetPriority method on

题目
多选题
Which two CANNOT directly cause a thread to stop executing? ()
A

Existing from a synchronized block.

B

Calling the wait method on an object.

C

Calling notify method on an object.

D

Calling read method on an InputStream object.

E

Calling the SetPriority method on a Thread object.


相似考题
更多“Which two CANNOT directly cause a thread to stop executing? ”相关问题
  • 第1题:

    Which of the following best describes Simultaneous Multi-threading (SMT)?()

    • A、A POWER5 microprocessor feature that allocates two processors to each application
    • B、A Workload Manager feature that allows two processing threads to be executing on a single processor
    • C、An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrently
    • D、A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently

    正确答案:D

  • 第2题:

    Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()

    • A、foo.notify();
    • B、bar.notify();
    • C、foo.notifyAll();
    • D、Thread.notify();
    • E、bar.notifyAll();
    • F、Object.notify();

    正确答案:E

  • 第3题:

    foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()? 

    • A、 foo.notify();
    • B、 bar.notify();
    • C、 foo.notifyAll();
    • D、 Thread.notify();
    • E、 bar.notiFYAll();
    • F、 Object.notify();

    正确答案:E

  • 第4题:

    Given: foo and bar are public references available to many other threads. foo refers to a Thread and bar is anObject.  The thread foo is currently executing bar.wait().  From another thread,what provides the most reliable wayto ensure that foo will stop executing wait()?

    • A、foo.notify();
    • B、bar.notify();
    • C、foo.notifyAll();
    • D、Thread.notify();
    • E、bar.notifyAll();

    正确答案:E

  • 第5题:

    Which two code fragments will execute the method doStuff() in a separate thread?()

    • A、new Thread() {public void run() { doStuff(); }};
    • B、new Thread() {public void start() { doStuff(); }};
    • C、new Thread() {public void start() { doStuff(); }}.run();
    • D、new Thread() {public void run() { doStuff(); }}.start();
    • E、new Thread(new Runnable() {public void run() { doStuff(); }}).start();

    正确答案:D,E

  • 第6题:

    单选题
    Under which circumstances will a thread stop?()
    A

    The method waitforId() in class MediaTracker is called.

    B

    The run() method that the thread is executing ends.

    C

    The call to the start() method of the Thread object returns.

    D

    The suspend() method is called on the Thread object.

    E

    The wait() method is called on the Thread object.


    正确答案: B
    解析: 暂无解析

  • 第7题:

    多选题
    Which two can directly cause a thread to stop executing?()
    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.

    E

    Calling the setPriority method on a thread object.


    正确答案: B,E
    解析: 暂无解析

  • 第8题:

    多选题
    Failure of which of the following parts could cause the laptop display to stop functioning?() (Select TWO).
    A

    Power inverter

    B

    AC adapter

    C

    Multicard reader

    D

    Backlight

    E

    Keyboard


    正确答案: C,D
    解析: 暂无解析

  • 第9题:

    多选题
    Which two code fragments will execute the method doStuff() in a separate thread?()
    A

    new Thread() {public void run() { doStuff(); }};

    B

    new Thread() {public void start() { doStuff(); }};

    C

    new Thread() {public void start() { doStuff(); }}.run();

    D

    new Thread() {public void run() { doStuff(); }}.start();

    E

    new Thread(new Runnable() {public void run() { doStuff(); }}).start();


    正确答案: C,A
    解析: 暂无解析

  • 第10题:

    多选题
    Which two are attributes of iSQL*Plus? ()
    A

    iSQL*Plus commands cannot be abbreviated.

    B

    iSQL*Plus commands are accessed from a browser.

    C

    iSQL*Plus commands are used to manipulate data in tables.

    D

    iSQL*Plus commands manipulate table definitions in the database.

    E

    iSQL*Plus is the Oracle proprietary interface for executing SQL statements.


    正确答案: E,A
    解析: 暂无解析

  • 第11题:

    单选题
    You want to create a temporary table while executing a procedure in a form. Which statement is true?()
    A

    You cannot create a table form within Forms. 

    B

    You must use the FORMS_DDL built-in to create the table. 

    C

    You must use the DBMS_DYNAMIC_DDL package to create the table. 

    D

    You can write the CREATE TABLE statement directly into the trigger.


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()?
    A

     foo.notify();

    B

     bar.notify();

    C

     foo.notifyAll();

    D

     Thread.notify();

    E

     bar.notiFYAll();

    F

     Object.notify();


    正确答案: C
    解析: 暂无解析

  • 第13题:

    Under which circumstances will a thread stop?()  

    • A、The method waitforId() in class MediaTracker is called.
    • B、The run() method that the thread is executing ends.
    • C、The call to the start() method of the Thread object returns.
    • D、The suspend() method is called on the Thread object.
    • E、The wait() method is called on the Thread object.

    正确答案:B

  • 第14题:

    Which two can directly cause a thread to stop executing?() 

    • 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.
    • E、 Calling the setPriority method on a thread object.

    正确答案:B,E

  • 第15题:

    Which two CANNOT directly cause a thread to stop executing? ()  

    • A、 Existing from a synchronized block.
    • B、 Calling the wait method on an object.
    • C、 Calling notify method on an object.
    • D、 Calling read method on an InputStream object.
    • E、 Calling the SetPriority method on a Thread object.

    正确答案:A,C

  • 第16题:

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

    正确答案:A,F

  • 第17题:

    Which two events will cause a slave server to create a new relay log file?()

    • A、Execution of the FLUSH LOGS statement
    • B、Starting of the SQL thread
    • C、Reaching the slave_pendign _jobs_size_max limit
    • D、Execution of FULSH TABLES WITH READ LOCK
    • E、Starting of the I/O thread

    正确答案:A,E

  • 第18题:

    多选题
    Which two events will cause a slave server to create a new relay log file?()
    A

    Execution of the FLUSH LOGS statement

    B

    Starting of the SQL thread

    C

    Reaching the slave_pendign _jobs_size_max limit

    D

    Execution of FULSH TABLES WITH READ LOCK

    E

    Starting of the I/O thread


    正确答案: E,A
    解析: 暂无解析

  • 第19题:

    多选题
    Which two CANNOT directly cause a thread to stop executing? ()
    A

    Calling the yield method.

    B

    Calling the wait method on an object.

    C

    Calling the notify method on an object.

    D

    Calling the notifyAll method on an object.

    E

    Calling the start method on another Thread object.


    正确答案: C,D
    解析: 暂无解析

  • 第20题:

    多选题
    An Administrator notices a decrease in the performance of his site.  This is directly related to an increase in usage.  After further investigation he notices that users appear to be pooling up in the web server.  Which of the following would cause this to occur?()
    A

    The web Server ThreadsPerChild directive could be set too low.

    B

    The Web Container Thread Pool Minimum Size could be set too high.

    C

    The Web Container Thread Pool Maximum Size could be set too high.

    D

    The growable thread pool setting could be disabled for the Web Container.


    正确答案: A,B
    解析: 暂无解析

  • 第21题:

    单选题
    Which of the following best describes Simultaneous Multi-threading (SMT)?()
    A

    A POWER5 microprocessor feature that allocates two processors to each application

    B

    A Workload Manager feature that allows two processing threads to be executing on a single processor

    C

    An AIX v5.2 feature that allows two processing threads to be executing on a single processor concurrently

    D

    A POWER5 microprocessor feature that allows two processing threads to be executing on a single processor concurrently


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()
    A

    foo.notify();

    B

    bar.notify();

    C

    foo.notifyAll();

    D

    Thread.notify();

    E

    bar.notifyAll();

    F

    Object.notify();


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    Given: foo and bar are public references available to many other threads. foo refers to a Thread and bar is anObject.  The thread foo is currently executing bar.wait().  From another thread,what provides the most reliable wayto ensure that foo will stop executing wait()?
    A

    foo.notify();

    B

    bar.notify();

    C

    foo.notifyAll();

    D

    Thread.notify();

    E

    bar.notifyAll();


    正确答案: C
    解析: 暂无解析