System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3601: In SRW, what is allowed in Shared mode?
- A: Only one thread can read
- B: Only writing allowed
- C: Multiple threads can read simultaneously
- D: Multiple threads can write simultaneously
View Answer
C
Q3602: SRW Exclusive mode allows ______.
- A: multiple writers
- B: no access
- C: single writer only
- D: multiple readers
View Answer
C
Q3603: Once SRW is acquired in Exclusive mode, it ______ be converted to Shared mode.
- A: can
- B: cannot
- C: should
- D: must
View Answer
B
Q3604: Threads must decide the SRW mode ______.
- A: after locking
- B: during execution
- C: before usage
- D: when deleting it
View Answer
C
Q3605: SRW locks are called “slim” because they ______.
- A: use fewer instructions
- B: are kernel-based
- C: require minimal resources
- D: have large overheads
View Answer
C
Q3606: Which of the following does *not* apply to SRW locks?
- A: They support recursion
- B: They require minimal resources
- C: They are not associated with kernel objects
- D: They are lightweight
View Answer
A
Q3607: The pointer size used in SRW is either ______.
- A: 8-bit or 16-bit
- B: 32-bit or 64-bit
- C: 16-bit or 64-bit
- D: 24-bit or 48-bit
View Answer
B
Q3608: SRW locks are faster because they ______.
- A: ignore errors
- B: use recursion
- C: skip mutual exclusion
- D: avoid kernel objects
View Answer
D
Q3609: SRW locks do not support ______ unlike Critical Sections.
- A: spin locks
- B: recursive calls
- C: thread pooling
- D: heap management
View Answer
B
Q3610: SRW’s spin count is ______.
- A: set manually
- B: set dynamically
- C: preset optimally
- D: set per thread
View Answer
C