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
(86)
Correct Answer:
Verified

C

What is the difference between counting semaphore and binary semaphore.

Free
(Essay)
4.9/5
(81)
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
(76)
Correct Answer:
Verified

B

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

(Multiple Choice)
4.8/5
(91)

Spinlocks are not appropriate for single-processor systems.

(True/False)
4.9/5
(87)

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

(Multiple Choice)
4.9/5
(80)

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

(Multiple Choice)
4.7/5
(79)

A semaphore has an integer value.

(True/False)
4.9/5
(87)

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

Which of the following is NOT true regarding semaphore implementation?

(Multiple Choice)
4.8/5
(91)

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

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

(Multiple Choice)
4.8/5
(79)

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

(Multiple Choice)
4.9/5
(73)

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

(Multiple Choice)
4.8/5
(82)

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

(True/False)
4.7/5
(74)

Explain what a deadlock is.

(Essay)
4.9/5
(90)

Mutex lock variable is binary.

(True/False)
4.9/5
(89)

Bounded waiting implies progress, and progress implies mutual exclusion.

(True/False)
4.8/5
(79)

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

(Essay)
5.0/5
(68)

Explain what critical section problem is.

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

Filters

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