System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3651: Which of the following best describes SRWs compared to Critical Sections?
- A: Twice as slow
- B: Equal in speed
- C: Twice as fast
- D: Dependent on OS
View Answer
C
Q3652: In shared mode of SRWs, the locked variable ________ be read.
- A: cannot
- B: can sometimes
- C: can always
- D: needs to wait for unlocking
View Answer
B
Q3653: Which locking mechanism was found almost twice as fast as Critical Sections in performance evaluations?
- A: Mutex
- B: Events
- C: SRWs
- D: Semaphores
View Answer
C
Q3654: SRWs are designed to minimize __________ requirements.
- A: coding
- B: syntax
- C: resource
- D: control flow
View Answer
C
Q3655: In recursion, ________ is required, making SRWs unsuitable.
- A: shared access
- B: memory stack
- C: critical section
- D: thread handle
View Answer
B
Q3656: Which of the following is **not** an advantage of SRWs?
- A: Shared access
- B: Lightweight
- C: Supports recursion
- D: Fast performance
View Answer
C
Q3657: SRWs cannot be used efficiently in ________ based functions.
- A: simple
- B: stack-intensive
- C: single-threaded
- D: loop-based
View Answer
B
Q3658: SRWs in shared mode do not require the thread to ______.
- A: wait for release
- B: modify stack
- C: start new thread
- D: write to file
View Answer
A
Q3659: Which aspect of SRWs makes them beneficial for multithreaded programs?
- A: Recursion allowance
- B: High memory consumption
- C: Lightweight locking
- D: Complex implementation
View Answer
C
Q3660: What is a common issue when the number of threads increases?
- A: Increased speed
- B: Page faults
- C: Decreased memory usage
- D: Fewer context switches
View Answer
B