Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q471: In process synchronization, the condition that guarantees that no process is forced to wait indefinitely to enter its critical section is called ____.
- A: Bounded Waiting
- B: Mutual Exclusion
- C: Progress
- D: Atomicity
View Answer
A
Q472: The solution to the critical section problem must satisfy three requirements: Mutual Exclusion, Progress, and ____.
- A: Bounded Waiting
- B: Atomicity
- C: Deadlock
- D: Synchronization
View Answer
A
Q473: If both processes attempt to access the critical section simultaneously, the system may suffer from a ____.
- A: Race Condition
- B: Deadlock
- C: Memory Leak
- D: Buffer Overflow
View Answer
A
Q474: The mutual exclusion condition ensures that only ____ process can access the critical section at any time.
- A: One
- B: Multiple
- C: No
- D: All
View Answer
A
Q475: The critical section problem arises when multiple processes access shared data concurrently without ____.
- A: Synchronization
- B: Deadlock
- C: Progress
- D: Race Condition
View Answer
A
Q476: What is the main problem with the two earlier solutions of the 2-process critical section?
- A: They used too much memory
- B: They did not satisfy the progress condition
- C: They were too slow
- D: They satisfied only bounded wait
View Answer
B
Q477: In Algorithm 3, what is the purpose of the variable 'flag[i]'?
- A: To indicate if process is ready to leave
- B: To indicate if process wants to enter critical section
- C: To assign process ID
- D: To maintain ticket numbers
View Answer
B
Q478: What value is initially assigned to the 'flag' array in Algorithm 3?
- A: 1
- B: 1
- C:
- D: 0
View Answer
C
Q479: In Algorithm 3, what variable decides which process gets to enter the critical section?
- A: flag
- B: i
- C: j
- D: turn
View Answer
D
Q480: In Algorithm 3, what is the effect if both processes set 'turn' simultaneously?
- A: Both can enter critical section
- B: One assignment will overwrite the other
- C: Both assignments remain
- D: The system crashes
View Answer
B