Exam 6: Synchronization Tools
Exam 1: Introduction57 Questions
Exam 2: Operating-System Structures42 Questions
Exam 3: Processes55 Questions
Exam 4: Threads Concurrency59 Questions
Exam 5: Cpu Scheduling57 Questions
Exam 6: Synchronization Tools61 Questions
Exam 7: Synchronization Examples57 Questions
Exam 8: Deadlocks40 Questions
Exam 9: Main Memory58 Questions
Exam 10: Virtual Memory54 Questions
Exam 11: Mass-Storage Structure46 Questions
Exam 12: Io Systems30 Questions
Exam 13: File-System Interface50 Questions
Exam 14: File-System Implementation36 Questions
Exam 15: File-System Internals25 Questions
Exam 16: Security32 Questions
Exam 17: Protection32 Questions
Select questions type
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:
C
What is the difference between counting semaphore and binary semaphore.
Free
(Essay)
4.9/5
(81)
Correct Answer:
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:
B
Which of the following indicates that Pi can enter the critical section in Peterson's solution?
(Multiple Choice)
4.8/5
(91)
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)
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)
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)
Showing 1 - 20 of 61
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)