Exam 6: Synchronization Tools

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

Which of the following is true regarding the requirements for the solutions to critical-section problem?

Free
(Multiple Choice)
4.7/5
(38)
Correct Answer:
Verified

C

What is the difference between counting semaphore and binary semaphore.

Free
(Essay)
4.9/5
(33)
Correct Answer:
Verified

The value of a counting semaphore can range over an unrestricted domain. The value of a binary semaphore can range only between 0 and 1.

Which of the following critical-section problem's requirements ensures programs will cooperatively determine what process will next enter its critical section?

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

B

Which of the following indicates that Pi can enter the critical section in Peterson's solution?

(Multiple Choice)
4.7/5
(39)

Spinlocks are not appropriate for single-processor systems.

(True/False)
4.9/5
(38)

Which of the following variables are shared between the processes in Peterson's solution?

(Multiple Choice)
4.9/5
(30)

Which of the following is a software-based solution to the critical-section problem?

(Multiple Choice)
4.8/5
(32)

A semaphore has an integer value.

(True/False)
4.9/5
(34)

Which of the following critical-section problem's requirements ensures only one process is active in its critical section at a time?

(Multiple Choice)
4.9/5
(40)

Which of the following is NOT true regarding semaphore implementation?

(Multiple Choice)
4.7/5
(35)

Which of the following critical-section problem's requirements limits the amount of time a program will wait before it can enter its critical section?

(Multiple Choice)
4.7/5
(43)

Which of the following is true for the solutions to critical-section problems?

(Multiple Choice)
4.8/5
(28)

Assume count is a variable name, which of the following operations is atomic?

(Multiple Choice)
4.9/5
(31)

Which of the following is NOT true regarding conditional variable, e.g. x?

(Multiple Choice)
4.8/5
(41)

Solutions to the critical section problem may suffer from liveness failures.

(True/False)
4.7/5
(28)

Explain what a deadlock is.

(Essay)
4.9/5
(33)

Mutex lock variable is binary.

(True/False)
4.9/5
(38)

Bounded waiting implies progress, and progress implies mutual exclusion.

(True/False)
4.7/5
(39)

Write two short methods that implement the simple semaphore wait() and signal() operations on global variable S.

(Essay)
4.9/5
(28)

Explain what critical section problem is.

(Essay)
4.9/5
(33)
Showing 1 - 20 of 61
close modal

Filters

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