Exam 5: Exploring Thread Synchronization and Mutual Exclusion in Java

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which property of mutual exclusion primitives is inappropriate for multiprocessor systems?

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

A

Semaphores can be used for each of the following purposes except:

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

B

Which of the following statements about critical sections is false?

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

D

________ occurs when an infinite loop prevents progress in a multithreaded application.

(Multiple Choice)
4.8/5
(81)

A ________ is a variable that governs access to critical sections.

(Multiple Choice)
4.8/5
(68)

The test-and-set instruction ________.

(Multiple Choice)
4.7/5
(83)

If a thread attempts a P operation when a counting semaphore has been decremented to zero, ________.

(Multiple Choice)
4.8/5
(69)

________ restricts access to a shared variable to only one thread at any given time.

(Multiple Choice)
4.9/5
(83)

A thread that uses processor cycles to continually test a condition before entering its critical section is said to be ________.

(Multiple Choice)
4.8/5
(73)

Disabling interrupts ________.

(Multiple Choice)
4.8/5
(70)

Threads that operate independently of one another but must occasionally interact to perform cooperative tasks are said to execute ________.

(Multiple Choice)
4.9/5
(71)

An example of a producer/consumer relationship is ________.

(Multiple Choice)
4.7/5
(75)

Which of the following statements about semaphores is true?

(Multiple Choice)
4.8/5
(71)

What happens when a thread calls P( S ) when it wants to enter its critical section, where S is a binary semaphore set to 1?

(Multiple Choice)
4.9/5
(81)

Lamport's Bakery Algorithm does not require ________.

(Multiple Choice)
4.9/5
(80)

Which of the following mutual exclusion algorithms require instructions to be executed atomically?

(Multiple Choice)
4.8/5
(86)

Semaphore operations can be implemented in the kernel of a multiprocessor system by:

(Multiple Choice)
4.9/5
(90)

In Java, the sleep method call must appear in part of a ________ statement because it might throw an exception indicating that the thread was interrupted before its sleep time expired.

(Multiple Choice)
4.7/5
(72)

In Java, Object method notify transitions a thread from the ________ state to the ________ state.

(Multiple Choice)
4.7/5
(83)

Code inside a critical section should ________.

(Multiple Choice)
4.9/5
(84)
Showing 1 - 20 of 26
close modal

Filters

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