Exam 6: Synchronization Tools

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

A monitor is an abstract data type that is based on semaphore implementation.

(True/False)
4.8/5
(32)

The value of a counting semaphore can range only between 0 and 1.

(True/False)
4.9/5
(32)

CAS-based synchronization is always faster than traditional synchronization.

(True/False)
4.7/5
(38)

Assume the binary variable lock is initialized to be 0, which of the following can be an implementation of the entry section to solve the critical-section problem?

(Multiple Choice)
4.8/5
(40)

Race conditions can result in corrupted values of shared data.

(True/False)
4.8/5
(30)

Which of the following are efforts to towards developing scalable, efficient tools that address the demands of concurrent programming?

(Multiple Choice)
4.8/5
(26)

A mutex lock is released immediately after entering a critical section.

(True/False)
4.9/5
(36)

What three conditions must be satisfied in order to solve the critical section problem?

(Essay)
4.8/5
(32)

Which of the following is true for race condition?

(Multiple Choice)
4.8/5
(32)

Which of the following may cause a liveness failure?

(Multiple Choice)
4.8/5
(40)

What is the difference between a semaphore and conditional variable?

(Essay)
4.8/5
(34)

Peterson's solution works on modern computer architectures.

(True/False)
4.8/5
(21)

What is meant by "short duration"?

(Essay)
4.9/5
(35)

Which of the following actions should be performed among cooperating processes?

(Multiple Choice)
4.9/5
(35)

When the mutex lock is implemented based on a binary semaphore, it should be initialized to be 0.

(True/False)
4.9/5
(32)

Every object in Java has associated with it a single lock.

(True/False)
4.8/5
(35)

Explain how semaphore implementation overcomes the busy waiting problem of mutex lock.

(Essay)
4.9/5
(33)

Which of the following is NOT true?

(Multiple Choice)
4.9/5
(23)

The preemptive kernel is more suitable for real-time programming than non-preemptive kernel.

(True/False)
4.7/5
(30)

The counting semaphore is initialized to ___________.

(Multiple Choice)
4.8/5
(38)
Showing 41 - 60 of 61
close modal

Filters

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