Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Multiple Choice Questions
Q551: A spinlock is also referred to as _______.
- A: critical lock
- B: signal lock
- C: busy lock
- D: mutex lock
View Answer
C
Q552: What is a disadvantage of busy waiting?
- A: Reduces CPU usage
- B: Saves memory
- C: Wastes CPU cycles
- D: Increases process speed
View Answer
C
Q553: In Algorithm 3, processes maintain _______ to ensure bounded waiting.
- A: semaphores
- B: busy waiting
- C: waiting array
- D: spinlocks
View Answer
C
Q554: In semaphore definitions, modifications to the integer value must happen _______.
- A: sequentially
- B: individually
- C: atomically
- D: randomly
View Answer
C
Q555: Which tool provides synchronization without using hardware locks?
- A: Mutex
- B: Spinlock
- C: Semaphore
- D: Interrupt disabling
View Answer
C
Q556: In multi-processor environments, soft solution to ensure atomic execution is _______.
- A: Spinlock
- B: Data bus lock
- C: Bakery algorithm
- D: Process migration
View Answer
C
Q557: In the wait(S) function, "while(S <= 0);" performs a _______ operation.
- A: no operation
- B: increment
- C: decrement
- D: multiplication
View Answer
A
Q558: Critical section entry is controlled by _______ in the semaphore-based solution.
- A: TestAndSet
- B: Mutex
- C: Swap
- D: Waiting array
View Answer
B
Q559: Busy waiting in spinlocks leads to _______ resource utilization.
- A: effective
- B: inefficient
- C: maximum
- D: error-free
View Answer
B
Q560: Spinlocks are mainly used in _______ systems.
- A: Single-core
- B: Multiprocessor
- C: Embedded
- D: Real-time
View Answer
B