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
(38)
Correct Answer:
C
What is the difference between counting semaphore and binary semaphore.
Free
(Essay)
4.9/5
(33)
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
(35)
Correct Answer:
B
Which of the following indicates that Pi can enter the critical section in Peterson's solution?
(Multiple Choice)
4.7/5
(39)
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)
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)
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)
Showing 1 - 20 of 61
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)