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

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

(True/False)
5.0/5
(69)

CAS-based synchronization is always faster than traditional synchronization.

(True/False)
4.8/5
(91)

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

Race conditions can result in corrupted values of shared data.

(True/False)
4.8/5
(72)

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

(Multiple Choice)
4.8/5
(78)

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

(True/False)
4.9/5
(71)

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

(Essay)
4.8/5
(86)

Which of the following is true for race condition?

(Multiple Choice)
4.8/5
(78)

Which of the following may cause a liveness failure?

(Multiple Choice)
4.8/5
(89)

What is the difference between a semaphore and conditional variable?

(Essay)
4.8/5
(79)

Peterson's solution works on modern computer architectures.

(True/False)
4.8/5
(64)

What is meant by "short duration"?

(Essay)
5.0/5
(71)

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

(Multiple Choice)
4.9/5
(73)

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

(True/False)
4.9/5
(81)

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

(True/False)
4.8/5
(79)

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

(Essay)
4.9/5
(80)

Which of the following is NOT true?

(Multiple Choice)
4.9/5
(68)

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

(True/False)
4.7/5
(70)

The counting semaphore is initialized to ___________.

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

Filters

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