System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q3531: ______ can degrade drastically with increasing processors.
- A: Interlocked
- B: No Sync
- C: Mutexes
- D: CS
View Answer
C
Q3532: CS stands for ______.
- A: Critical Set
- B: Critical Section
- C: Control State
- D: Core Sync
View Answer
B
Q3533: Analyzing system time helps to evaluate ______.
- A: thread count
- B: memory allocation
- C: performance
- D: scheduling algorithm
View Answer
C
Q3534: Performance testing shows synchronization trade-offs in ______.
- A: safety vs. speed
- B: thread count vs. memory
- C: CPU vs. GPU
- D: locking vs. non-locking
View Answer
D
Q3535: What problem arises when multiple variables share the same cache line?
- A: cache overflow
- B: false sharing contention
- C: thread starvation
- D: data race
View Answer
B
Q3536: False sharing contention occurs when ______.
- A: threads are idle
- B: locks are skipped
- C: variables share a cache line
- D: processors are overloaded
View Answer
C
Q3537: When a cache line is locked due to a thread accessing one element, ______.
- A: only that element is locked
- B: the system crashes
- C: the whole line is locked
- D: the memory is erased
View Answer
C
Q3538: Accessing a single element on a cache line causes ______ to be locked.
- A: just the memory cell
- B: only one variable
- C: complete line
- D: entire system
View Answer
C
Q3539: To avoid false sharing, variables should be ______.
- A: shared between threads
- B: aligned on the same line
- C: grouped together
- D: placed on separate cache lines
View Answer
D
Q3540: The cost of aligning variables to separate cache lines is primarily in ______.
- A: CPU time
- B: thread switching
- C: memory usage
- D: power consumption
View Answer
C