Exam 23: Concurrency

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following is true for a correct producer/consumer relationship with one producer,one consumer,and a 5-cell buffer?

Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
Verified

B

23)2.2.A waiting thread transitions back to the ________ state only when another thread notifies it to continue executing.

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
Verified

A

The BlockingQueue interface declares which two methods for blocked adding and blocked removing of elements from a circular buffer?

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

A

Which of the following statements is false?

(Multiple Choice)
4.7/5
(38)

In a producer/consumer relationship,the ________ portion of an application generates data and stores it in a shared object,and the ________ portion of an application reads data from the shared object.

(Multiple Choice)
4.8/5
(36)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(37)

The main method executes in the ________ thread of execution.

(Multiple Choice)
4.7/5
(44)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(39)

A new thread begins its life cycle by transitioning to the __________ state.

(Multiple Choice)
4.9/5
(35)

In a producer/consumer relationship with a single cell of shared memory,which of the following is true?

(Multiple Choice)
4.9/5
(25)

Which one of the following statements is true with regard to a producer/consumer relationship with one producer and one consumer?

(Multiple Choice)
4.8/5
(36)

SwingWorker method ________ executes a long computation in a worker thread.

(Multiple Choice)
4.9/5
(31)

To determine the difference between two Instants,use class Duration's static method ________,which returns a Duration object containing the time difference.

(Multiple Choice)
4.8/5
(40)

When a thread obtains the monitor lock on an object,then determines that it cannot continue with its task on that object until some condition is satisfied,the thread can call Object method ________;this releases the monitor lock on the object,and transitions the thread waits to the waiting state.

(Multiple Choice)
4.9/5
(37)

Arrays static method ________ fills an array with values produced by a generator function that receives an int and returns a value of type int,long or double.

(Multiple Choice)
4.8/5
(33)

When a __________ method or block is running on an object,the object is locked so no other such method can run on that object at the same time.

(Multiple Choice)
4.9/5
(28)

An ExecutorService object is created by calling a static method of which class?

(Multiple Choice)
4.9/5
(35)

Which of the following is not true of ExecutorService?

(Multiple Choice)
4.9/5
(30)

Two tasks that are operating ________ are executing simultaneously.

(Multiple Choice)
4.7/5
(38)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(27)
Showing 1 - 20 of 55
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)