Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q631: Which synchronization primitive is used in the readers-writers solution?
- A: Lock
- B: Barrier
- C: Semaphore
- D: Monitor
View Answer
C
Q632: In the Dining Philosophers problem, allowing at most how many philosophers to sit simultaneously helps avoid deadlock?
- A: 3
- B: 4
- C: 5
- D: 6
View Answer
B
Q633: In the asymmetric solution to the Dining Philosophers problem, odd philosophers pick up their ________ chopstick first.
- A: right
- B: left
- C: either
- D: both
View Answer
B
Q634: High-level synchronization constructs help solve problems related to ________.
- A: memory management
- B: process scheduling
- C: deadlock and starvation
- D: file management
View Answer
C
Q635: In critical region synchronization, the shared variable is declared with the keyword ________.
- A: public
- B: shared
- C: private
- D: global
View Answer
B
Q636: The syntax to access a critical region includes the keyword ________.
- A: sector
- B: domain
- C: region
- D: area
View Answer
C
Q637: In a critical region, the boolean expression B governs the ________.
- A: speed of execution
- B: access to the region
- C: memory allocation
- D: CPU time
View Answer
B
Q638: In the critical region, if B is false, what happens?
- A: Process enters the region
- B: Process waits
- C: Process terminates
- D: Process duplicates
View Answer
B
Q639: What type of variable structure is used in the bounded buffer solution?
- A: stack
- B: queue
- C: struct buffer
- D: array
View Answer
C
Q640: The producer inserts a new item into the shared buffer when ________.
- A: count = n
- B: count < n
- C: count > n
- D: count = 0
View Answer
B