Exam 22: Concurrency

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

Task is a _______ class.

Free
(Multiple Choice)
4.7/5
(39)
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.8/5
(38)
Correct Answer:
Verified

B

Which of the following statements is false?

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

D

Which of the following statements is false?

(Multiple Choice)
4.8/5
(38)

Which of the following is not true of ExecutorService?

(Multiple Choice)
4.7/5
(30)

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

Which of the following statements is false?

(Multiple Choice)
4.9/5
(27)

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

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

(Multiple Choice)
4.8/5
(35)

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

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

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.7/5
(40)

Which of the following statements is false?

(Multiple Choice)
5.0/5
(33)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.8/5
(30)

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

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

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

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(44)

Which of the following statements is false?

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

Filters

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