System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 158
Q3501:
Mutex-based synchronization costs increased up to ______ compared to interlocked functions.
A. 5 times
B. 10 times
C. 30 times
D. 50 times
Correct Answer:
C
Chapter: 158
Q3502:
Critical Section versions are ______ compared to no synchronization.
A. slower
B. faster
C. same
D. optimized
Correct Answer:
A
Chapter: 158
Q3503:
IN stands for ______ in synchronization scenarios.
A. Internal Node
B. Interlocked Function
C. Input/Output
D. Null Function
Correct Answer:
B
Chapter: 158
Q3504:
________ are used to synchronize threads while trying to reduce memory contention.
A. Semaphores
B. Mutexes
C. declspec(align)
D. Heap handles
Correct Answer:
C
Chapter: 158
Q3505:
align_free() is used to ______ memory.
A. lock
B. measure
C. deallocate
D. access
Correct Answer:
C
Chapter: 158
Q3506:
To gauge synchronization performance, we analyze ______.
A. thread size
B. lock duration
C. real time, user time, system time
D. loop count
Correct Answer:
C
Chapter: 158
Q3507:
Critical Sections are ______ expensive than Mutexes.
A. more
B. equally
C. less
D. sometimes
Correct Answer:
C
Chapter: 158
Q3508:
Mutexes perform worse as the number of ______ increases.
A. variables
B. memory segments
C. processors
D. files
Correct Answer:
C
Chapter: 158
Q3509:
Mutexes degrade rapidly in performance compared to CS when increasing ______.
A. RAM
B. clock rate
C. thread priority
D. processor count
Correct Answer:
D
Chapter: 158
Q3510:
One way to avoid cache conflict is to ______ memory allocation.
A. randomize
B. align
C. optimize
D. encrypt
Correct Answer:
B
Chapter: 159
Q3511:
Which two synchronization techniques showed almost the same performance time?
A. MX and CS
B. NS and IN
C. IN and MX
D. NS and MX
Correct Answer:
B
Chapter: 159
Q3512:
What is the performance cost of using a Critical Section compared to Interlocked functions?
A. Equal
B. 2 times more
C. 10 times less
D. 30 times more
Correct Answer:
B
Chapter: 159
Q3513:
Mutex-based synchronization can cost up to ______ more than interlocked functions.
A. 2 to 10 times
B. 2 to 30 times
C. 1 to 5 times
D. 5 to 15 times
Correct Answer:
B
Chapter: 159
Q3514:
Older versions of Windows had CS implementations that were ______.
A. highly scalable
B. not scalable
C. partially scalable
D. suitable for real-time
Correct Answer:
B
Chapter: 159
Q3515:
Recent versions of Windows make CS implementation ______.
A. non-scalable
B. slower
C. scalable
D. irrelevant
Correct Answer:
C
Chapter: 159
Q3516:
Which synchronization method is considered the slowest as processor count increases?
A. Critical Section
B. Mutex
C. Interlocked Functions
D. No Sync
Correct Answer:
B
Chapter: 159
Q3517:
Performance of mutexes ______ as number of processors increase.
A. improves
B. stabilizes
C. degrades
D. improves then degrades
Correct Answer:
C
Chapter: 159
Q3518:
What type of synchronization showed the best performance in testing?
A. CS
B. MX
C. IN
D. NS
Correct Answer:
D
Chapter: 159
Q3519:
______ and ______ showed nearly equal performance in the example programs.
A. IN and CS
B. MX and CS
C. NS and IN
D. IN and MX
Correct Answer:
C
Chapter: 159
Q3520:
Any type of locking is ______ than no locking.
A. more efficient
B. more expensive
C. cheaper
D. irrelevant
Correct Answer:
B