Exam 6: Concurrency and Deadlock in Database Systems: Exploring Monitor Implementation and Thread Synchronization in Java

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

In Java, a(n)________ is a queue of threads waiting to reenter the monitor for an object.

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

A

Monitors implement ________ between threads of execution.

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

C

Which type of monitor allows a thread inside the monitor to signal that the monitor will soon become available, but still maintain a lock on the monitor until it exits?

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

C

________ is important for preventing indefinite postponement in the readers/writers problem.

(Multiple Choice)
5.0/5
(29)

Monitor initialization ________.

(Multiple Choice)
4.8/5
(28)

In the readers/writers problem, cascading in readers ________.

(Multiple Choice)
4.9/5
(27)

Which variable(s) must be shared between threads to implement a producer/consumer relationship using a circular buffer?

(Multiple Choice)
4.9/5
(34)

A thread can exit a monitor by ________.

(Multiple Choice)
4.7/5
(37)

________ supports concurrent programming, in addition to many features needed to implement real concurrent systems.

(Multiple Choice)
4.8/5
(40)

In the Java implementation of the producer/consumer relationship, the producer thread remains in the ________ until it is notified by another thread that it may proceed.

(Multiple Choice)
4.8/5
(30)

If the producer and consumer work at approximately the same speed, using the circular buffer can ________ the average speed of the application.

(Multiple Choice)
4.7/5
(29)

Methods declared as ________ encapsulate critical sections of a program that can only be occupied by one thread at a time.

(Multiple Choice)
4.7/5
(33)

________ is a software architectural technique that improves modularity and facilitates the development of more reliable software systems.

(Multiple Choice)
4.8/5
(27)

In Java, a(n)________ is a queue of threads awaiting entry into a monitor.

(Multiple Choice)
4.7/5
(33)

Which of the following statements about using a circular buffer to implement print spooling is false?

(Multiple Choice)
4.8/5
(38)

In Java, the ________ method wakes all threads in the entry and wait sets.

(Multiple Choice)
4.9/5
(30)

To avoid indefinite postponement, a monitor ________.

(Multiple Choice)
4.8/5
(33)

The size of a circular buffer is important because ________.

(Multiple Choice)
4.8/5
(29)

Which of the following is not a reason why the programming community is so intent on concurrent programming?

(Multiple Choice)
4.9/5
(35)
close modal

Filters

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