System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3831: The function SetThreadpoolWait() must be called
- A: before CreateThreadpoolWait()
- B: After CreateThreadpoolWait()
- C: At system startup
- D: On thread termination
View Answer
B
Q3832: Which locking mechanism has the highest performance?
- A: No Synchronization
- B: Interlocked functions
- C: SRW lock
- D: Mutexes
View Answer
A
Q3833: Interlocked functions are
- A: Slow locking mechanisms
- B: Fastest locking mechanisms
- C: Moderate locking mechanisms
- D: Deprecated locking mechanisms
View Answer
B
Q3834: SRW locks perform best
- A: when used with worker threads
- B: with only exclusive locks
- C: with no threads
- D: with only shared locks
View Answer
A
Q3835: Using SRW locks with conventional thread management compared to thread pool
- A: Improves performance
- B: Marginally degrades performance
- C: No effect
- D: Worsens drastically
View Answer
B
Q3836: Critical sections perform poorly
- A: when there are many threads
- B: when there is only one thread
- C: when there are no threads
- D: when used with SRW locks
View Answer
A
Q3837: Critical sections performance can be improved
- A: Using spin counts
- B: Using mutexes
- C: Using no synchronization
- D: Using conventional thread management
View Answer
A
Q3838: Mutexes have
- A: the worst performance
- B: the best performance
- C: moderate performance
- D: no impact on performance
View Answer
A
Q3839: Mutex performance can be optimized
- A: marginally using semaphore throttling
- B: by increasing spin counts
- C: by disabling threads
- D: by using interlocked functions
View Answer
A
Q3840: No synchronization runs faster but sacrifices
- A: Accuracy
- B: Security
- C: Memory usage
- D: Disk usage
View Answer
A