Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 163
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
Correct Answer: C
Chapter: 163
Q3602:
SRW Exclusive mode allows ______.
A. multiple writers
B. no access
C. single writer only
D. multiple readers
Correct Answer: C
Chapter: 163
Q3603:
Once SRW is acquired in Exclusive mode, it ______ be converted to Shared mode.
A. can
B. cannot
C. should
D. must
Correct Answer: B
Chapter: 163
Q3604:
Threads must decide the SRW mode ______.
A. after locking
B. during execution
C. before usage
D. when deleting it
Correct Answer: C
Chapter: 163
Q3605:
SRW locks are called “slim” because they ______.
A. use fewer instructions
B. are kernel-based
C. require minimal resources
D. have large overheads
Correct Answer: C
Chapter: 163
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
Correct Answer: A
Chapter: 163
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
Correct Answer: B
Chapter: 163
Q3608:
SRW locks are faster because they ______.
A. ignore errors
B. use recursion
C. skip mutual exclusion
D. avoid kernel objects
Correct Answer: D
Chapter: 163
Q3609:
SRW locks do not support ______ unlike Critical Sections.
A. spin locks
B. recursive calls
C. thread pooling
D. heap management
Correct Answer: B
Chapter: 163
Q3610:
SRW’s spin count is ______.
A. set manually
B. set dynamically
C. preset optimally
D. set per thread
Correct Answer: C
Chapter: 163
Q3611:
The spin count of SRW locks can be adjusted using:
A. SetSRWSpinCount()
B. SetCriticalSectionSpinCount()
C. Cannot be adjusted
D. InitSRWSpinCount()
Correct Answer: C
Chapter: 163
Q3612:
SRW locks do not require ______ after use.
A. thread check
B. pointer assignment
C. explicit deletion
D. resource pooling
Correct Answer: C
Chapter: 163
Q3613:
SRW locks provide ______ type of calls.
A. blocking only
B. non-blocking only
C. asynchronous only
D. none of the above
Correct Answer: A
Chapter: 163
Q3614:
Once an SRW lock is acquired in shared mode, it ______ be upgraded to exclusive mode.
A. can
B. cannot
C. must
D. becomes automatic
Correct Answer: B
Chapter: 163
Q3615:
Exclusive mode in SRW locks permits ______.
A. single-threaded writing
B. recursive writing
C. thread priority queue
D. all read operations
Correct Answer: A
Chapter: 163
Q3616:
Shared mode is used when ______.
A. only writing is required
B. multiple threads need to read
C. only one reader is needed
D. the system is idle
Correct Answer: B
Chapter: 163
Q3617:
SRW locks are best used when ______.
A. recursion is required
B. memory usage should be high
C. synchronization overhead must be minimized
D. critical sections are needed
Correct Answer: C
Chapter: 163
Q3618:
SRW locks can be used for both ______ and ______ operations.
A. threaded, non-threaded
B. read, write
C. read, sleep
D. kernel, user
Correct Answer: B
Chapter: 163
Q3619:
SRW locks should be used when the system needs ______.
A. low overheads and fast synchronization
B. recursion and heavy locking
C. threaded kernel locks
D. spin loop operation
Correct Answer: A
Chapter: 163
Q3620:
The SRW lock pointer is either 32-bit or ______.
A. 16-bit
B. 48-bit
C. 64-bit
D. 128-bit
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now