Exam 22: Concurrency

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

Task is a _______ class.

Free
(Multiple Choice)
4.7/5
(80)
Correct Answer:
Verified

D

In a producer/consumer relationship, when a consumer finds the buffer empty or finds that the previous data has already been read, the consumer should call __________.

Free
(Multiple Choice)
4.9/5
(76)
Correct Answer:
Verified

B

Which of the following statements is false?

Free
(Multiple Choice)
4.9/5
(84)
Correct Answer:
Verified

D

Which of the following statements is false?

(Multiple Choice)
4.8/5
(87)

Which of the following is not true of ExecutorService?

(Multiple Choice)
4.7/5
(78)

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.9/5
(84)

Which of the following statements is false?

(Multiple Choice)
5.0/5
(77)

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

If a thread calls __________, then every thread waiting for the object becomes eligible to acquire the lock.

(Multiple Choice)
4.9/5
(77)

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

(Multiple Choice)
5.0/5
(86)

Duration method ________ returns the Duration as a long value in milliseconds.

(Multiple Choice)
4.8/5
(74)

NumberFormat method ________ returns a String representation of its argument in the specified numeric format.

(Multiple Choice)
4.7/5
(79)

Which of the following statements is false?

(Multiple Choice)
5.0/5
(86)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(71)

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

(Multiple Choice)
4.8/5
(86)

The Callable interface (of package java.util.concurrent) declares a single method named call that allows a task to return a value.

(Multiple Choice)
4.8/5
(87)

Arrays static method ________ applies a BinaryOperator to the current and previous array elements and stores the result in the current element.

(Multiple Choice)
4.9/5
(73)

The________ handles interactions with the application's controls, such as rendering controls or processing user actions like mouse clicks.

(Multiple Choice)
4.8/5
(84)

With timeslicing, each thread is given a limited amount of time, called a __________, to execute on a processor.

(Multiple Choice)
4.9/5
(91)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(87)
Showing 1 - 20 of 54
close modal

Filters

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